7 years, 3 months ago.

LocalFileSystem or mbed flash disk corrupted?

I am developing my project with mbed NXP LPC1768. My firmware of mbed will read some configuraiton files which are put in the flash file system of mbed at startup. In this some use case, the user also will rewrite some configuration files.

The problem I meet is sometimes mbed cannot start up properly and I see the mbed flash memory somehow became empty, except the MBED.HTM file. But in "My PC" view and the Properties window of mbed I can see the used space stays the same as before. So which could mean the files are not deleted, but PC and my firmware just cannot see them.

Does anyboday know what can be the root cause of this issue? and what would be the solution of it?

1 Answer

7 years, 3 months ago.

You can format the mbed drive. Also, please see this page: https://developer.mbed.org/cookbook/deadmbed

Dear Toyomasa,

Thanks for your reply.

We notice that due to unstable power supplying during inserting power jack into tooling board, mbed flash file system might become corrupted/empty when there is a file accessing process. Do you have any suggestion to prevent this situation happen, hardware level or software level?

Greetings Xiaobo

posted by Xiaobo Qu 16 Jan 2017