We are working on freescale SRB boards, which contain Microcontroller MC13213 (RF + MCU (HCS08 series) in single chip). We are using GenericApp of freescale's beekit version 1.0.3 for End Device. In this we are unable to start watchdog timer.
Our program also goes in deep sleep i.e. STOP 3 mode and be there for long duration.
We also set SIMOPT= 0xF3; Cop enable, long timeout, STOP mode enabled, background debug enable during initialization.
Afterwards we write some value in this register so that watchdog timer gets reset. But our device gets reset instead of watchdog timer.
Please help me out from this problem
Ashish
Solved! Go to Solution.
Mads,
We downloaded version 1.0.5 and put watchdog on it. We change SIMOPT with 0xF3 value in crt0.c file (i.e. SIMOPT = 0xF3; line 312). We also put SIMRS=0x20; (any value) at so many places in code to reset watchdog timer. Also we put (SIMRS=0x20 in for loop of Task_Scheduler function in TS_kernel.c file. But it will reset Freescale's SRB Boards after some time delay (say approximately 1 second)
Regards,
Ashish MAs I wrote earlier we are working on BeeStack 1.0.5, and in this we are unable to implement watchdog. Also I reset watchdog timer (SIMRS=0x20) after every 10-12 instructions. My current observation is that it requests for match found and after some time device gets reset.
Mads,
We downloaded version 1.0.5 and test it, this version has some problem related to network formation and hence we didn’t test watchdog on it.
Yes SIMOPT is write-once register, we changed its value in crt0.c file (i.e. SIMOPT = 0xF3; line 312)
Regards,
Ashish M