ASF4 SDCARD FATFS question

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Gentlemen,

 

I have been trying for several days to implement the SDcard and Fatfs library example on my board using the SAME53. I'm using the High Speed interface.

Using the example code, I always get SD_MMC_ERR_UNUSABLE from the function sd_mmc_check(0);

I have traced these down to try and find the cause, but it seems that the configuration struct is assigned elsewhere and I don't know where that is. Possibly from an SD card callback function which I cannot find in the library. 

 

Looking at the data bits with a scope, I do see a nice clean clock signal, but no movement on the data bits or command bit when the sd_mmc_check() is being run. 

I have tried lowering the IO_Bus clock, but it makes no difference. 

 

Anyone seen this problem?

 

Thanks,

Rick