Altera_Forum
Honored Contributor
13 years agoSD card ip core: read block error with SDHC
Hello all, my Project is as below:
IP CORE SD CONTROLLER with SPI mode, work with 2G SD card but not with card >= 4G; The initialisation flow is all good, no problem. The problem is: With a card HC(4G), when I tell it to read a block beginning at 40 00 00h, it reads at 80 00 00 00h (512 times bigger); but with a card non HC(2G), there is no such problem. the API using is "sd_read_data_block( sd_card_info_struct* sd_card, char* data_buffer, alt_u32 read_address )" Can someone help me with this? It drives me crazy:cry: THX very much!