Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Flash partition manager problem when using Zephyr Settings API with MCUBoot

Hello, I am working on a project where we use MCUBoot. 

Currently everything works fine, but now we wanted to introduce persistent storage of some key value pairs.

For that we use the Settings API. According to the documentation, a flash partition called "storage" is needed but as soon as we enabled

the MCUBoot, the partition manager is used. There a partition is automatically generated with a different name "storage-settings" or so.

The problem is now what when I call the e.g. function "settings_save" it returns -2, what I suspect is because it does not find the storage partition.

I tried to create a pm.yaml in my project folder and add a partition called "storage" but that did not help. I could not find any examples for that

either that use MCUBoot + the settings api with the partition manager.

Any hint is welcome, Br, Benjamin

Related