TC275 watchdog does not work

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

cross mob
User15507
Level 1
Level 1
First reply posted First question asked
Hi I am using TC275 evaluation board and the sample code coming with the product.

at the below code, which is cpu0 start-up driver
as you can see, I remove those two lines that disable both CpuWatchdog and SafetyWatchdog.

So basically Watchdog function is enabled but whenever I downloaded the binary with Trace32 debugger and run it.
it does not trigger watchdog
there is no where to disable watchdog whatsoever.

what could be wrong with my thinking?

    
(...)
IfxCpu_initCSA((uint32 *)__CSA(0), (uint32 *)__CSA_END(0)); /*Initialize the context save area for CPU0 */

{
/*CPU and safety watchdogs are enabled by default, C initialization functions are not servicing the watchdogs */
uint16 safetyWdtPassword = IfxScuWdt_getSafetyWatchdogPassword();
//IfxScuWdt_disableCpuWatchdog(cpuWdtPassword);
//IfxScuWdt_disableSafetyWatchdog(safetyWdtPassword);

Ifx_C_Init(); /*Initialization of C runtime variables */

IfxScuWdt_enableCpuWatchdog(cpuWdtPassword);
IfxScuWdt_enableSafetyWatchdog(safetyWdtPassword);
}

IfxPort_setPinMode(&MODULE_P33, 8, IfxPort_Mode_outputPushPullGeneral);
IfxPort_setPinLow(&MODULE_P33, 8);

/*Initialize the clock system */
IFXCPU_CSTART_CCU_INIT_HOOK();
(...)


Sorry my english is not good but I tried to explain as much as I could

Thanks.

Best Regards,
Dongah Electric Componenet R&D Center Research Engineer, Korea
SIHUN, LEE
lsh9640@dongah.biz
82-10-4902-9640
0 Likes
2 Replies
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
By default when a debugger is connected the watchdogs are disabled. To enable it on the Trace32 by using the following command:

SYStem.Option WDTSUS [ON | OFF]

0 Likes
User15507
Level 1
Level 1
First reply posted First question asked
thanks man.
0 Likes