Page 1 of 1

Can the WDT be routed to a GPIO pin

Posted: Mon Mar 16, 2020 9:37 pm
by username
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.

Re: Can the WDT be routed to a GPIO pin

Posted: Tue Mar 17, 2020 11:10 am
by urbanze
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()

Re: Can the WDT be routed to a GPIO pin

Posted: Wed Mar 18, 2020 2:40 am
by username
Thanks