Hi
I'd like to be able to stay in mcuboot after a reset if requested by the application (feature mention here https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/retention/index.html#boot_mode). This requires a entry in DT which specifies a ram region which is not initialized on boot by mcuboot and I assume also by the application.
How does this work together with the partition manager? Currently I define my sram region in pm_static.yml. Should I add a sram@2006FFFF
node to DT and reduce the size of sram_primary in pm_static.yml. Or is there a way to also define the retention region in pm_static.yml. Does this even work together?
BTW is it possible to use CONFIG_BOOT_SERIAL_BOOT_MODE
and CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT
together? To stay in mcuboot if requested by the application but in all other cases still wait for a defined time in mcuboot before proceeding with loading the application?
EDIT: just looked through all the kconfig options. Can the desired behavior simply be done by using the nRF GPREGRET driver without reserving a byte in sram for that?