Mbed is unreadable from pc

16 Aug 2012

Dear friends,

I made a stupid mistake in my code. I open the file but forgot to put the line to close it.

FILE *fp = fopen("/local/test.txt", "w"); After I burned my code into mbed and ran it, the mebd became unreadable from my pc. What I can see is just a icon "Removable Disk" under my computer, but could not open the disk.

What should I do to reset my mbed? should I format the disk?

Thanks for your help!

16 Aug 2012

Hi Haoyu Wang,

If you hold down the reset button the drive should appear. You can then replace the program that is using the storage with one that doesn't or with a fixed version of your program.

Steve

16 Aug 2012

I did this and it works. Thanks for your help. Stephen!