Forums - QCA4020 WatchDog Timer.

20 posts / 0 new
Last post
QCA4020 WatchDog Timer.
vaibhav.t
Join Date: 3 Aug 20
Posts: 14
Posted: Wed, 2020-10-14 07:26

Hello Team.

I want to use watch dog timer in my project. Following is my DevCfg_master_devcfg_out_cdb.xml  configuration for watchdog.

</driver>
<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>
    <!-- Grace timer value in sclk, This timer will declare a stalled initialization,
if intialization does not complete before it times out. -->
    <props name="dog_hal_grace_timer_timeout" type="0x00000002">
      160000 <!-- s*32000, 5s -->
    </props>

 

Still result is negative.

Things I want to know.

1) How to Initialize and start WatchDog for QCA4020.

2) How to Feed WatchDog Timer.

Any example code would be helpful.

Thank you. 

  • Up0
  • Down0
ss.pandiri
Join Date: 29 May 18
Posts: 58
Posted: Tue, 2020-12-15 02:03

hi,

As per your configuration, watchdog is enabled. The property "dog_hal_grace_timer_timeout" is used to configure watchdog timer.

The QCLI demo demonstrates some of the watchdog functionality. You can refer to code in this path:

QCA4020_sdk/target/quartz/demo/QCLI_demo/src/platform/platform_demo.c

thanks

  • Up0
  • Down0
drglennwolfe
Join Date: 23 Sep 19
Posts: 9
Posted: Tue, 2022-02-22 08:04

I also cannot get the WDT to reset the system.  I set the "Dog_Cfg" parameter to zero in the xml file.  It simply doesn't work at all.  Is there an new information on this?  Has anyone else got it to work? 

Thanks,

Dr. Wolfe

  • Up0
  • Down0
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Wed, 2022-02-23 20:41
  1. Open DevCfg_master_devcfg_out_cdb.xml file and enable watchdog timer as below

<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
 

   2.   Set the watchdog grace timer as below

<!-- Grace timer value in sclk, This timer will declare a stalled initialization,

        if intialization does not complete before it times out. -->

    <props name="dog_hal_grace_timer_timeout" type="0x00000002">   256000 <!-- s*32000, 8s -->

The timer is set for 8 secs (8 * 3200). Change the value to set timer.
 

   3.  WDT will run only if ramdump is disable

</props>

    <props id="7" id_name="PLATFORM RAMDUMP ENABLED" oem_configurable="true" helptext="Enable or Disable Ramdump. 1--Enabled, 0--Disabled" type="0x00000002">    0

  • Up0
  • Down0
aisahoga
Join Date: 25 May 22
Posts: 1
Posted: Wed, 2022-05-25 09:43

Thanks for this thread..  mobdro app

 
  • Up0
  • Down0
drglennwolfe
Join Date: 23 Sep 19
Posts: 9
Posted: Wed, 2022-07-06 09:18

I would like to add that the "main thread" must be allowed to run for correct WDT functionality. 

void app_start(qbool_t cold_boot) {
  bdg_init(cold_boot); // never returns
  return;
}
void bdg_init(uint32_t _cold_boot) {
  qapi_Status_t status = 0;
  qurt_thread_t thread_handle;
  qurt_thread_attr_t thread_attr;
  qurt_thread_attr_init(&thread_attr);
  qurt_thread_attr_set_name(&thread_attr, "bdg_thread");
  qurt_thread_attr_set_priority(&thread_attr, BDG_THREAD_PRIORITY);
  qurt_thread_attr_set_stack_size(&thread_attr, BDG_THREAD_STACK_SIZE);
  qurt_thread_create(&thread_handle, &thread_attr, thread, NULL); // launch main application thread
  while(1) { sleep_ms(1*60*1000); } // This thread must live for WDT to function properly
}


 

  • Up0
  • Down0
ervinjelvos9
Join Date: 17 Jun 22
Posts: 2
Posted: Fri, 2022-09-09 14:54

I want to use watch dog timer in my project. Following is my DevCfg_master_devcfg_out_cdb.xml  configuration for watchdog.

</driver>
<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>
    <!-- Grace timer value in sclk, This timer will declare a stalled initialization,
