Can the WDT be routed to a GPIO pin

username
Posts: 534
Joined: Thu May 03, 2018 1:18 pm

Can the WDT be routed to a GPIO pin

Postby username » Mon Mar 16, 2020 9:37 pm

As most of us know when you starve the CPU core your going to get a WDT warning in the terminal.
I am curious if there is some kind of ISR hook or other call that can be implemented in code so that if it gets triggered I can toggle a GPIO pin.

User avatar
urbanze
Posts: 301
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: Can the WDT be routed to a GPIO pin

Postby urbanze » Tue Mar 17, 2020 11:10 am

username wrote:
Mon Mar 16, 2020 9:37 pm
As most of us know when you starve the CPU core your going to get a WDT warning in the terminal.
I am curious if there is some kind of ISR hook or other call that can be implemented in code so that if it gets triggered I can toggle a GPIO pin.
Task wdt has weak handler and yes, you can do this.

esp_task_wdt_isr_user_handler()

username
Posts: 534
Joined: Thu May 03, 2018 1:18 pm

Re: Can the WDT be routed to a GPIO pin

Postby username » Wed Mar 18, 2020 2:40 am

Thanks

Who is online

Users browsing this forum: No registered users and 90 guests