cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L051R8T8 erase via SPI bootloader

perbaecklund9
Associate
Posted on December 02, 2015 at 08:41

Hi folks!

The page erase command does not seem to work.

The communication sequence is as follows with replies from the STM inside brackets:

Erase:0x5A [0x79] 0x44 [0xA5] 0xBB [0xA5]

pages:0x00 [0xA5] 0x04 [0x79]

page:0x00 [0x79] 0x00 [0x79]

page:0x00 [0x79] 0x01 [0x79]

page:0x00 [0x79] 0x02 [0x79]

page:0x00 [0x79] 0x03 [0x79]

page:0x00 [0x79] 0x04 [0x79]

Cksm:0x00 [0x79]

Ack:0x00 [0x79] 0x00 [0x79] 0x79 [0x79]

This seems correct but when I read the memory I get 7654 (which I wrote earlier) instead of 0000. Multiple reads give the same result.

Erasing by setting and resetting read protection works, but I would like to erase parts only.

Thank you.

#stm32l051-bootloader
0 REPLIES 0