Questions and discussions about the software that runs on the TD RF module itself.
dandavid3000
 
Posts: 24
Joined: Fri Oct 28, 2016 12:30 pm

TD SCHEDULER doesn't work as expected

by dandavid3000 Fri Jun 16, 2017 3:36 pm

Hi,

I have a piece of code in the attached file to test with Watchdog. In this example, I set up the period for watchdog every 64. I set up TD_SCHEDULER function to feed the watchdog every 50s. However, The TD_SCHEDULER doesn't call my WATCHDOG_FEED every 50 seconds (That's why the device reboots) . If I modify 50 -> 49, then it works?

Can anyone explain why I have this issue ?

It doesn't work neither when I set up WATCHDOG(128), and the interval for TD_SCHEDULER is 100. :(

Thank you,
Dan
Attachments
watchdog.c
(3.66 KiB) Downloaded 1828 times
Return to Firmware

Who is online

Users browsing this forum: No registered users and 10 guests