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

user ceri clatworthy wrote:

Found out ho to do it :)#

NVIC_SystemReset();

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

MAGIC .

Ceri

Nice :-)

Lerche

Please log in to post a reply.