This problem really has me stumped.
I'm using emFile to interface a NAND flash and SD card on my own hardware. The NAND works perfectly, no issues.
The SPI MMC/SD is another issue. If my application allowed, I could probably stream a MP3 off of the SD card, but I can't seem to write to it. Yes, I have checked that the card is not write-protected.
This is what emFile is reporting:
FS error: MMC_SPI: _WriteSectors: Data not accepted.
FS error: MMC_SPI: _WriteSectors: Data not accepted.
FS error: MMC_SPI: _WriteSectors: Command not accepted.
FS error: MMC_SPI: _WriteSectors: Command not accepted.
FS error: LOGBLOCK: Failed to write sector(s): 0x000080FD-0x000080FD to "mmc:0:".
After this, the card is not accessible. For example, I can't do a directory listing. I have to remove the card, and re-insert it into the holder to gain access again.
These errors were obtained when I ran the sample code that just writes a simple text file. The file creation is successful, but the file is empty.
Some board specifics:
STM32F303VE processor running at 72Mhz.
(SPI3) SPI clock rate is 281khz as measured with a scope.
emFile version V4.04a
I have tried a couple different cards. Both had a FAT file system and when that didn't work, I formatted one of them to a FAT32 file system (didn't fix anything).
Any direction would be helpful. I'm not sure where to look.
Thanks,
Dave
I'm using emFile to interface a NAND flash and SD card on my own hardware. The NAND works perfectly, no issues.
The SPI MMC/SD is another issue. If my application allowed, I could probably stream a MP3 off of the SD card, but I can't seem to write to it. Yes, I have checked that the card is not write-protected.
This is what emFile is reporting:
FS error: MMC_SPI: _WriteSectors: Data not accepted.
FS error: MMC_SPI: _WriteSectors: Data not accepted.
FS error: MMC_SPI: _WriteSectors: Command not accepted.
FS error: MMC_SPI: _WriteSectors: Command not accepted.
FS error: LOGBLOCK: Failed to write sector(s): 0x000080FD-0x000080FD to "mmc:0:".
After this, the card is not accessible. For example, I can't do a directory listing. I have to remove the card, and re-insert it into the holder to gain access again.
These errors were obtained when I ran the sample code that just writes a simple text file. The file creation is successful, but the file is empty.
Some board specifics:
STM32F303VE processor running at 72Mhz.
(SPI3) SPI clock rate is 281khz as measured with a scope.
emFile version V4.04a
I have tried a couple different cards. Both had a FAT file system and when that didn't work, I formatted one of them to a FAT32 file system (didn't fix anything).
Any direction would be helpful. I'm not sure where to look.
Thanks,
Dave