Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.
Hi Yang001,
The QCLI command "Platform->wdrst" is trigger watchdog reset for testing purpose.
When ramdump mode is enabled and watchdog reset happens, system will be stuck by default configuration.
Thanks
BR,
Jayden
Hi Jayden,
Thank you very much for your help!
Regards.
Hi,
I want to enable watchdog timer to QCA4020 restart when has crash.
Can you give the guideline enable watchdog in QCA4020?
Thank you.
Lap
Hi Lap,
Do you want to trigger watchdog reset when your application found a critical error?
Then, please use following macro. platform_demo.c file has the same code.
QAPI_FATAL_ERR(0, 0, 0);
If you want to enable/disable our watchdog implementation, please refer following xml file configuration:
"dog_hal_disable" 0: watchdog enabled
"dog_hal_disable" 1: watchdog disabled
@DevCfg_master_devcfg_out_cdb.xml
<driver name="Dog_Cfg">
<device id="0x02000019">
<!-- If this flag is set to 0x0, hw wdog and grace timer will be initialized -->
<!-- If this flag is set to 0x1, hw wdog and grace timer will NOT be initialized -->
<props name="dog_hal_disable" type="0x00000002">
0
</props>
Thanks
BR,
Jayden
Hi Jayden,
Thank you very much for your responding!
I checked my code and saw that: The config was already anabled watchdog timer.
However when I call macro: QAPI_FATAL_ERR(0, 0, 0); to test, the QCA4020 is stucked but it not reset via watchdog timer.
Can you give me any advice? Need setup some configuration?
Thank you,
Lap