cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F415 - Automatic Erase of Flash on power ON

MJain.7
Associate

I am using Mini-M4 module with STMF415RG MCU. Module is programmed using STLink SW interface. However when the module is put on to the mother board, the flash memory gets erased when the board is powered on.

What can be the reason for this automatic erasing of the Flash?

2 REPLIES 2
Uwe Bonnes
Principal III

Flash never gets erased without reason. System bootloader, debuggger and the program running on the device can trigger erase of flash. So carefully learn and understand what is going on in your setup.

Exactly.

What is this "Mini-M4 module", and said "motherboard ?

Perhaps expecting some specific, proprietary bootloader (like MBED), and erases the flash if it doesn't find it.

Check the documentation of your boards.