bootloader RTC memory access - bootloader_common_get_rtc_retain_mem();

davidos
Posts: 2
Joined: Mon Oct 02, 2023 10:19 pm

bootloader RTC memory access - bootloader_common_get_rtc_retain_mem();

Postby davidos » 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 :

Code: Select all

  rtc_retain_mem_t* mem = bootloader_common_get_rtc_retain_mem();
    // mem->custom is the user's usable array in RTC
	
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!

Who is online

Users browsing this forum: ChatGPT-User, coccocbot and 5 guests