Task with stack in RTC memory crashes when writing to flash
Task with stack in RTC memory crashes when writing to flash
I have attempted to use RTC FAST memory as a task's stack, and it works, until the task attempts to do a flash write operation, which causes a crash, but the printed stack dump has only one frame and is flagged as corrupted. I didn't find any information about limitations when using RTC memory as stack, or any evidence that someone has tried it. So, is it actually possible to write to flash from code in RTC memory, and are there any caveats when using RTC memory as stack?
-
MicroController
- Posts: 2705
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Task with stack in RTC memory crashes when writing to flash
You mean besides the fact that, on the ESP32, only one of the two CPU cores (the "PRO CPU") can access RTC fast memory, and that RTC memory is usually slower to access than normal SRAM?are there any caveats when using RTC memory as stack?
Re: Task with stack in RTC memory crashes when writing to flash
Yes, besides these. I am aware of them.
Who is online
Users browsing this forum: Bing [Bot], meta-externalagent and 3 guests