Hi All!
Here is the scenario:
I am using ESp32 wroom 32E with platformio and arduino framework.
In my code the most of the time the CPU is in deep sleep state.
When the wake up is triggered , it executes a customized wakeup stub that i wrote and that works perfectly. All the code and the variables used within the wakeup stub are placed in the RTC fast memory using "RTC_IRAM_ATTR".
When the processor is awake i would like to reuse all the function used in the wakeup stub but i get 'panic - illegal instruction crash.
The reason is that Arduino loop runs on core 1 and core 1 has no access to RTC fast memory but only through PRO cpu (core 0).
Is there a way to use a stub function also in the main loop?
Thanks to all for your help
Access to RTC fast memory from core 1
Re: Access to RTC fast memory from core 1
Please let me know if my question is stupid or too difficult or not so interesting or out of theme. So i can improve my contribution to this forum. My goal is always to find and share my solutions. Thank you.
-
- Posts: 9759
- Joined: Thu Nov 26, 2015 4:08 am
Re: Access to RTC fast memory from core 1
Well, to point out the obvious, you could start a task on core 0 to interface with your RTC_FAST stuff?
Re: Access to RTC fast memory from core 1
Thank you ESP- sprite-. I found a work around without using the rtc functions from arduino loop. If you want to post an example here , of a function to make the rtc functions available to core one , all the other users can benefit of this .It Is something that i have not found during my extended searches.
Many thanks
Guido
Many thanks
Guido
Who is online
Users browsing this forum: pmi2410 and 65 guests