Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 5 months ago.
Reading/Writing to File Msg "Disk was not ejected properly ... "
Hi
Every time I read/write to a file, I get an error "the disk was not ejected properly. If possible always eject ...",
Will getting the msg every time is okay or should I be doing something before/after reading/writing to a file?
Thanks
2 Answers
11 years, 5 months ago.
Hi Fatemah,
Yes, this is expected behaviour and fine.
As there are two masters on to the "disk" (the pc and the mbed), when the mbed wants to write to the filesystem it has to tell the pc the disk is ejected, then reinserted when finished. As the pc doesnt expect things to change on the disk behind its back, this ensures and activity by the mbed is seen by the pc, and also ensures they cant be trying to write at the same time.
On a windows machine, it will just accept this, whereas on mac it will get a little more upset, but it is fine/expected behaviour.
Simon
10 years, 9 months ago.
Simon,
In my case (MacBook Air/Lion OS), everything happens in the same way as Fatemah said, but the .bin file is not uploaded to the Freescale Freedom KL25Z board. So I am unable to use my board. :(
Any hint?
Thanks!