This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Peer Manager Init returns NRF_ERROR_STORAGE_FULL at boot time, why?

Hello,

I am using nrf52832 pca10040 with softdevice v3 of SDK v12.2, when booting my device tries to initialize the peer manager with pm_init() and this function is returning error code 0x3.

I have traced it a bit and within pm_init() the function pds_init() is called and within it the error comes when invoking fds_init() which returns NRF_ERROR_STORAGE_FULL.

How can this happen at booting time? And more important what can I do to fix it? Would giving more memory fix the issue?

Thanks in advance

EDIT: I have been reading this post and this other so think that I needed to adjust my uuid_count and attr_tab_size on ble_enable_params because I use 128 UUIDs. Thus I have

1 base 128 bits UUID                                                          = 128bits
5 characteristics whose UUID are as well 128 bits                             = 5 * 128 = 640 bits
2 characteristics whose UUID are 16 bits (battery service and device service) = 2 * 16  = 32 bits
---------------------------------------------------------------------------------------------------------------------
                                                                        total = 800 bits = 0x320





ble_enable_params.common_enable_params.vs_uuid_count = 1; //base UUID
ble_enable_params.gatts_enable_params.attr_tab_size = 0x320; //800 bits

After trying them it doesn't work... any help?

EDIT2: If I comment the init of the peer_mamanger(), my whole program runs as it should, so I don't know what is happening with the peer manager and the fds...

Related