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.

Watchdog doesn't reset

I set up my watchdog per the code below and the watchdog shuts down ok when I don't service it but it doesn't  reset the processor like I expected, it just shuts down.  Any idea what I'm doing wrong?

Thanks in advance,

Rick

 

// Enable watchdog

ServiceDog();

EALLOW;

SysCtrlRegs.SCSR = 0x0000;

SysCtrlRegs.WDCNTR = 0xFF;

SysCtrlRegs.WDCR = 0x002F;

EDIS;

ServiceDog();

  • Hi Richard,

    Are your boot options set up correct - i.E. does your device boot without a debugging pod connected?

    Best regards,

    Andreas

  • I honestly don't know.  I've only ever run it in debug mode.  I'm still trying to learn how to program to flash.   Now that you ask though, my guess is no.  I'll look into that next.

  • I looked into this but I'm still confused.  The documentation (SCUs and SCAs) give a lot of information about what is necessary and the example code performs most of the required operations.  However, I can't tell just what I'm missing.

    Do I need to pull up GPIO18, GPIO29, and GPIO34 or is this handled automatically (as long as I'm not pulling them down?  What else is necessary to get the 2801/2808 to boot from flash that isn't handled by the supplied .cmd files?

    Thanks in advance,

    Rick