Hello,
I'm sorry for daring to ask a not strictly Keil related question here. I am stuck, and I hoped that some of the expertise here might help me out! I am writing data to an SD card, but I see that if I write less than 512 bytes to the device (sector size = 512, FAT16) the data ends up at the very beginning of the designated sector as it should. But if I write 512+ bytes, there is always an offset of 3 bytes (that is, data is written to the right sector but not from the beginning). I tried everything I know to no avail. Can you theorize what might be the cause of this?
Temperature?
Are you using SD card protocol or SPI?
ND
Nate,
Thanks for your reply. I am using the SD card protocol and I have found the problem (I think). I am working with an alternative file system and the hardware driver uses DMA transfers to handle the data. It seems that reducing the transfer with from RAM to the SD card from 32 bit to 8 bit solved the shift issue. It smells like some kind of alignment problem, but I'm not sure.