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
  • Hi, 

    Unfortunately, 0x978 is the HardFault handler of the MBR. The HardFault handler of the MBR will invoke the HardFault handler at 0x2635E, which in turn should invoke the HardFault handler of the application. 

    So this could indicate that the bootloader is jumping to an address that is not the reset handler of the application, but to a random address, which triggers a HardFault. It is difficult to say what the cause is without being able to step through the code myself. 

    Could you provide the debug log with hardfault?  Please see Vidar's comments in this post on how to do that.

    Which SDK/SoftDevice are you using?

    Can you take a look at this page on StackOverflow?

    Are you running the APP timer with a higher IRQ priority than the SoftDevice?

    What is your setting of RAM_PH_START?

    Please also see this post that might help.

    -Amanda H.

Children
Related