3 years, 3 months ago.

Mbed reformats itself automatically.

I am working with a motor drive circuit. I am taking the readings from the encoder and writing it to a local file system that I have created within the MBed. The problem that I am having is that at times the Mbed automatically formats itself and clears it memory. Thus all the code and the files are lost.

Why this is happening and how can I avoid it.


1 Answer

3 years, 1 month ago.

I have not had mine reformat itself, but I have found the localfilesystem on the LPC1768 to be slow and fragile.

By fragile, I mean that it doesn't stand up well to a lot of write activity, and it gets corrupted. So, when I use it, I try to use it as primarily read-only.

Connected an additional filesystem, using either USB or microSD, seems to be a much better way to go.