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

How to use pstorage alongside a softdevice?

I am wanting to use pstorage for storing a few persistent variables. I am working from the multilink central example, which already is using pstorage for, I assume, saving context. How do I use pstorage without breaking the other parts of the example?

I have been looking at the reference documentation...

infocenter.nordicsemi.com/index.jsp

but I am not sure how to weave it in to the project.

I am using sdk11 and s130

Parents Reply
  • i think pstorage in ble_multilink_central example is used by device_manager. I'm trying to solve the same problem now, i am ussing pstorage module, but i keep losing data because device manager is already using pstorage.

    /**@brief Function for initializing the Device Manager.
     *
     * @details Device manager is initialized here.
     */
    static void device_manager_init(void)
    {
        dm_application_param_t param;
        dm_init_param_t        init_param;
    
        uint32_t err_code;
    
        err_code = pstorage_init();
        APP_ERROR_CHECK(err_code);
    
        init_param.clear_persistent_data = false;
       
       ...
    }
    
Children
No Data
Related