Using ULP on ESP32-S3 while main cores are awake.

KT819GM
Posts: 5
Joined: Mon Aug 20, 2018 10:42 am

Using ULP on ESP32-S3 while main cores are awake.

Postby KT819GM » Fri Aug 19, 2022 4:57 am

Hello,

Sorry if the question sounds dumb enough but it would be helpful to get an answer as I couldn't find it through searches. I'm thinking that the ULP coprocessor is a separate hardware unit in the ESP32 series which is not dependent on main cores. If this is true then it could be used as a hardware watchdog while main cores are running (let's say to count ticks). Not sure if this is possible and worth an effort to try out.

Thank you!

Leander
Posts: 28
Joined: Thu Sep 26, 2019 8:50 pm

Re: Using ULP on ESP32-S3 while main cores are awake.

Postby Leander » Mon Aug 22, 2022 3:05 pm

Had the same idea before. You could use a share register and counter to check if the main cores are still running. But the ULP has no means to execute a reboot/reset. It can just exit it's running state back to the point the ULP started and the core task stopped.

KT819GM
Posts: 5
Joined: Mon Aug 20, 2018 10:42 am

Re: Using ULP on ESP32-S3 while main cores are awake.

Postby KT819GM » Mon Aug 22, 2022 7:15 pm

T.y. Will try to figure it out with the ULP then. After wrong main core behavior, ULP could simply trigger one of the RTC GPIO which could be connected to the NPN or any MOSFET to pull down the reset pin making an effective hardware reset. Not sure though if it is worth using hardware on the same chip (does it makes any better than a watchdog except for being more configurable)?
Leander wrote:
Mon Aug 22, 2022 3:05 pm
Had the same idea before. You could use a share register and counter to check if the main cores are still running. But the ULP has no means to execute a reboot/reset. It can just exit it's running state back to the point the ULP started and the core task stopped.

boarchuz
Posts: 606
Joined: Tue Aug 21, 2018 5:28 am

Re: Using ULP on ESP32-S3 while main cores are awake.

Postby boarchuz » Mon Aug 22, 2022 7:25 pm

You could use the RTC WDT to trigger a reset via the ULP... but then why not just use the RTC WDT?

malachib
Posts: 18
Joined: Tue Aug 28, 2018 9:06 am

Re: Using ULP on ESP32-S3 while main cores are awake.

Postby malachib » Sun Jan 01, 2023 7:22 am

Just for the record:

"Note that the ULP program keeps running and monitoring the input signal even when the SoC is woken up."

- https://github.com/espressif/esp-idf/tr ... lp_fsm/ulp

Who is online

Users browsing this forum: atx823, MicroController and 184 guests