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.

TMS570LS0432: Watch Dog implementation

Part Number: TMS570LS0432


I need to implement watch dog timer in my code. I initialized for 100ms as:

rtiREG1->WWDSIZECTRL = 0x00000005;
rtiREG1->DWDPRLD = 0x3D1;
rtiREG1->DWDCTRL = 0xA98559DA;

In the main code, i'm setting WDKEY at the starting of the function as:

rtiREG1->WDKEY = 0xE51A;

& setting it again as

rtiREG1->WDKEY = 0xA35C; when a corresponding function is finished it's task.

When i ran the code, i NERROR LED is flashing. I removed the WD function & flashed the code, controller is working fine.

Can anybody help me on whether the sequence for enable & servicing the watch dog is correct.