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.

TMS320LF2407A: watchdog

Part Number: TMS320LF2407A

Dear TI Team:

I written the watchdog software function, when I stopped feeding the dog for software testing, I found that the DSP chip stopped working, But there is no reboot. Can you help me find out the reason for the problem?

And do you have any examples of watchdog programming?

Below is my program:

Reset Watchdog:
ldp    #0E0h
splk    #00A9h,WDCR        ;Overflow TIME=3.28ms 10(101)(001 3.28ms) enable watchdog,clear WDFLAG
KICK_DOG            ;Reset Watchdog
Test:
check_dog        ldp    #F>>7
        lacl    F
        sub        #2560
        bcnd    no_dog,gt
        KICK_DOG
no_dog     
Regards,
K.K
  • When you are trying this experiment, is the chip connected to the debugger (Code Composer)? If so, the debugger circuit has control over the reset circuitry of the device. In other words, the reset behavior will be a bit different when no JTAG is connected compared to when connected to the debugger.

    You can easily verify if the WD circuit is working. You don’t need any code in flash. Just erase the flash and power up the device (without the JTAG connector connected). You should see the -XRS pin pulsing, since the WD counter will keep overflowing periodically.