bootloader_common_update_rtc_retain_mem() function
Update the partition and reboot_counter in rtc_retain_mem. This function saves the partition of application for fast booting from the deep sleep. An algorithm uses this partition to avoid reading the otadata and does not validate an image. Note: This function operates the RTC FAST memory which available only for PRO_CPU. Make sure that this function is used only PRO_CPU.
Arguments
partition
App partition description. Can be NULL, in this case rtc_retain_mem.partition is not updated.
reboot_counter
If true then update reboot_counter.