I'm implementing a feature which requires me to store data in ram region which would not be resetted during reboots (sys_reboot(SYS_REBOOT_WARM)).
I'm using clause in application :
I'm implementing a feature which requires me to store data in ram region which would not be resetted during reboots (sys_reboot(SYS_REBOOT_WARM)).
I'm using clause in application :
Hi,
Try using the method shown in this sample.
https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/boards/nrf/system_off/src/retained.c#L130
Hi,
Try using the method shown in this sample.
https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/boards/nrf/system_off/src/retained.c#L130
Thank you. that was exactly a solution I was looking for.
Hi, But does it really work when you have the MCUBOOT aswell ?
MCUBOOT has its own noinit area that could differ from the one defined in the APP. And in the case of the nrf5340, MCUBOOT might use more RAM than the APP (since it has to define the mock_flash of 262KB for the netcore upgrade).
So the noinit area of the APP might end up in the BSS area of the bootloader.