uboot – driver development – dw watchdog

Description The watchdog module used by the company’s SOC is Synopsys’ IP. Requirements Users sometimes do some development in uboot/kernel and add some new functions (OTA upgrade, etc.), which may cause problems such as uboot/kernel startup crash or even device freeze. It is necessary to enable watchdog during the uboot startup phase to monitor the […]

Based on STM32HAL library (independent watchdog)-brief description

Table of Contents Overview 1. Development environment 2. STM32CubeMx configuration 3. Encoding 4. Operation results 5. Summary Overview A mature and reliable project is inseparable from the “watchdog” option. Every program written by people will have bugs (or the chip peripherals are interfered by the outside world, causing the faulty program to get stuck or […]

Based on STM32HAL library (window watchdog)-brief description

Table of Contents Overview 1. Development environment 2. STM32CubeMx configuration 3. Encoding 4. Operation results 5. Summary Overview A mature and reliable project is inseparable from the “watchdog” option. Every program written by people will have bugs (or the chip peripherals are interfered by the outside world, causing the faulty program to get stuck or […]

Practical analysis of dump and strace commands causing watchdog problems caused by keystore deadlock

1. Problem description Recently, a system stuck problem occurred. It is speculated that a watchdog appears in system_server. Looking at the watchdog file, it is PackageManager stuck in the KeyStore.clearUid() interface: —– pid 1091 at 2023-10-26 09:40:10 —– Cmd line: system_server ABI: ‘arm64’ “PackageManager” sysTid=1352 #00 pc 000000000006e1c4 /system/lib64/libc.so (__ioctl + 4) #01 pc 00000000000290d0 […]

Redisson’s watchdog strategy – a mechanism to ensure the security and stability of Redis data

Foreword Custom redis distributed locks cannot be automatically renewed. For example, a lock is set to be released with a timeout of 1 minute. If the thread that obtains the lock does not complete execution within one minute, the lock will be obtained by other threads, which may cause This leads to serious online problems. […]

Independent watchdog and window watchdog of stm32f10 series

In a microcomputer system composed of a single-chip microcomputer, the work of the single-chip microcomputer is often interfered with by external electromagnetic fields, causing the program to run away and fall into an infinite loop. The normal operation of the program is interrupted, and the system controlled by the single-chip microcomputer cannot continue to work. […]

stm32—watchdog (independent watchdog IWDG, window watchdog WWDG)

Graphical overview: Independent watchdog: Code: #include “stm32f10x.h” // Device header #include “Delay.h” #include “OLED.h” #include “Key.h” /* Independent watchdog —By pressing the button and not letting go, it enters the while infinite loop, causing the program to block. When the timeout time of the independent watchdog is exceeded, the independent watchdog is reset. The normal […]

STM32–WDG watchdog

Article directory Introduction to WDG iWDG IWDG timeout calculation WWDG WWDG timeout and window value settings Independent watchdog project WWDG project Introduction to WDG WDG watchdog (Watchdog Timer) is a common hardware device. In the STM32F10 series, there are two kinds of watchdogs, namely independent watchdog and window watchdog, which can be used to monitor […]

DPC_WATCHDOG_VIOLATION blue screen problem analysis (1)

Article directory DPC_WATCHDOG_VIOLATION blue screen problem analysis 1. Principle 1.1 DPC WATCHDOG 1.2 DPC timeout acquisition 2. Example 2.1 Analysis 3. Summary DPC_WATCHDOG_VIOLATION blue screen problem analysis Under Windows 10, the DPC_WATCHDOG_VIOLATION blue screen error was introduced. The reason for the introduction of this error is to prevent the kernel code from being executed in […]

[Android source code] Android Watchdog mechanism

In the Android system, a software-level Watchdog is also designed to protect some important system services, such as AMS, WMS, PMS, etc. Since the above core services run in the system_server process, when the above services are abnormal, usually The system_server process will be killed, that is, the Android system will be restarted. The WatchDog […]