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.
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…
Thank you very much for your follow up.
I've confirmed your project correctly work!
The code example you provided here has been very helpful to me as well.
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.
I'm glad the information provided was of help.
Thank you very much for your prompt response!
Your attached file is very useful!
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.
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.