How can I implement watchdog timer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi jone


How can I implement it to the USI09 module? Our aim is understanding timer event or threads works properly.

I try below 2 functions. But I could not understand how they are using watchdog timer. I did not set WATCHDOG TIMER anywhere in the code so I am not sure about the exact working and timing. How can I set whathdog timeout?.

 

#define MAXIMUM_ALLOWED_INTERVAL_BETWEEN_MONITOR_UPDATES (10*1000*MILLISECONDS)

I use below function at the begining of the thread

wiced_register_system_monitor( &my_thread_monitor1, MAXIMUM_ALLOWED_INTERVAL_BETWEEN_MONITOR_UPDATES );

I use below function at the end of the thread

wiced_update_system_monitor( &my_thread_monitor1, MAXIMUM_ALLOWED_INTERVAL_BETWEEN_MONITOR_UPDATES );

PS: When I put GLOBAL_DEFINES := APPLICATION_WATCHDOG_TIMEOUT_SECONDS=20  to the make file. My code did not work. So I replaced it.

0 Likes
1 Solution
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

The watchdog initialize in platform_watchdog.c when system bring up!

And watchdog could NOT to disable when watchdog start!

You could check the STM32F2xx Reference Manual for the detail restriction

The system_monitor is software mechanism to hook up your thread monitor handler with watchdog timer!

View solution in original post

0 Likes
1 Reply
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

The watchdog initialize in platform_watchdog.c when system bring up!

And watchdog could NOT to disable when watchdog start!

You could check the STM32F2xx Reference Manual for the detail restriction

The system_monitor is software mechanism to hook up your thread monitor handler with watchdog timer!

0 Likes