ptjw
Junior Member level 3
hello,
i am using a SPARTAN 3A FPGA to interface with an SD card via SPI, i have gotten it to initialize (CMD0, ACMD41) and now i am trying to read a block of data from the card.
my problem is that the card does not send back any of the information i am requesting...but it is sending SOMETHING...
this is the screenshot of the SD card i am using in winhex, i am trying to access the data on the config.txt file in the card. i typed in (ASCII) "2500000000..." and in winhex you can see that the hex values of the card is 32 35 30 30 30 30 30 which is correct.
the address of that data from what i can see is 00057000? i sent CMD17 (read block) to the SD card by sending "FF5100057000FF" and i get the reply 10 00 00 00 00 (in hex) etc etc which doesn't correspond to the data i have in the picture above...
is my address wrong? i should not be getting back any data at all if my SPI interface is wrong, the MISO pin goes to high after the card sends its data which i assume that means it goes to idle state so the interface does work..only that the data being sent to me is wrong...
anyone have any idea what could be the problem? thanks!
i am using a SPARTAN 3A FPGA to interface with an SD card via SPI, i have gotten it to initialize (CMD0, ACMD41) and now i am trying to read a block of data from the card.
my problem is that the card does not send back any of the information i am requesting...but it is sending SOMETHING...
this is the screenshot of the SD card i am using in winhex, i am trying to access the data on the config.txt file in the card. i typed in (ASCII) "2500000000..." and in winhex you can see that the hex values of the card is 32 35 30 30 30 30 30 which is correct.
the address of that data from what i can see is 00057000? i sent CMD17 (read block) to the SD card by sending "FF5100057000FF" and i get the reply 10 00 00 00 00 (in hex) etc etc which doesn't correspond to the data i have in the picture above...
is my address wrong? i should not be getting back any data at all if my SPI interface is wrong, the MISO pin goes to high after the card sends its data which i assume that means it goes to idle state so the interface does work..only that the data being sent to me is wrong...
anyone have any idea what could be the problem? thanks!