Page 1 of 1

"Deep sleep wake stub" issue

Posted: Fri Feb 21, 2025 9:24 am
by alb702
Hi.

Hardware: customized board at ESP32-C3FH4
SDK : ESP IDF v. 5.1

I used in my project deep sleep feature, but average current was big due "duty cyscle" 0.5 s.

To reduce average current, i added to my project "deep sleep wake stub" from examples code, but
in my project this didn't work. Always was reboot through bootloader.

A builded separate project from examples is work, but not have any serial output from "stub" code (why?).

At compare projects configurations, critical for "stub"work cause was
---
"Enable -msave-restore flag to reduce code size"
---
parameter in "Compiler options" of menuconfig. If this flag is set, a "stub" code is not called.