Page 1 of 1

ESP32-p4 deep sleep wake-up

Posted: Thu Oct 02, 2025 1:51 pm
by andy_karl
Hi
I got a esp32-p4-nano poe board from waveshare and I got some trouble to get it going
I want to use a reed switch to act as deep sleep and wake up trigger (high-wake up/low-sleep)
However I can‘t get the deep sleep examples coming with Arduino IDE (esp32 by espressif 3.3.0) to work.
Compiling the example (unmodified) gives me the error ext0 function is unknown
Trying the ext1 example compiles but device is not going to sleep.
Can someone point me in the right direction?

Re: ESP32-p4 deep sleep wake-up

Posted: Thu Oct 02, 2025 3:14 pm
by JohnnyZ
Hi,

Could you try to use ESP-IDF without Arduino and see if it works there?
If not, paste error message here (as text, not as a screenshot)

Re: ESP32-p4 deep sleep wake-up

Posted: Thu Oct 02, 2025 4:01 pm
by andy_karl
Never done that before. Is there a quick start?

Re: ESP32-p4 deep sleep wake-up

Posted: Fri Oct 03, 2025 6:43 am
by andy_karl
Ok the esp-dig examples loads fine and WakeUp works
How do I adapt this to my arduino sketch which I wanted to use with deepsleep?