bootloader RTC memory access - bootloader_common_get_rtc_retain_mem();
Posted: Tue Oct 07, 2025 11:02 am
hi ,
i am trying to create a custom bootloader exactly like in the idf examples , only I dont have a clue how to access the slow RTC memory so that multiple apps can write a value to it and then after a deepsleep reset the bootloader loads the app partition based on that value.
I have seen this code :
but i dont have a clue how to incorporate it into my bootloader.c and my apps , I know i am missing the header files , without which I get an error
can someone please give me any pointers ?
many thanks in advance!
i am trying to create a custom bootloader exactly like in the idf examples , only I dont have a clue how to access the slow RTC memory so that multiple apps can write a value to it and then after a deepsleep reset the bootloader loads the app partition based on that value.
I have seen this code :
Code: Select all
rtc_retain_mem_t* mem = bootloader_common_get_rtc_retain_mem();
// mem->custom is the user's usable array in RTC
can someone please give me any pointers ?
many thanks in advance!