Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Fatfs example does not work with every sd card?

Hi, I am working on application where I need to store some bigger files. I chose to use sdcard, but I get weird behaviour. Some sd cards, this looks like totaly random ones are working and other are not with fatfs on nrf52. I was trying few cards with fatfs example from SDK and one was working while all other seems to hang up at disk_initialization:

I tried making changes as suggested here: https://devzone.nordicsemi.com/f/nordic-q-a/25951/sd-card-example-not-working-fine but it wont help. I can work with that few are not working but it looks like most of them is not working. Is there recommended sdcard size/type/manufacturer to be used with nrf52?

Regards,

Michał

Parents
  • The default SPI settings use standard drive for the SCK and MOSI pins; it's perhaps worth checking whether they simply need to be set to high drive (typically required only at higher clock frequencies). Offhand I don't know whether the FATFS example already does that, but most examples do not. Here's an example, must be set after SPI initialise (or change within SPI init):

  • Did it require external pull-up resistors?

Reply Children
No Data