LPC Reset..

Started by bty639886 in LPC200015 years ago 2 replies

Is there any way to reset the processor from within the firmware? I am currently using the Watchdog feature, and I know if I...

Is there any way to reset the processor from within the firmware? I am currently using the Watchdog feature, and I know if I stop toggling the watchdog then my processor will time out and reset. However, I need to be able to do different things depending on the


Re: LPC2112 state after watchdog timeout?

Started by lpc2100_fan in LPC200012 years ago

--- In l...@yahoogroups.com, "sprinklemeelmo" wrote: > > Hi all - nice group, I joined about a month ago and have been lurking > ever...

--- In l...@yahoogroups.com, "sprinklemeelmo" wrote: > > Hi all - nice group, I joined about a month ago and have been lurking > ever since. > > The 2112 user manual is not clear (to me anyway) what exactly the > watchdog timer does. It seems to imply it simply changes the PC to 0 > - sort of simulating a reset. But does it reset the chip? So for > example will ti


Re: Watchdog in LPC2000

Started by mjames_doveridge in LPC200012 years ago 1 reply

--- In l...@yahoogroups.com, Robert Adsett wrote: > > At 01:01 PM 11/30/2007 +0000, derbaier wrote: > > Just as a warning, I am more of a...

--- In l...@yahoogroups.com, Robert Adsett wrote: > > At 01:01 PM 11/30/2007 +0000, derbaier wrote: > > Just as a warning, I am more of a hardware guy than a software guy, so > > I do not know if my following suggestion is really valid. I am more > > used to ensuring that the design of the watchdog is such that it can > > not be subverted by software. > > > > What if you us


Warm Boot

Started by vincbr900 in LPC20008 years ago 1 reply

Hello All, We are using LPC2478, and need to perfom a warm boot. We currently allow the watchdog to reboot, but I want to count how many times...

Hello All, We are using LPC2478, and need to perfom a warm boot. We currently allow the watchdog to reboot, but I want to count how many times we are bitten by the watchdog for code integrity purposes. What is the best way to warm boot - simply jump to the address contained in the reset vector? Thanks! ------------------------------------


WDT feed

Started by extra300_it in LPC200015 years ago 4 replies

Hello, One question about WDT feeding. The user manual is (once more) not exatcly clear about WDT refresh. It says that...

Hello, One question about WDT feeding. The user manual is (once more) not exatcly clear about WDT refresh. It says that after writing 0xAA to WDTFEED, 'the next operation in watchdog register space should be a write 0x55 to WDTFEED', otherwise the watchdog will


Diagnose watchdog through WDINT interrupt

Started by bob...@gudgel.org in LPC20006 years ago 4 replies

I am trying to diagnose watchdog timer resets on our LPC2366 parts. I think I can create a WDINT interrupt rather than to have it just reset the...

I am trying to diagnose watchdog timer resets on our LPC2366 parts. I think I can create a WDINT interrupt rather than to have it just reset the processor but does anyone here know if I can analyze where the code was when the timeout occurred ? Is this similar to diagnosing a data abort (which we do)... Is the last instruction located at address R14 -8 like it is with dabt's ? Or can someone...


WatchDog problem with LPC2129

Started by fcolao in LPC200012 years ago

Hi all, I'm a beginner working with LPC2129 (MCB2100 demo board), now facing a problem with WatchDog. In spite I try to feed it correctly...

