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

FDS Write problem

Hello, I am using SDK 12.01 with softdevice (BLE application) and I want to write large data over flash. I am stuck with various issues.

  1. When I try to write the data, FDS returns success. But write_flag is never raised and nothing gets written over flash. ( I have designed my code based on github example github.com/.../nRF52-fds-example) I have BLE ADVT ongoing but I tried the code with advt stopped just before writing to flash. Still it fails. This is currently my prime concern.
  2. I want to write large data ( ~400 KB, not at once) and read it ( at once) and send it over BLE. What can be the best way to implement this?

Edit: I tried using ble_flash for simple write with radio not active (m_radio_active=0). It generates hardfault at while (NRF_NVMC->READY == NVMC_READY_READY_Busy)

Parents
  • Look at this example devzone.nordicsemi.com/.../ I just copy pasted it to sdk 13 ble template and it worked. So it should be no problem to copy the needed functions (just the ones over main) into your template.

    As for saving the data I am very interested in someone to answer this part kind of stuck with the same problem.

    There is one minor error in the example in fds_read there is NRF_LOG_INFO("0x%8x ",data[i]); you need to delete the 8 in order to see the hex values NRF_LOG_INFO("0x%x ",data[i]);

Reply
  • Look at this example devzone.nordicsemi.com/.../ I just copy pasted it to sdk 13 ble template and it worked. So it should be no problem to copy the needed functions (just the ones over main) into your template.

    As for saving the data I am very interested in someone to answer this part kind of stuck with the same problem.

    There is one minor error in the example in fds_read there is NRF_LOG_INFO("0x%8x ",data[i]); you need to delete the 8 in order to see the hex values NRF_LOG_INFO("0x%x ",data[i]);

Children
No Data
Related