mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00

Fix for issues where RTC FAST memory is updated as part of going into deep sleep. Very high risk if heaps are in RTC memory - in particular task stacks may be in RTC memory, but also other variables. Also fixes potential concurrency problems as RTC FAST memory is not accessible by CPU during the CRC calculation itself. Method: - Disable interrupts (currently for single core only, will need update for S3) - Load all registers before calculating CRC or going to sleep