1 Reply Latest reply on Oct 22, 2015 12:22 AM by jone_yi_1844281

    How can I implement watchdog timer

    user_272072780

      Hi jone_yi_1844281


      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.