Other Parts Discussed in Thread: MSP430F5438A
I am interfacing 8GB SDHC Card with MSP430F5438A through SPI. I have implemented basic function to Init SD Card, Read a sector, write a sector and also succesfully tested on initial sectors.
But Problem is when I try to read higher sectors, it gives me 0x08 Data Error Response which is Out of range. I have tried to read sector number 32768(0x8000) and got this error. after that I tried to read sectors from 0 to last and get error first time at sector 0x7670 and after that i always get Out of range error. My SD Card is of 8 GB, so number of available sectors is more than 32768 sectors.
As per CSD Register ver 2.0, available bytes are 0x1D9C00000 and for 512 bytes long sector, total no of sectors = 0xECE000.
So What is the reason behind getting out of range error?
and how to fix this problem?
If anyone have faced this issue or have knowledge about it, please help.
Thanks,
Amit Bhorania