Reputation: 77
I bought a SD module like this. I'd like to learn SD protocol with Raspberry Pi. I tried to write a example code with SPI mode. This is my example code.
I sent CMD0(0x40 0x00 0x00 0x00 0x00 0x95)
to SD module, and I expect I can receive 0x01(in idle state). My example code received 0xff
. How to modify my code to do? Where can I find SD/MMC sample programs with SPI mode?
Upvotes: 0
Views: 342