Hello all, I am writing the dll for Watchdog timer. I need to read and write some value to WTCON reg. But I get 0x00 instead of 0x8021(default value), also I can't be able to write any value to this register. please guide me the correct way if I am missing something. Thanks in advance.
Watchdog timer
Hello Mustafa Ozcetin, I had attached my general code. Using that code I can read and write 32 bit values from/to registers.(here in this code i read and write gpio reg.) I read other reg also to check weather I am reading right values or not. I uses IOCTL calls to access reg. I dont know what are those registers which needs to be set for Watchdog. Thanks in Advance.
It's normal that the value of WTCON is 0x00 after the OS boots. 0x8021 means that the CPU will reset itself after 128 * WTDAT PCLK cycles. The WinCE kernel doesn't use the watchdog, so it is disabled after booting, that's why it's 0x00 i think.
Hello Ceilliedgh, Yes I got your point but Why can't I am unable to write anything to WTCON. Even after writing some value to WTCON and re-read that reg. I got 0x00. Why this is so??? Thanks. Sumeet Thakre.
Hello all, I am still stuck with the same problem. Can anyone know the solution to this issue? Any related help will be appreciated. Thanks in advance.
Hello all, I have decided to learn writing device drivers thoroughly . Please suggest me where to start? What should I do? Where do I get good tutorials? Thanks in Advance.