Your code and documents are awesome! Thank you for your sharing.
In SOES_CIA402_AX58100, you set watchdogcnt in check_dc_handler(). The comments and the variable names indicate that you consider each count of watchdogcnt as a nanosecond.
Yet, the DIG_process(DIG_PROCESS_WD_FLAG) in each while(), which subtracts the watchdog value between the duration, which is the processing time of while() (dozens of micorsenconds in my case). So the watchdog value is almost never below zero.
I am wondering there's any misunderstanding of the program about watchdog in your code?
Your code and documents are awesome! Thank you for your sharing.
In SOES_CIA402_AX58100, you set
watchdogcntincheck_dc_handler(). The comments and the variable names indicate that you consider each count ofwatchdogcntas a nanosecond.Yet, the
DIG_process(DIG_PROCESS_WD_FLAG)in eachwhile(), which subtracts the watchdog value between the duration, which is the processing time ofwhile()(dozens of micorsenconds in my case). So the watchdog value is almost never below zero.I am wondering there's any misunderstanding of the program about watchdog in your code?