ets_printf from wake handler not working
Posted: Sat Aug 15, 2020 5:11 pm
I have the following code (snipped up):
I know for sure the wake stub is running (other code is running that I snipped out) but if I do a `make monitor` and put the board to sleep, then wake it up, I see no serial output. I can see the messages from the board as it is going down and as it comes up though, just not my ets_printf in the wake stub.
Any ideas?
Thanks!
Code: Select all
static RTC_RODATA_ATTR const char wake_msg[] = "Low power up\r\n";
// Deep sleep wake stub
void RTC_IRAM_ATTR esp_wake_deep_sleep(void)
{
// https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/deep-sleep-stub.html
esp_default_wake_deep_sleep();
// Enter the full sized wake stub routine
WakeStub_Run();
}
// Call on fresh bootup
void RTC_IRAM_ATTR WakeStub_Run(void)
{
// We're up
ets_printf(wake_msg);
}
Any ideas?
Thanks!