Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE
Hi, I tried to write a code block that whenever software hits that code block, program is going to be soft reset and program counter will start from top of main function.
Here is the code block :
EALLOW; SysCtrlRegs.SCSR = BIT1; EDIS; EALLOW; SysCtrlRegs.WDCR = 0x0020; //Enables Watchdog and triggers software watchdog due to the [3:5] bit are different than 1-0-1 sequence. EDIS; /*The code below is also triggers softreset.*/ EALLOW; SysCtrlRegs.WDKEY = 0x0011; SysCtrlRegs.WDKEY = 0x0000; EDIS;
In debug mode, program is going on performing afterwards and never triggers the reset.