Page 1 of 1

STM32 Blackpill usb_bootlader upload issue

Posted: Tue Sep 14, 2021 4:05 pm
by ardu_copter
Hi !
I just upgraded to a new stm32f401 black_pill board. Previously i had stm32f103 blue_pill board to which i uploaded usb_bootlader using STM32cubeprogrammer over UART (using FTDI module).
I've been trying for a while but unlike my previous experience with blue_pill, uploading usb bootloader to black_pill is'nt that simple. Whenever i connect the black_pill over UART, it breaks connection saying: "STM32 read protection is enabled, disable RDP to continue"

I do not have any ST-LINK device (nor available at any approachable seller) to do it that way.
Is there any way to do it using FTDI or atleast disable the Read Protection on the board ?

Thanks,

Re: STM32 Blackpill usb_bootlader upload issue

Posted: Tue Sep 14, 2021 4:38 pm
by ag123
for stm32F401 try using a usb cable and use DFU upload.

finger dance is:
- press both reset and boot 0
- release reset and hold boot 0
- release reset 1 sec later

and you can upload via usb-dfu

Re: STM32 Blackpill usb_bootlader upload issue

Posted: Fri Sep 17, 2021 3:54 pm
by ardu_copter
Hi thank you, i was able to break the protection using Dfuse, all good, but the thing is, i can not get the Blackpill recognized by the COM port.
Arduino IDE never shows anything in the port when Blackpill is connected (in simple or in DFU mode).
I'm new to stm32s, can you please little guide me how to program it (Black-pill) over usb through Arduino IDE ?

Re: STM32 Blackpill usb_bootlader upload issue

Posted: Sun Sep 19, 2021 10:34 pm
by GonzoG
There is no COM port with DFU. It is identified as different device and COM port isn't needed.