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.

Tm4c1294ncpdt: Watchdog power on reset Tm4c1294

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL, ENERGIA

Hi

Tm4c1294 got hang or hibernate after a 4 to 5 hrs continues​ running. But already watchdog timer implemented in source.if switch off and switch on board working fine. So please provide sample code for watch dog POWER ON RESET or give some suggestions.

Reply as soon as possible board on customer place.

Regards

Duraisamy p

  • Hi Duraisamy,
    There is a watchdog example in TivaWare package under <TivaWare_installation>/examples/boards/ek-tm4c1294xl/watchdog. The example will generate system reset if the watchdog interrupt is not cleared.
  • Hi Duraisamy,
    Did a console was connected through ICDI on the module and suddenly the screen stopped refreshing the debug messages of the firmware, or its hang verified by other means?
    John
  • Hi ,
    Yes connected with ICDI , module not responding debug message and Ethernet connection gone down.
    Already watched timer implemented.


    Regards
    Duraisamy
  • If your watchdog is REALLY implemented, than I suspect your main clock has stopped - which suggests a more hardware-related problem.

    Other possibility is that there is a hidden stuck breakpoint somewhere, and only a rare situation makes the code arrive there, holding execution on purpose.

    Can you create some sort of square signal output from the main clock (ie a PWM pin), and monitor it when the MCU freezes?

  • Hi,

    can you help how to implement POR using program
  • Do you mean you want to reset the board from within the program?

    Simply execute
    SysCtlReset();

    You will need to #include driverlib/sysctl.h in your header file.

    Also, it might be useful for your debugging to learn reset causes, using SysCtlResetCauseGet();
  • Hi Duraisamy,

    It is indeed the case that many times, about a couple of years ago when started to work with EK-TM4C1294XL board, I had the same problem. Most of the times I thought that board had hanged. But this wasn't the case. If you use long USB cable and/or you frequently plug-in & out USB sticks -while ICDI is connected- then communication with USB/ICDI/Serial may be lost although board is alive and fully functional. If you don't get debug messages at the console screen and your board does not Watchdog-ing, although you may have correctly implement Watchdog,  then the problem is only with the communications with the board. Use short USB cable and try not to plug-unplug USB flash memory sticks, while ICDI connected, on the same USB bank of your PC. Problem gets a bit bitter if you use ENERGIA IDE in a version prior to 17th. 

    John