The role of arm watchdog

Publisher:WhisperingWishLatest update time:2018-11-29 Source: eefocusKeywords:arm  watchdog  role Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

        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.


Keywords:arm  watchdog  role Reference address:The role of arm watchdog

Previous article:LPC2378-Jlink can download programs, but various strange problems occur during debugging
Next article:Understanding of STM32 interrupt function SysTick_Handler

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号