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

hangs at nrf_fstorage_erase(). (debug shows -> Unknown function at 0x00000978)

So I am trying to store a few configuration parameters in flash.

I am using nrf_fstorage for that.

so before storing the parameters, I am erasing the flash but, it hangs at "return (p_fs->p_api)->erase(p_fs, page_addr, len, p_context);" in nrf_fstorage_erase().



How to solve this problem?
Thank you.

Parents Reply Children
  • Hi, 

    I'm not sure. It would be very helpful if we could reproduce it. Would you like to share the project with us? I can make the case private. 

    Is fstorage_erase() called from an interrupt?

    The SD APIs cannot be called from an interrupt with higher priority than the SV itself

    https://devzone.nordicsemi.com/f/nordic-q-a/32684/hardfault-on-an-sd_ble_gatts_hvx-call-in-sdk-14-2-0

     

    -Amanda H.

Related