ULP wake using ext1

sch0bert
Posts: 16
Joined: Thu Apr 11, 2019 9:58 pm

ULP wake using ext1

Postby sch0bert » Thu Apr 11, 2019 10:04 pm

Hello,

I would like to know if is possible to wake up ULP by using any RTC gpio with a HW interrupt while ULP is sleeping. Until now, I'm able to wake up the CPU using "esp_sleep_enable_ext1_wakeup" but I'm not sure if is possible to avoid waking up the CPU and go directly to ULP. If it's possible, please let me know how.

Regards,
Pascal.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ULP wake using ext1

Postby WiFive » Fri Apr 12, 2019 4:14 am

I don't think it is possible but you may be able to check from ulp program whether the interrupt occurred while it was sleeping and prevent the interrupt from waking the main cpu, not sure.

sch0bert
Posts: 16
Joined: Thu Apr 11, 2019 9:58 pm

Re: ULP wake using ext1

Postby sch0bert » Tue Apr 16, 2019 8:42 pm

Is it possible that you could confirm it with your team?

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: ULP wake using ext1

Postby ESP_igrr » Wed Apr 17, 2019 4:59 am

No, waking up the ULP using an IO isn't possible.

ULP can periodically poll the state of the IO, so depending on the expected pulse width you can find suitable polling frequency.

sch0bert
Posts: 16
Joined: Thu Apr 11, 2019 9:58 pm

Re: ULP wake using ext1

Postby sch0bert » Tue Apr 23, 2019 10:16 pm

Thanks for the clarification, I believe you should add this information in the ESP32 documentation, is not there and is not that obvious to think it can't.

Who is online

Users browsing this forum: No registered users and 120 guests