SD card library speed selection

Hi, 

I'm developing a project that requires to write GPS data to an SD card. I'm using Nordic SD card library.

I'm able to initialize and interact with the SD card only if I'm setting both APP_SDCARD_FREQ_INIT and APP_SDCARD_FREQ_DATA to 536870912 (2 MHz). I'd like to reduce this speed, but when I do so, I'm not able to initialize or interact with the SD card. Even the library documentation recommends to reduce the SPI frequency to 250kHz during initialization.

Here's my settings:

#define APP_SDCARD_ENABLED 1
#define APP_SDCARD_SPI_INSTANCE 0
#define APP_SDCARD_FREQ_INIT 536870912
#define APP_SDCARD_FREQ_DATA 536870912

SDK version: 16.0.0

I'm using an nRF52832 and SPI0 instance.

Do you have an idea of what could cause this issue?

Alexandre

Related