The watchdog feature will not enable (as determined by viewing the WDDIS bit in register WDCR using the emulator on a F28377D controlCARD).
Here is the code:
894 temp = temp; // dummy for breakpoint 895 EALLOW; 896 WdRegs.SCSR.bit.WDENINT = 1; // cause a micro reset on wd timeout 897 WdRegs.WDCR.all = 0x002F; // enable watchdog and set clk divide by 64 898 WdRegs.SCSR.bit.WDOVERRIDE = 1; // disable bit change of WDDIS 899 EDIS; 900 temp = temp; // dummy for breakpoint
The program was run to the first breakpoint on line 894. The debug register window was examined and the WDENINT bit was 0, the WDPS field was 0, and the WDDIS bit was 1.
The program was then allowed to continue to the next breakpoint on line 900.
Again the debug register window was examined, and as required the WDENINT had changed to 1 and the WDPS had changed to 111, however, the WDDIS bit was still set to 1.
Useful suggestions welcome.