Do you have a question? Post it now! No Registration Necessary
May 2, 2007, 7:57 pm

Has anyone written a driver for the watchdog timer in the iMX-21 ARM
processor?
In the driver init function I am setting the timer to 4 (should giver
a 2 second timeout) as follows:
WCR = (WCR_WDA | WCR_SRS | WCR_WT(4));
This verifies as 0x430 when I read it back.
In the driver open funtion, I am setting the watchdog enable bit with
the following:
WCR |= WCR_WDE; // again this verifies as
0x434 on a read of WCR
Now, without servicing the watchdog, when reading WCR every second, it
always reads 0x434, never counting down, but the watchdog times out at
128 seconds. This happens no matter what value I place in WCR_WT. Am
I missing something in initialzation?
Thanks for any help.
processor?
In the driver init function I am setting the timer to 4 (should giver
a 2 second timeout) as follows:
WCR = (WCR_WDA | WCR_SRS | WCR_WT(4));
This verifies as 0x430 when I read it back.
In the driver open funtion, I am setting the watchdog enable bit with
the following:
WCR |= WCR_WDE; // again this verifies as
0x434 on a read of WCR
Now, without servicing the watchdog, when reading WCR every second, it
always reads 0x434, never counting down, but the watchdog times out at
128 seconds. This happens no matter what value I place in WCR_WT. Am
I missing something in initialzation?
Thanks for any help.
Site Timeline
- » Actual unused memory
- — Next thread in » Embedded Linux
-
- » how to pre-grow file to certain size ?
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » VHDL i wyĆwietlacze 7-seg.
- — The site's Newest Thread. Posted in » Electronics (Polish)
-
- » homemade or low cost circuit board/ battery box shield?
- — The site's Last Updated Thread. Posted in » Electronics Repair
-