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

FATFS example works, but SD card fails to initialize in custom BLE service project

Hello,

I am trying to work on an application to transfer BLE characteristic data to an SD card.

I ran the FATFS example on my setup and it works perfectly with the Test string stored in the file in the SD card. But when I try to merge the FATFS code with a custom BLE service project, I get an error in the first Disk initialization step itself.

After debugging the disk_initialize() function, I narrowed down the error to NRF_BLOCK_DEV_RESULT_IO_ERROR . 

Considering that I don't get this error with the FATFS example on the exact same setup, what might be causing this when I merge the code. I've checked the SDK_config settings, and they seem ok.

I would appreciate any help. Thanks.

Related