Watchdog is generally a hardware module. In embedded operating systems, a common application scenario is that the system runs for a long time without anyone watching. When the system freezes, the watchdog will automatically restart the system for you.
The implementation principle of watchdog:
The watchdog hardware has a record timeout function, and then requires the user to perform certain operations on it at a certain time interval (this time can be configured according to your needs), such as writing some fixed values in it, commonly known as "feeding the dog", then I find that the timeout has expired, that is, you have not fed me after the set time, then I will think that your system is frozen and there is a problem, and I will help you reset the system. To put it simply, it is like getting a watchdog, you have to feed it regularly, if you do not feed it within the timeout, then the dog will think that you, its owner, your system, is frozen, and it will help you reset the system.
Why turn off the watchdog when the system is initialized?
After understanding the principle of watchdog, this problem is easy to understand. If watchdog is not disabled, then you have to write a separate program to regularly "feed the dog", which is so troublesome and boring. After all, we are only using uboot to initialize the necessary hardware resources and system resources here, and we don't need this watchdog mechanism at all. If you need to use it, it is because your Linux kernel is running, which is something your system cares about, and has nothing to do with my uboot, so you must turn off watchdog (its reset function) here.
Previous article:LPC2378-Jlink can download programs, but various strange problems occur during debugging
Next article:Understanding of STM32 interrupt function SysTick_Handler
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Analysis of 2020 E-sports Contest C: The realization process of the 99-point ramp car
- MSP430F4152 development board schematic diagram
- ON Semiconductor - FOD83xx/T series is coming! Answer the questions to win prizes and apply for free samples
- #Power supply roadblock#Experience sharing summary
- Programming example of msp430 keypress
- Are there any recommended books for beginners in circuit development?
- MSP430 G2553 Launchpad implements capacitance measurement
- [GD32L233C-START Review] 12. Button - External Interrupt
- [Qinheng RISC-V core CH582] Environment configuration and lighting test
- Design and implementation of image cropping circuit based on FPGA