Hello,
I have problems with debugging watchdog on TMS570LC4357 MCU. It seems that COS (continue on suspend) bit is ignored.
This is what I do:
/* clear violations, assign window size, preload and reaction */
1. dwwdInit(rtiREG1, Generate_Reset, dwdPreload, Size_100_Percent);
/* clear continue on suspend bit */
2. rtiREG1->GCTRL &= ~((uint32_t)(1U << 15U));
/* assign 0xA98559DAU to DWD CTRL */
3. dwdCounterEnable(rtiREG1);
4. rtiREG1->WDKEY = 0x0000E51AU;
5. rtiREG1->WDKEY = 0x0000A35CU;
The problem is that lines 4. and 5. are not reachable using breakpoints or by stepping over line 3. (reset on target occurs).
I am using XDS200 debugger. Preload is set to 7ms (RTICLK is 75MHz and preload value is 63).
Is there someting I'm missing? Thanks for your help.