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.

TMS320C6748: Detect Watchdog reset

Part Number: TMS320C6748

The PLL0_RSTYPE register detects if the last  reset was caused by a Software reset or a Power on reset, is there a way to detect a Watchdog reset?

Michael 

  • Hi Michael,

    Take a look at Section 29.1.6.3 Watchdog Timer Mode Operation through section 29.1.7.2 Hardware Reset Considerations, also the PLLC chapter. There is no such register as RSTYPE that logs information about watchdog reset.

    Best Regards,
    Yordan
  • Since after a reset all values on the Watchdog registers are set to default, there is no way to differentiate between a normal Power on (not caused by Watchdog event) and a Watchdog occurrence?
  • Hi,

    You could create an app that polls the watchdog registers (See 29.1.6.3 Watchdog Timer Mode Operation from the TRM) and signal when a watchdog reset occurs.

    Best Regards,
    Yordan
  • Thanks for your response Yordan.

    To clarify my problem:

    When powering up, I must be able to detect the causes of the power up:

    - normal power up (power was turned off and then on ), can be detected by PLL0_RSTYPE

    - power up caused by Software reset , can be detected by PLL0_RSTYPE

    - power up caused by watchdog, since all watchdog registers are reset when power up,  is there a way to record when this happens? Is there a register that can be written when a watchdog occurs and will "survive" a power up?

  • Hi,

    - power up caused by watchdog, since all watchdog registers are reset when power up,  is there a way to record when this happens? Is there a register that can be written when a watchdog occurs and will "survive" a power up?

    Check Section 6.4 Reset of the datasheet. If you are performing a warm reset, then there are parts of the processor that don't reset. Other than that the r/w registers are reset to their default values.


    Best Regards,
    Yordan