This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with using RL_USB when remove USB flash memory?!

Hi.
I want to use RL_USB in my project for reading and writing files into USB flash memory.
LPC1768 was chosen for this purpose and write and read operations are worked good.
Now I want add more parts to my projects:
A. When someone put a USB flash memory in board and write and/or read operations were done, the USB flash memory ejected from system by removing it from board. next time which we want to do same operations like before, it hangs and micro can not handle RL_USB functions!! how I can solve this problem ?
B. is any way to find out when USB flash memory is connected or disconnected from board?
Thanks for your replies.

Parents
  • Remember that Windows has that 'Safely Remove Hardware' option that you're supposed to use before pulling-out a USB stick.

    Many people don't bother, and get away with it - most of the time.

    I think this is because Windows takes trouble to minimise the chances of corruption by not caching writes, etc.
    The downside of this, of course, is reduced performance.

    So maybe RL_USB favours performance over protection against incorrect removal procedure?
    Maybe it has options to favour surviving "unsafe" removal?

    Related: http://www.keil.com/forum/62399/ ?

Reply
  • Remember that Windows has that 'Safely Remove Hardware' option that you're supposed to use before pulling-out a USB stick.

    Many people don't bother, and get away with it - most of the time.

    I think this is because Windows takes trouble to minimise the chances of corruption by not caching writes, etc.
    The downside of this, of course, is reduced performance.

    So maybe RL_USB favours performance over protection against incorrect removal procedure?
    Maybe it has options to favour surviving "unsafe" removal?

    Related: http://www.keil.com/forum/62399/ ?

Children