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.
thanks for your reply. My problem is when I want to attach a usb flash memory to board and do sth, after that I eject the usb flash (after complete write.read operations), but next time that want to attach the same or other usb flash to board, the same operations does not work and the uC hangs !!! hat is your suggestion for this procedure?