Hi all, I'm a beginner working with LPC2129 (MCB2100 demo board), now facing a problem with WatchDog. In spite I try to feed it correctly (see code fragment below) it erratically restart the MCU in an impredictable way. Has anybody any idea what's the cause and how fix it. Many thanks. France void __inline ResetWatchDog() { unsigned long saved_Int; VICprotection = 0; saved...


LPC2138 Watchdog

Started by tah2k in LPC200015 years ago 2 replies

When enabled and timed out, the LPC2138 watchdog with generate an interrupt and may cause a reset depending on the state of ...

When enabled and timed out, the LPC2138 watchdog with generate an interrupt and may cause a reset depending on the state of WDMOD:WDRESET bit. I can see the interrupt being useful during debugging when the reset is disabled, but does it serve any purpose when the res


Re: Watchdog in LPC2000

Started by derbaier in LPC200012 years ago

--- In l...@yahoogroups.com, "Nishant Agrawal" wrote: > > Hi Nagaraju, > > I think the watchdog can be disabled by accessing the CPSR...

--- In l...@yahoogroups.com, "Nishant Agrawal" wrote: > > Hi Nagaraju, > > I think the watchdog can be disabled by accessing the CPSR & changing the > value of bit I in it. Use asm mode __asm{}, i.e. for KEIL & there are > special instructions for accessing CPSR MSR & ...look in the manual, or ARM > programming techniques. > > > > Bye > > With Regards > > Nish


How to stop watchdog messing up J-Link debugging

Started by Mike Harrison in LPC200013 years ago

I've found that having the watchdog enabled causes problems with debug mode, e.g. when you stop, then try restarting things generally don't...

I've found that having the watchdog enabled causes problems with debug mode, e.g. when you stop, then try restarting things generally don't happen, presumably as the WDT has kept running and caused a reset. Obviously I can disable it manually, but this runs the risk of forgetting to re-enable afterwards. It would be nice for this to happen automatically, i.e. some way the program code cou...


LPC2129 watchdog reset

Started by "t.herbi" in LPC200013 years ago 4 replies

Hello, im designing a project with the lpc2129 and need to reset the controller by software after i have received a command over uart. To...

Hello, im designing a project with the lpc2129 and need to reset the controller by software after i have received a command over uart. To realice this i set and start the watchdog and wait till the wd period is over. But after the reset occoured the uC doesn't come back to live. When i'm debugging this problem i see that the boot vector at adress 0x00 is overwritten with 0xFF. But that ...


WDTR flag

Started by remsilicon in LPC200010 years ago

Hi, I have a problem to read the WDTR flag in RSIS register. This flag is never set. When I force a watchdog restart with a simple...

Hi, I have a problem to read the WDTR flag in RSIS register. This flag is never set. When I force a watchdog restart with a simple "while(1)", the flag in RSIR is BODR, but I have previously disabled the Brown Out reset. Is there a way to catch properly a reset due to watchdog ? My MCU is a LPC2378 Regards, ------------------------------------


LPC2103 watchdog issues

Started by Langosta39 in LPC200013 years ago 3 replies

I'm having trouble hitting the watchdog on the 2103. It works just fine without IRQs, but after I enable interrupts I can no longer feed it. ...

I'm having trouble hitting the watchdog on the 2103. It works just fine without IRQs, but after I enable interrupts I can no longer feed it. I am disabling interrupts around the feed so it is atomic, and I know the feed works becasue I call the same code in the init function. I've tried using the standard __enable_interrupt __disable_interrupt functions in IAR and I've tried directly ...


External watchdog and flash loader

Started by lhaddix in LPC200014 years ago 18 replies

Hi, I'm working on an LPC2138 design and just moved into ESD testing. After some ESD hits there was no damage, but the processor would be...

Hi, I'm working on an LPC2138 design and just moved into ESD testing. After some ESD hits there was no damage, but the processor would be left not running. Implementing the internal watchdog didn't fix this. Apparently there are ways to nail a 2138 with ESD that must stop the processor clock and thus also prevent the internal watc


LPC2364 watchdog timer

Started by jcooklis in LPC200012 years ago

I just started using the watchdog timer in my application. It seems to work properly for a while, but then it starts to interrupt/reset...

I just started using the watchdog timer in my application. It seems to work properly for a while, but then it starts to interrupt/reset continuously even though the count hasn't expired. Interrupts are disabled during the 0xAA 0x55 feeding sequence. I noticed in the errata that any APB activity during the feeding sequence would cause this behavior. My application is using Ethernet, ...


LPC2148 - Differences between external reset and internal (watchdog) reset ?

Started by Davi...@epoint.ltd.uk in LPC200013 years ago 2 replies

Does anyone have any information or experience of the above ? I'm using Keil RealView on a custom LPC214x board. I've noticed that,...

Does anyone have any information or experience of the above ? I'm using Keil RealView on a custom LPC214x board. I've noticed that, following a watchdog reset, the USB doesn't always appear to come up properly, whereas following an external reset it consistently does. Using the (somewhat modified) sample USB HID project, about 50% of the time the USB interface comes up and Windows starts...


The Status of LPC2387 while downloading

Started by in LPC200011 years ago

Hi,everyone! I want to know what the status of the LPC2387 while I'm downloading the programe with the Jlink.Does The GPIO output become as...

Hi,everyone! I want to know what the status of the LPC2387 while I'm downloading the programe with the Jlink.Does The GPIO output become as low as 3.3v? I founded that the cpu was always reset because of the extern watchdog when I was downloading ,but the cpu works well in normal status because I feed the watchdog MAX706. Jianson Wang ------------------------------------


Re: Watchdog in LPC2000

Started by Mike Harrison in LPC200012 years ago 1 reply

On Fri, 30 Nov 2007 17:23:41 +0545, you wrote: > Hi Nagaraju, > > I am not convinced at feeding the watchdog in interrupts. I >...

On Fri, 30 Nov 2007 17:23:41 +0545, you wrote: > Hi Nagaraju, > > I am not convinced at feeding the watchdog in interrupts. I > might have a wrong concept & correct me if I am wrong. Watchdogs are not to > correct software faults but hardware faults such as spikes. What happens > when a spike changes the value of program counter out of the range of the > code. The program counter m


Need help setting up the watchdog timer to generate an interrupt

Started by david_z_lawson in LPC200015 years ago

I'm trying to get the watchdog timer on the 2138 to timeout and generate an interrupt. If I have the reset bit set in WDMOD it...

I'm trying to get the watchdog timer on the 2138 to timeout and generate an interrupt. If I have the reset bit set in WDMOD it does reset after 5 seconds, but I can't get the chip to execute the interrupt (can't break in the interrupt routine). How should you handle a w


LPC2292: Boot0/Boot1 Detection on Watchdog Reset ?

Started by alipowsky in LPC200015 years ago

I wonder whether the PortpinsP2.26 and P2.27 (Boot0/Boot1) are only examined during a Reset caused by the Reset Line (Pin 135)...

I wonder whether the PortpinsP2.26 and P2.27 (Boot0/Boot1) are only examined during a Reset caused by the Reset Line (Pin 135) driven low, or also in case of a watchdog reset ?. The LPC-2292 Usermanual states to different things: Page 85 "External and intern