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 timer for Concerto C28x

Hi, I'm working on Concerto C28x DSP and would like to implement watchdog on C28x to reset the system. There are two WDT on M3 core and NMI watchdog on C28x. I looked into TRM and previous threads but not clear about C28x NMI, how exactly to use it. I did't find any example code for the same. If anyone aware of it please suggest me how to start with it. 

Thanks!

  • Hi Nega,

    You are right. On this device we have two WD on M3 side but on C28x we only have NMI WD. NMI WD get triggered whenever there is any fault in system (refer CNMIFLG register in TRM to find all source) and if NMI is not serviced then it'll fire reset. This only resets the C28x subsystem and not full device. Full device/system happens via M3 WD or M3 NMIWD. You could try following steps to achieve this -

    • Force NMI on C28x by setting a flag in CNMIFLGFRC register. This will generate NMI on C28x.
    • Inside NMI handler wait  for CNMIWDCNT to timeout (you could modify the CNMIWDPRD to minimize the wait) so that it resets the C28x.
    • Reset on C28x will generate NMI on M3
    • In M3 NMI handler again wait so that MNMIWDCNT times out and issue a reset. This will reset full device/system.

    Regards,

    Vivek Singh

  • Hi Vivek,

    Thanks for your reply. My application is on C28x. Will follow your steps and try to implement it. I have one more question related to c2000 family, do all c2000 MCU's have same NMI watchdog module?
  • Hi Nega,

    I have one more question related to c2000 family, do all c2000 MCU's have same NMI watchdog module?

    NMI watchdog concept is same on all the C2000 but number NMI sources will be different. This is more of a system level feature (not stand-alone IP) so I'll recommend to refer the device TRM for all NMI related features and register details.

    Regards,

    Vivek Singh

  • Thank you Vivek! I got it, will refer TRM.