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

USBMem Mass Storage example quirks

Hello experts,

I have been testing the Mass Storage example for the MCB2140 and found some strange behaviour.

Example, the storage shows 14kB of space but if I try and copy a 3kB txt file the board crashes. File transfers appear to be limited to 1kB at a time?

In addition I attempted to modify the example so that the storage was based on SPI FLASH. I copied the Disk Image to the Flash and redirected the MSC_MemoryRead/Write command to FLASH.

Reading works fine and the test file appears in windows explorer. But writing fails due to some timing constraint.

This timing problem can be recreated by just putting a small delay inside the MSC_MemoryWrite function of the example code.

{int counter = 200; while(counter--);}

My thoughts are that the Mode Sense(6) command as not been implemented so no Flexible disk page data is offered giving transfer rate caperbility.

Would appreciate your experiences on this.

Many thanks,

Malcom

0