Skip to main content
MBhir.11
Associate III
September 8, 2021
Question

Erase complete sectors of internal Memory of STM32L151RCT^ MCU

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..

This topic has been closed for replies.

1 reply

TDK
September 8, 2021

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""."