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.

CLA code do not work properly after cold boot, but it works fine after a watch dog triggered restart.

I have a CLA code to compute the motion profile. When I turn on the power first time, it can't work, just give the wrong result. But it works fine after I use the watchdog to restart the chip. The restart code is

EALLOW;
SysCtrlRegs.WDCR = 0x0000;
EDIS;

I don't know the reason.

Any help would be greatly appreciated.

Thank you in advance!

 Dodo