cancel
Showing results for 
Search instead for 
Did you mean: 

Erase complete sectors of internal Memory of STM32L151RCT^ MCU

MBhir.11
Associate III

HI ,

I am new to the STM controllers and STM32Cube IDE.

While loading the code i can see the only some sectors (i.e from 0 to 30 sectors or 0 to 64 sectors) are erasing and loading the new program...

Please suggest me how to erase the complete internal memory sectors in STM32 controllers usng STM32Cube IDE..

1 REPLY 1
TDK
Guru

Go to the startup tab in the run and/or debug configuration and add "monitor flash mass_erase" as an initialization command.

If you feel a post has answered your question, please click "Accept as Solution".