This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Watchdog reset happening in suspend mode

Part Number: TMS570LC4357

Hi,

I have setup the watchdog for TMS570LC4357 microcontroller. It works fine when free running. But as soon as I pause the execution, I get a watchdog reset and the control moves to the beginning of the code.

Below is the code used to configure the watchdog:

EALLOW;
WdRegs.WDCR.all = 0x002F;
EDIS;

Value of DWDPRLD is default set to 0xFFF.

Could you please help me find a way to stop this reset in debug mode?

Thank you.

  • Sorry, the code used to configure the watchdog is:

    RTI->RTIDWDCTRL = 0xA98559DA;

  • Hi Gobind,

    In TMS570LC4357 device the debug acknowledge signal (DBGACK) is not sent to the RTI/WD module directly. It first goes through a CTI (Cross Trigger Interface) module. By default the CTI is disabled. This means the RTI/WD modules never saw the assertion of the DBGACK signal. What you need is to first enable the CTI and also disable 'continue on suspend' in the RTI module. To enable the CTI, please execute the script in that CCS menu.

    Select "Setup_All_CTI" option in the CCS script before executing your code. 

    BTW, COS (Continue on suspend) bit of RTIGCTRL register should also be cleared. 

  • Hi QJ Wang,

    This solves the problem. Thank you very much.

    I have another strange problem with 4357, I will probably start a new thread for that.

    Thank you.