1) Are there any tricks to configuring & using gdb & openocd with code that uses light_sleep or deep_sleep ? My initial forays into this area seem to show the debugger pretty much 'kicked off' the processor
2) Are there any internal stats that can be dumped to show that light/deep sleep was entered successfully, and time spent there ?
thanks
gdb, openocd & light sleep
Re: gdb, openocd & light sleep
Your observation is correct, when the CPU is clock gated (in light sleep) or powered down (in deep sleep), OpenOCD sees that as CPU being lost... We might be able to do something about light sleep, I think. Please open an issue in openocd-esp32 repository if this is important for you, so that we can track this request.
Regarding light sleep stats, I assume you are talking about automatic light sleep. Yes, there is an sdkconfig option to enable profiling of power management locks. If you enable it, you can call esp_pm_dump_locks function to see time spent in different power states.
https://docs.espressif.com/projects/esp ... ocksP4FILE
Regarding light sleep stats, I assume you are talking about automatic light sleep. Yes, there is an sdkconfig option to enable profiling of power management locks. If you enable it, you can call esp_pm_dump_locks function to see time spent in different power states.
https://docs.espressif.com/projects/esp ... ocksP4FILE
Who is online
Users browsing this forum: Majestic-12 [Bot] and 82 guests