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

LPC2378 SD card trouble

Hi Keil,
I'm having troubles with the LPC2378. Not sure if this is the appropriate forum, but thought I would try my luck.

I am attempting to read blocks from an SD card and reading works except when reading the last block of a file.

I can read back all the "full" (512 byte) blocks of the file, but when reading the last partial block (in this case 240 bytes), the device has an RxOverrun error and fails to complete the read. I am not specifically trying to read 240 bytes, rather I am attempting to read another 512 byte block which should inlcude the last 240 bytes of the file when this occurs.

I am using DMA mode and reading one block at a time. The SD card is a 512 MB model, but the same occurs with other sizes.

Can you help me?

Thanks,
Bill