Watchdog

25 Oct 2012

- I have now tested a piece of code, where I was trying to invoke the bootloader,
and you are correct, it doesn't go into bootloader mode, when the WDT resets the chip.
I will try to figure something out, to see if I can get it to go bootload.

Lerche



EDIT: Looking at page 371 of the user manual would make sense of it all.
The flowchart describes the reset_bootloader_entry thingy.
As the bootloader sets a flag in the memory, the bootloader never checks for P0_1 input,
and just goes on running the user code.
Let's see if we can work around this.

Lerche

25 Oct 2012

Many thanks again,

sounds a bit strange ?

my original idea was to force a reset, but I don't know the command.

Ceri

25 Oct 2012

Found out ho to do it :)#

NVIC_SystemReset();

works, press ISP button ... DFU/ISP drive appears

MAGIC .

Ceri

25 Oct 2012

ceri clatworthy wrote:

Found out ho to do it :)#

NVIC_SystemReset();

works, press ISP button ... DFU/ISP drive appears

MAGIC .

Ceri

Nice :-)

Lerche

21 Jul 2015

I've been trying to get WDT on LPC1768 to work in "debug mode", that is, I don't want WDT to do a reset but to just interrupt. I've used Simon's base code, and the WDT timer fires once (LED lights), but I think i'm stuck in the wdt_isr. it's not clear from the reference manual, how one clears the WDT interrupt flag, so the WDT timer can fire again.

any one have an example of WDT running in "non reset" mode?

21 Jul 2015

Not all NXP watchdog timers can do this. You should check in the reference manual if it is capable of doing this, some can only do an interrupt once.

The LPC11u24 can do it as you want, here is an example of that: https://developer.mbed.org/users/Sissors/code/WakeUp/file/9d355da2770e/Device/WakeUp_LPC11u24.cpp. If the LPC1768 has the same WDT you can implement something similar.