Help!

Watchdog timer driver for iMX-21?


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Embeded RSS
Next:  how to pre-grow file to certain size ?  
Author Message
twgray
External


Since: May 02, 2007
Posts: 1



PostPosted: Wed May 02, 2007 12:57 pm    Post subject: Watchdog timer driver for iMX-21?
Archived from groups: comp>os>linux>embedded (more info?)

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.
Back to top
dpraghu



Joined: Oct 17, 2007
Posts: 1



PostPosted: Wed Oct 17, 2007 2:30 pm    Post subject: Waiting for few reply......

facing same problem

instead i used WSR
with 0x5555 followed by 0xaaaa
but its taking 128 sec instead of WT ...

Thanks a lot
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Embeded All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum