Dear Sir,
I am using RL-FLASH FS with RTX for SD Card, USB HOST MSC, and FTP support.
In my application, there are two tasks which can access file system to perform file operation. 1. TCPnet Task and 2. File reading and writing task from both USB Host MSC and Micro SD Card.
Application works fine without any issue with all my USB sticks except one.
I am able to read all files from that faulty USB stick but while opening a file for writing, it gives continuous hard faults and my other system tasks doesnt hang. But those two tasks which are accessing file system hangs forever.
One more important things to tell you that same USB Stick works successfully if I am using any another USB stick before inserting this faulty one till next power cycle.
is anybuddy faced same issue???? how should I debug it??
Regards, Pradeep Pol
Can I refer you to this
http://www.keil.com/forum/21384/
I have provided heap of 8192 Bytes. My code is working fine with all usb pen drive except one.
Is the USB device a composite ? eg I have a memstick that behaves as CD rom as well as standard USB msd so two drives appear on a PC when the USB memstick is inserted.
The standard ST usb code detects and says the device is not a supported device could you be having a similar issue with the Keil usb lib ?
I am having composite pen drives and they are working without any issue with RL-FlashFS. Pen drive with which i am facing problem that is not Composite.
in that case its not something I have come accross so its outside of my experience
Thanks for your reply.
Actually finit function was returning value 4. I didnt checked that point (sorry!). Now I formatted the drive and now it is working fine. On Keil forum, i came to know that return value 4 means invalid FAT table.
I should check if finit function is returning null value. If not then user should not be allowed to copy any data.