For (2), we can check for the `RTC_IRAM_ATTR` for functions in RTC memory. But how can a developer tell if a function is implemented in ROM? Is it just the functions in `esp_rom_sys.h`? Or any function with an `esp_rom_*` prefix?* Wake stub code must be carefully written, there are some rules for wake stub:
* 1) The wake stub code can only access data loaded in RTC memory.
* 2) The wake stub code can only call functions implemented in ROM or loaded into RTC Fast Memory.
* 3) RTC memory must include any read-only data (.rodata) used by the wake stub.
Functions implemented in ROM
Functions implemented in ROM
In the deep sleep wake stub example, we see:
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Functions implemented in ROM
AFAICT, you should be able to call any function provided by the "esp_rom" component.
Who is online
Users browsing this forum: snutw_ and 82 guests