if intialization does not complete before it times out. -->
    <props name="dog_hal_grace_timer_timeout" type="0x00000002">
      160000 <!-- s*32000, 5s -->
    </props>

 

Still result is negative.

Things I want to know.

1) How to Initialize and start WatchDog for QCA4020.

2) How to Feed WatchDog Timer.

Any example code would be helpful.

As per your configuration, watchdog is enabled. The property "dog_hal_grace_timer_timeout" is used to configure watchdog timer.

The QCLI demo demonstrates some of the watchdog functionality. You can refer to code in this path:

QCA4020_sdk/target/quartz/demo/QCLI_demo/src/platform/platform_demo.c

  • Up0
  • Down0
jasonroy1565
Join Date: 7 Jan 23
Posts: 6
Posted: Tue, 2023-02-21 02:24
Here's an overview of how to initialize and start the Watchdog Timer, as well as how to feed the timer:
 
Initialization and starting of Watchdog Timer:
To initialize and start the Watchdog Timer, you can use the following code:
// Include the watchdog header file
#include "qapi_wdt.h"
 
// Define the watchdog timeout value in seconds
#define WDT_TIMEOUT_SEC 10
 
// Initialize the watchdog
qapi_WDT_Init(WDT_TIMEOUT_SEC);
 
// Start the watchdog
qapi_WDT_Enable();
In the above code, qapi_WDT_Init() function initializes the watchdog with a timeout of WDT_TIMEOUT_SEC seconds, and qapi_WDT_Enable() function starts the watchdog.
 
Feeding Watchdog Timer:
To feed the Watchdog Timer, you can use the following code:
// Include the watchdog header file
#include "qapi_wdt.h"
 
// Feed the watchdog
qapi_WDT_Pet();
In the above code, qapi_WDT_Pet() function feeds the watchdog.
 
I hope this helps you in configuring the Watchdog Timer for your QCA4020 device
  • Up0
  • Down0
networthpersonality
Join Date: 12 Jun 23
Posts: 1
Posted: Mon, 2023-06-12 02:59

The QCA4020 Watchdog Timer is a component or feature of the QCA4020 System on a Chip (SoC) developed by Qualcomm. The Watchdog Timer serves as a hardware-based mechanism designed to enhance the reliability and robustness of embedded systems to surah-yaseen-pdf Embedded systems, such as those utilizing the QCA4020 SoC, often operate in critical or sensitive environments where system failures or crashes can have significant consequences. The Watchdog Timer acts as a fail-safe mechanism to ensure the system's stability and prevent it from getting stuck in an unrecoverable state spray paint. The primary function of the Watchdog Timer is to monito surah-yaseen-pdf

  • Up0
  • Down0
hparter55
Join Date: 19 Jun 23
Posts: 1
Posted: Mon, 2023-06-19 09:52

In the realm of embedded systems and microcontrollers, reliability and safety are of utmost importance. The QCA4020 Watchdog Timer is a vital component that helps ensure the stability and resilience of systems built on Qualcomm's QCA4020 platform. In this article, we will explore the functionality and significance of the QCA4020 Watchdog Timer in maintaining to the  print mtg proxies  system integrity and preventing failures. Understanding the QCA4020 Watchdog Timer: The QCA4020 Watchdog Timer is a hardware-based feature integrated into the QCA4020 system-on-a-chip (SoC). Its purpose is to monitor the operation of the device or system it is embedded in and take corrective action in case of failures or malfunctions. The Watchdog Timer operates independently of the main system processor, acting as a watchdog to ensure that the system remains functional and responsive to the software uses to click for more

  • Up0
  • Down0
blooketjoinguide
Join Date: 18 Jul 23
Posts: 2
Posted: Mon, 2023-07-31 00:53
Blooket Join Guide will provide you with all the information about Blooket like how to join Blooket, what the Blooket Code is, and how to use it, etc.
 
  • Up0
  • Down0
garagedoorhighland
Join Date: 11 Jul 23
Posts: 14
Posted: Thu, 2023-08-31 05:26

The QCA4020 is a System-on-Chip (SoC) developed by Qualcomm, designed primarily for Internet of Things (IoT) applications. It like official-jjsploit.com incorporates various features to enable efficient and reliable IoT device development, and one of those features is the Watchdog Timer (WDT)

  • Up0
  • Down0
