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

SDK1.2 NVS Changes

PM_MCUBOOT_STORAGE_ADDRESS and PM_MCUBOOT_STORAGE_ID seem to be no longer defined as of SDK1.2. As per the discussion here, I tried using DT_FLASH_AREA_STORAGE_OFFSET which seems to be working with MCUBOOT,however it is unable to read any settings written using the old SDK.

This means that if we FOTA these devices they will lose any hardware configuration settings that have been programmed. What's more is that it appears it's writing these settings to 0x86000 which I believe is the secondary partition for MCU_BOOT. We haven't gotten this far yet but I suspect that if we FOTA the devices it'll overwrite this area anyway.

What's the recommended way to store configuration parameters in a PM and FOTA compatible way?

Related