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

FStorage Without Peer Manager

I've been trying to add flash storage to some BLE firmware we have developed using uVision under SDK version 12.3.0 and am running into issues. At first, we were having the issue that our flash event handler wasn't firing. On this site, I found someone saying to use to call fs_init after initializing the peer manager. However, we were not initially using the peer manager to begin with. But, to test it, I added the peer manager. However, the peer manager required more libraries and some of those libraries required more libraries. The code size is now to the point where our code has exceeded the maximum size for the version we were using, all because we were attempting to use the peer_manager.

Is there a way to get the fs_evt_handler to fire without having to include the peer manager?

  • I can run the debugger on my code, but as soon as I add breakpoints it crashes. However, I am able to stop code execution to see it is stuck on the power_manage loop.

    I'll create a private ticket to continue the discussion.

  • Hi,

    Seth said:
    I can run the debugger on my code, but as soon as I add breakpoints it crashes. However, I am able to stop code execution to see it is stuck on the power_manage loop.

    Yes, you can use breakpoints but not continue from them. If you continue after a breakpoint (or another pause in the execution), the SoftDevice will assert. This is because it was not able to process events on time. This is slightly annoying, but there is no good way around it other than using a single breakpoint that you move and reset and run to the new location after the reset.

    Seth said:
    I'll create a private ticket to continue the discussion.

    Sounds good. We will continue there.

Related