garagedoorhighland
Join Date: 11 Jul 23
Posts: 14
Posted: Tue, 2023-09-05 04:58

The QCA4020 is a wireless chipset developed by Qualcomm Technologies, Inc. It's designed for various Internet of Things (IoT) applications, including smart home devices, wearables, and industrial IoT solutions. The WatchDog Timer (WDT) is an important feature of the QCA4020 chipset, and it serves a critical role in ensuring the reliability and stability of IoT devices visit to the Nekopoi Apk

  • Up0
  • Down0
dostiyari0786
Join Date: 24 Sep 23
Posts: 2
Posted: Sun, 2023-09-24 08:15

Quote:
Hello Team.

 
I want to use watch dog timer in my project. Following is my DevCfg_master_devcfg_out_cdb.xml  configuration for watchdog.
 
</driver>
<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>
    <!-- Grace timer value in sclk, This timer will declare a stalled initialization,
if intialization does not complete before it times out. -->
    <props name="dog_hal_grace_timer_timeout" type="0x00000002">
      160000 <!-- s*32000, 5s -->
    </props>
 
 
Still result is negative.
 
Things I want to know.
 
1) How to Initialize and start WatchDog for QCA4020.
 
2) How to Feed WatchDog Timer for oxycodone .
 
Any example code would be helpful.
 

Thank you. 

In the realm of embedded systems and microcontrollers, reliability and safety are of utmost importance. The QCA4020 Watchdog Timer is a vital component that helps ensure the stability and resilience of systems built on Qualcomm's QCA4020 platform.

  • Up0
  • Down0
alizazenifer
Join Date: 30 Sep 23
Posts: 2
Posted: Sat, 2023-09-30 23:24

Feeding a watchdog timer involves resetting or "feeding" it within a specified time interval to prevent it from timing out and triggering a system reset. The exact method for feeding a watchdog timer can vary depending on the microcontroller or platform you are using.

  • Up0
  • Down0
bosspak512
Join Date: 7 Oct 23
Posts: 2
Posted: Sat, 2023-10-07 13:12

is it easy to add this without any third party involment or we have to integrate with others cloud flare.

  • Up0
  • Down0
garagedoorhighland
Join Date: 11 Jul 23
Posts: 14
Posted: Mon, 2023-11-06 09:13

The QCA4020 is a System-on-Chip (SoC) developed by Qualcomm for IoT (Internet of Things) and wearable applications. It features a wide range of hardware peripherals and capabilities, including a Watchdog Timer (WDT), which is designed to enhance system reliability and robustness. The WDT is a crucial component of many embedded systems, including the QCA4020, and it serves to prevent system failures due to software or hardware issues Rachel Cruze Net Worth

  • Up0
  • Down0
garagedoorhighland
Join Date: 11 Jul 23
Posts: 14
Posted: Thu, 2023-11-09 04:12

The QCA4020 WatchDog Timer (WDT) is a crucial component in embedded systems, designed to enhance the reliability and robustness of devices. In the realm of microcontrollers and embedded systems, where the QCA4020 finds its home, ensuring the continuous and stable operation of the system is of paramount importance to the Startfleet

  • Up0
  • Down0
asifkingecommerce
Join Date: 20 Feb 24
Posts: 1
Posted: Tue, 2024-02-20 03:08

Qualcomm Technologies, Inc. created the QCA4020 wireless chipset. It's intended for a variety of Internet of Things (IoT) applications, including as smart home gadgets, wearables, and industrial IoT systems. The WatchDog Timer (WDT) is a crucial component of the QCA4020 chipset, and it performs a critical function in guaranteeing the dependability and stability of IoT devices that visit the smartplay

  • Up0
  • Down0
xnxubdvpn
Join Date: 24 Feb 24
Posts: 1
Posted: Sat, 2024-02-24 03:45
Hello,
 
According to your setup, the watchdog is active, and the parameter "dog_hal_grace_timer_timeout" is employed for watchdog timer configuration.
 
Explore the watchdog features through the QCLI demo, where you can find relevant code at this location:
 
QCA4020_sdk/target/quartz/demo/QCLI_demo/src/platform/platform_demo.c
 
Appreciate it.
  • 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.