florisla / stm32loader

Flash firmware to STM32 microcontrollers using Python.
GNU General Public License v3.0
109 stars 53 forks source link

Can't init into bootloader. Ensure that BOOT0 is enabled and reset the device. #57

Closed embpic closed 1 year ago

embpic commented 2 years ago

Hi, I am using STM32F103xx and i wanted to use the UART bootlaoder. I have changed the BOOT0 pin state to 1 like the one shown in below image.

image

after executing following command as "sudo python3 stm32loader -r -p /dev/ttyUSB0 -e -w -v led_blink.bin" i am getting following errors,

Activating bootloader (select UART)
Bootloader activation timeout -- retrying
Can't init into bootloader. Ensure that BOOT0 is enabled and reset the device.
florisla commented 2 years ago

It looks like BOOT0 is set correctly for an STM32F103. You need to press the Reset button on the blue STM32F1 board before starting stm32loader.

If that does not help, please consider:

florisla commented 2 years ago

Also, you can lower the baudrate and double-check that the UART adapter has pull-up resistors on the RX and TX lines,