2017-05-11 02:09 AM
A device I had been testing for over two months suddenly started giving FR_DISK_ERR (I'm using Elm Chan's FAT-FS) [
http://elm-chan.org/fsw/ff/00index_e.html
]. When I tried debugging, the command (CMD0) which must be clocked in to set the SD card into SPI mode (as described in the SD card spec sheet - SDcard.org [https://www.sdcard.org/developers/overview/sdio/sdio_spec/Simplified_SDIO_Card_Spec.pdf
) return 0xFF and not 0x01, i.e. it failed.My question is:
*If CMD0 fails does that mean the SD card controller is not working?
*Will it still work in SDIO mode even if CMD0 fails? (I couldn't test it as my uC does not support SDIO)
*Can an OS (Linux, Windows, Mac) format this SD card to make it working again? If so how does it do it?
--Linux's (I'm using Ubuntu) gparted was giving an error while it was trying to read the disk. I got an error 'input/output error during read on /dev/sdb' Does this mean the SD card is a 'gonner'/ never going to work?
#sdio-chan-fatfs #fat-fs #micro-sd-cardSolved! Go to Solution.
2017-06-06 08:06 AM
To me, it sounds like the card is dead.
I would check another one, to verify the hardware interface is (still) o.k.