cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f0 Bootloader

Leo Tai
Associate II
Posted on March 15, 2018 at 11:08

MCU: stm32f072c8t6

I am trying to implement the UART Bootloader to my project. I have successfully tried all command except the erase. For the BL v3.1, the extended erase memory is supported with cmd: 0x44 + 0xBB. 

However, I tried to enter the command and the flash is erased. After that, the MCU just cannot recognize any command I enter after the erase. 

For example, it will reply NAK if I wanted to read or write the memory. Just after resetting the MCU, it is fine again. 

My question is what command does the MCU need to receive just after erase without resetting it? I tried the flash programmer provided by ST. I just observed the cmd it send just after the erase is that :  0x00 0x05 0x00 0x00 0x00 0x01 0x00 0x02 0x00 0x03 0x00 0x04 0x00 0x05 0x04 (without ACK/ NAK), which I could not understand and even I copy those cmd, the MCU still need the reset to make it work again. 

#bootloader
0 REPLIES 0