How to enable H/W reset when watch dog timer expired

Hello,

About BF70x

I would like to know procedure to enable H/W reset when watch dog timer expired.

I suppose watch dog timer register just only enable to write WDOG_CTL with 0x00000xx0 (xx is any value except 0xAD).

But I suppose also set RCU registers but cannot figure out.

If you have any sample code to enable watch dog timer, I would like to appreciate it.

Thank you for your help as always.

Best regards,

Sofy

  • 0
    •  Analog Employees 
    on Oct 17, 2016 12:55 AM

    Hi Sofy,

    Please find the attached working example code that illustrates how to configure the interrupt coming from Watchdog as “FAULT” in the SEC and that resets the processor.  This code can be directly run on the ADSP-BF706 EZ-Kit MINI.

    In order to demonstrate this scenario, the LED0 in the EZ-kit MINI is turned ON in the application code and watchdog timer configured to issue a reset via the SEC Fault Interface (SFI). Watchdog count never reloaded and hence it expires according to the count value given and that issues system reset upon expiry through Fault Management Unit (FMU). When you boot this application you would see that LED0 turns ON for a while and it goes of because of watchdog expiration that reset the processor. After processor reset it boots again and this loop continues.

    Thanks,
    Jithul

  • 0
    •  Analog Employees 
    on Oct 18, 2016 12:34 AM

    Hi Sofy,

    I'm glad the information provided was of help.

    Best Regards,

    Jithul

  • 0
    •  Analog Employees 
    on Oct 18, 2016 6:25 AM

    Hello, Jithul

    Thank you very much for your prompt response!

    Your attached file is very useful!

    Best regards,

    Sofy

  • 0
    •  Analog Employees 
    on Nov 18, 2016 4:56 AM

    Hi Sofy,

    Sorry that I have attached a wrong project file above (removed now for not to make confusion). Here you can find the working code tested with BF706 Mini. The above comments are still valid for the project.

    Watchdog timer is configured to issue a reset via the SEC Fault Interface. Upon expedition of WDOG the SEC fault get triggered and resets the processor.

    Best Regards,
    Jithul

    WDG_706.zip
  • 0
    •  Analog Employees 
    on Nov 18, 2016 2:14 PM

    Hello, Jithul-san,

    I would like to confirm about invoking reset by watchdog timer expiration.

    Are both WDT expired and FAULT in SEC required to invoke reset?

    I've trying to test your sample with EZmini but there seems no reset occurred. (with SPI Flash Memory Boot)

    So I suppose both WDT expired and FAULT in SEC are necessary to invoke reset, isn't it?

    If the answer yes, I appreciate if you let me know how to make FAULT on purpose.

    Thank you for your help as always.

    Best regards,

    Sofy