8 years, 10 months ago.

How to prevent F411RE delete bin files?

Hi!

I notice my F411RE delete all the bin files every time I unplug its power supply. How can I stop it from doing this?

Thanks

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32F411RET6 microcontroller.

1 Answer

8 years, 10 months ago.

It should delete its bin files everytime it programs itself. If it does not, then what you see is just an artifact of your OS buffering the contents on a USB drive, showing you files which aren't there. Even if you press refresh the contents, an OS will not reload the values from the USB drive, and it will just show you what it thinks is there. I don't have the F411, and to be fair never checked it myself on Nucleo boards, but the general workaround used for that by mbed boards is disabling its USB drive shortly when a new bin file is dragged onto it, and re-enabling it again.

So the TL;DR is: This is normal, it does not have the memory to actually store old bin files. It however should still run its last bin file when you unplug its power supply and plug it in again.

Accepted Answer

It's perhaps worth also saying that what shows up on the USB drive doesn't reflect what is currently flashed onto the target microcontroller. So just because your drive appears empty doesn't mean the microcontroller's program has changed.

posted by Stephen Paulger 17 Jul 2015