U-boot Deployment
2. Set and show date and time:
The standard U-boot command "date" can be used to set and show the date for
M41ST85W. For example, we can set the time to 2010-05-25 11:11:50 by the following
command:
=> date 052511112010.50
Date: 2010-05-25 (Tuesday)
=> date
Date: 2010-05-25 (Tuesday)
=>
3. Enable Watchdog
We can Enable the watchdog by the command: "wdg enable"; For example:
=> wdg enable 20
Watchdog Enable at 32 second!
The above command means that once we enable the watchdog and don't reset the
watchdog or disable the watchdog in 32 seconds, the system will reboot
automatically. The time of the watchdog can be set from 1 -124 seconds.
4. Reset Watchdog
There are two ways to reset the watchdog:
A transition (high-to-low or low-to-high) can be applied to the Watchdog Input pin
(WDI) which connects with the GPIO10.
The processor can perform a WRITE of the Watchdog Register. The time-out
period then starts over.
Here we use the first way to reset watchdog. The command: "wdg reset" can be
used to reset the watchdog:
=> wdg enable 20
=> wdg reset
=> wdg reset
5. Disable Watchdog
We can disable the watchdog by the command: "wdg disable":
=> wdg enable 20
=> wdg disable
60
Time: 11:11:50
Time: 11:11:51
COMX-P2020 BSP User Guide (6806800L84C)
U-boot Deployment
Need help?
Do you have a question about the COMX-P2020 BSP and is the answer not in the manual?