cancel
Showing results for 
Search instead for 
Did you mean: 

I can't burn my STM32F103 CPU

Shony
Associate II

Hi all,

I have the CPU STM32F103 on board. I am using STM32CubeIDE for SW development and STM32CubeProgrammer for burning.

On some point during development, I couldn't burn the CPU anymore - I get various types of error messages, like 'Can't erase the memory', 'Core is halted' or the green bar (which indicates burning process) runs goes and back endlessly.

Yet sometimes I succeeded to bun it by using tricks, such setting port BOOT0 to VCC and using option  OB --> Readout Protection to erase the memory and only then to program. Or alternatively pressing the on-board reset button and starting the programming immediately after releasing the button.

Unfortunately these trick are not always working, and off course are not acceptable as solution.

I wonder what happened to my design. Is there any solution?

Any help will be very appreciated.  

12 REPLIES 12

Hi again MM..1,

I checked the SW signals. didn't fined any point in the code that I am activating it to other function.

Hi Tesla,

I am not sure I understood your recommendations about the rest and BOOT0 BOOT1 solutions.

How exactly I can do that in terms of HW and SW?

Hi Tesla,

I checked in the Programmer and found the 'Connect under reset' option. I tried the use it with the option 'Software reset' and it worked.

Thank you for your help.