simonleung
Newbie level 4

Hello all,
I'm trying to get SDHC card (SanDisk 4G) working with my ARM microcontroller. Here is what I'm doing
- Send CMD0. Receives 0x1
- Send CMD8. Receives 0x1 + 0x00 0x00 0x01 0xAA
- Send CMD58. This is where things can go wrong. It always return 0xFF and 0x1. Afterwards, the OCR bytes can be either
0x00 0x80 0x00 0xFF
or
0x40 0x80 0x00 0xFF
depends on my luck!
Anybody knows why? Any input appreciated.
I'm trying to get SDHC card (SanDisk 4G) working with my ARM microcontroller. Here is what I'm doing
- Send CMD0. Receives 0x1
- Send CMD8. Receives 0x1 + 0x00 0x00 0x01 0xAA
- Send CMD58. This is where things can go wrong. It always return 0xFF and 0x1. Afterwards, the OCR bytes can be either
0x00 0x80 0x00 0xFF
or
0x40 0x80 0x00 0xFF
depends on my luck!
Anybody knows why? Any input appreciated.