Turned on Watchdog, How to turn off

Discussion to talk about software related topics only.
Post Reply
seulater
Posts: 445
Joined: Fri Apr 25, 2008 5:26 am

Turned on Watchdog, How to turn off

Post by seulater »

I have a MOD5234 that boots into monitor mode now and then. while in the monitor mode i turned on the Watchdog. Being that i did not tickle the Watchdog in the software it of course resets. No problem there...

When i Press "A" while booting to get into monitor mode to turn it off, there is not enough time for me to go to the Setup to turn it off again before it reboots. How can i turn the monitor off now ?
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: Turned on Watchdog, How to turn off

Post by rnixon »

You've got to be fast, and enter the monitor "setup" before the wdog expires. Once in setup the wdog is disabled so you have time to type and disable it for the next boot.
seulater
Posts: 445
Joined: Fri Apr 25, 2008 5:26 am

Re: Turned on Watchdog, How to turn off

Post by seulater »

OK, i give it a shot again thanks. But i think that NB should change the Watchdog to disabled when in the monitor mode. There is no point to have it on when in Monitor mode anyway.
stevep
Posts: 16
Joined: Fri Apr 25, 2008 6:34 am

Re: Turned on Watchdog, How to turn off

Post by stevep »

You should be able to disable it from code too, something like this:

Code: Select all

ConfigRecord new_rec;
memcpy(&new_rec, &gConfigRec, sizeof(new_rec));
if (new_rec.m_Flags == 1) // if watchdog enabled
{
	new_rec.m_Flags = 0; // WD disable
	UpdateConfigRecord(&new_rec);
	ForceReboot();
}
seulater
Posts: 445
Joined: Fri Apr 25, 2008 5:26 am

Re: Turned on Watchdog, How to turn off

Post by seulater »

i cant upload any code, its keeps resetting.
User avatar
lgitlitz
Posts: 331
Joined: Wed Apr 23, 2008 11:43 am
Location: San Diego, CA
Contact:

Re: Turned on Watchdog, How to turn off

Post by lgitlitz »

seulater wrote:OK, i give it a shot again thanks. But i think that NB should change the Watchdog to disabled when in the monitor mode. There is no point to have it on when in Monitor mode anyway.
We actually thought about this and decided that it should not be disabled until you enter the setup menu. The problem is that many customers have active incoming serial data on the boot port of a module. If a watchdog reset is triggered then it must be highly unlikely that some random incoming serial data keeps the module off-line. "Asetup\r\n" is a more unlikely sequence of random chars then just 'A'. The watchdog is serviced during the boot countdown, so you should have 3 seconds from entering the monitor until when you type "setup". If you are still having issues getting into the setup menu then make a txt file containing the chars needed and send it using "F5" in MTTTY.
seulater
Posts: 445
Joined: Fri Apr 25, 2008 5:26 am

Re: Turned on Watchdog, How to turn off

Post by seulater »

ok thanks
Post Reply