This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to run my program on STM32 without manually switching bootloader pins

Hello,

With STM Cube MX I have generated a template code for my STM32F103C8. 

If in MDK-ARM uVision I write a simple Blink program and flash it to my device with boot0 to high, I can upload the code without errors. However, it does not start until I manually remove the boot0 pin, put it to 0, and press reset (if with boot0=1 I start a debug session after flashing, nothing happens on the device). Only then I see the result of my code. In this mode, I am unable to flash any program, so I have to manually put it back to boot0=1 again. 

How can I program my device and run it immediately, without changing pins every time? 

Kind regards,

Max

0