We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear All,
I took the keil sample for AT91SAM7S-EK for mass storage and modufied it for my AT91SAMSE-EK. After the modification the program runs fine and I can use the board as a USB mass storage.
The big problem is the the reading speed on Windows side. Wrtite speed is acceptable. If the PC wants to read something, I read the sector from the flash (wich is pretty fast) and send 64 Byte to the host. After that I wait for the AT91C_UDP_TXCOMP Interupt that should come after the Buffer is empty to transfer the next 64 Byte. But this interupt occurs only every 1ms which slows down the reading speed. Does anybody know why the TXCOMP interupt is comming only every 1ms?
Thanks a lot for the help,
Christian
I am not sure what bInterval==0 means...
bInterval == 0x00 seems to be OK for a FULL Speed Device. But I checked other Values, too and nothing changed.
After some days off, I'm still fighting with the TXCOMP Interrupt. But everything I tried did not succeed. I also tried to run the AT91lib with Keil RealView and had problems, too.
Does anybody knows a working mass storage application for the AT91SAM7SE-EK or a port of the AT91lib for Keil RealView?
from what I have experienced with USB, many problems are due to poor windows-size drivers (sometimes, they don't even implement the entire USB protocol - see CDC driver for windows XP and 2000...). what happens if you switch to, say, another version of windows?
or even better: did you try it on a Linux machine...?
just tried with another windows and ubuntu and got the same results.
hm. I will go on searching...
just tried the board at my "non-PC-System" (X86 with RTOS) and this system tells me, that the drive is not ready. If I connect the board to my PC everything works (still slow, but works). After that I tried a Keil sample board with LPC2148 and got the same problem at the X86 system. A USB-Disk and a USB-CF-Adapter work fine.
Could it be, that the Keil Mass Storage Samples are a little bit non-standard? Does anybody knows a mass storage sample for the A91SAM7 for keil Realview?