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

sd_flash_write() cause NRF_FAULT_ID_SD_ASSERT

Hi,

I have run into an issue with nrf52840 on pca10056 v1.0.0 board. The softdevice is SD v6.1.0. It seems to be a hardfault which cause a reset when I tried to call sd_flash_write(), sd_flash_page_erase() is OK though. The address and buffer is 4 byte aligned, the number of word is 1024.

Following the parameter of the callback error that Softdevice invoked

  • id = 1 (NRF_FAULT_ID_SD_ASSERT)
  • pc= 0x00014A3A
  • info = 0x00

if SD is not enable, there will be no problems at all. Strange things is the very same code run without issue on nrf52832 S132 v6.1.0.

I am appreciated if anyone could provide a hint why SD assert at that pc location.

Thanks in advance

Parents Reply
  • Hi, following up, has this been fixed in 7.0.x? In the 7.0.0 Release Notes, I see:

    The time scheduled for a flash write or flash page erase using sd_flash_write or sd_flash_page_erase APIs on nRF52811 will be longer than required and the same as for nRF52832.

    And in 7.0.1, I see:

    Fixed an issue where the time scheduled for a flash write or flash page erase using sd_flash_write or sd_flash_page_erase APIs on nRF52811 will be longer than required and the same as for nRF52832 (DRGN-12539)

    Perhaps is this implying the scheduled time was lengthened in 7.0.0 to allow a full page write (and made more precise in 7.0.1), but that would be a guess.

Children
Related