Forums - QCA4020 watchdog

6 posts / 0 new
Last post
QCA4020 watchdog
Yang001
Join Date: 15 Aug 16
Posts: 4
Posted: Fri, 2018-10-26 09:19

Hi

How is watchdog of QCA4020 working on ? I run the sample function of Platform->wdrst from QCLI_Demo and the system is halt ! 

Is there any document for to get more details about watchdog usage on QCA4020 board? 

Can you please help me on this? 

Regards,

  • Up0
  • Down0
Re: QCA4020 watchdog Best Answer
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Tue, 2018-10-30 22:43

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

  • Up0
  • Down0
Yang001
Join Date: 15 Aug 16
Posts: 4
Posted: Wed, 2018-10-31 08:53

Hi Jayden,

Thank you very much for your help!

Regards.

 

 

  • Up0
  • Down0
lap.dang
Join Date: 24 Oct 18
Posts: 14
Posted: Thu, 2020-04-23 23:00

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

  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Fri, 2020-04-24 14:34

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

  • Up0
  • Down0
lap.dang
Join Date: 24 Oct 18
Posts: 14
Posted: Sun, 2020-04-26 19:57

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

  • Up0
  • Down0
or Register

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.