This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error in running sd card example

Hi all, 

I've a custom board in which I'm trying to interface SD card with nRF52840 chip. 

I've checked connections with multimeter for connectivity and  added pins accordingly in the code. 

I'm adding snippet of the connections. 

 

I get following error with example 

<info> app: FATFS example started.
<info> app: Initializing disk 0 (SDC)...
<info> app: Disk initialization failed.

Can someone plz help in figuring out reason for this error and how to resolve it ? 

Parents
  • Okay, the pin configuration and voltage should be fine then

    Is the SD card formatted (FAT32 or FAT)? What value does the disk_state have in main.c at the point when the "Disk initatilzation failed" message is printed? Try comparing this to the values in DRESULT in diskio.h to see if you can get any info from that? Also, what's the flash size on the SD card?

    Best regards,

    Simon

Reply
  • Okay, the pin configuration and voltage should be fine then

    Is the SD card formatted (FAT32 or FAT)? What value does the disk_state have in main.c at the point when the "Disk initatilzation failed" message is printed? Try comparing this to the values in DRESULT in diskio.h to see if you can get any info from that? Also, what's the flash size on the SD card?

    Best regards,

    Simon

Children
Related