This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PM: How to setup the watchdog in combination with a RTOS?

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: EK-TM4C123GXL

I like to use the watchdog to unblock a firmware in case it get stucked.

"/examples/boards/ek-tm4c123gxl/watchdog" give a nice example how to setup the watchdog as a timer.

I coming from a other perspective. I like to start the watchdog when the firmware comes up. From time to time my idle thread pokes the watchdog.

What is the "poke" function? Can I archive that without using any intr/isr?

Best

Stefan

  • Hello Stefan,

    Using a Watchdog without an ISR period is not possible - that is the whole way the process works.

    What you would usually do is 'feed' the watchdog in an idle task so when the interrupt fires, it sees the system is running and just starts a new counter. Usually all you do in the Watchdog ISR is clear the interrupt and reset your 'feed' variable. It's very slim code in the end.

    One possibility I have never tried and wouldn't personally endorse but potentially could work is to manually reload the Watchdog Load register to restart the timer count without an interrupt. But I don't feel that is a proper solution, the entire intent of the Watchdog peripheral to be used with ISR and it was not designed in with any thoughts to enable use without an ISR.

    Best Regards,

    Ralph Jacobi