Kernel version: 2.6.28
Software platform: Ubuntu 11.04
Kernel version: 2.6.39
Cross compiler: arm-linux-gcc 3.4.1
Original work, please indicate the source when reprinting
1. Load the watchdog driver
insmod wdt.ko
wdt.ko is the driver file name. If no parameters are added and the dog is not fed, the interrupt function will be executed when the counter reaches 0 (set the state of the LED, then feed the dog, and reset the value of WTCNT)
Optional parameters
module_param(tmr_margin, int, 0);
module_param(tmr_atboot, int, 0);
module_param(nowayout, int, 0);
module_param(soft_noboot, int, 0);
module_param(debug, int, 0);
When soft_noboot is set to 0, if the dog is not fed, the development board will reset insmod wdt.ko soft_noboot = 0
For details of the driver, see: http://blog.csdn.net/yming0221/article/details/6595265
In this way, the watchdog device file is automatically generated under /dev/
Just enter the content into the file to start the watchdog
echo 1>/dev/watchdog
In this way, you can see the LED light on the development board flashing regularly, indicating that the transplantation is successful.
To stop the watchdog, execute
echo V > /dev/watchdog
Previous article:Analysis of ARMLinux driver Watch Dog Timer (watchdog) driver
Next article:S3C2440 Driver - Watchdog Driver Analysis
- 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
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- See you in April丨The 2021 Munich Shanghai Electronics Show is about to start, and pre-registration is in full swing!
- Live Review: June 28th Datang NXP Semiconductors | Battery Management Chip Solution Design and Precautions
- Dear students, Qorvo 2021 campus recruitment is here, take action now.
- Video tutorial on developing RT-Thread with Bluexun AB32VG1
- Scanning interface for rotary flow meters
- I saw two interesting news this morning: What are the trade-offs in autonomous driving? Is there anything that cannot be changed in the CAN bus?
- Adafruit LED glasses running circuitpython
- Detect and harden against non-invasive tampering attacks
- COVID-19 and other challenges to LED design and coping strategies
- purchase