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.

Parents Reply Children
  • i have the same question, the example is working,when i copy to my project (usb_cdc_acm),use the example function, is working, when i clip the example function to 2 functions, first mount at the initial and write afterat the event, is not working,i use the hole example in the event ,is working. i cannot find the reson, please help me.

Related