Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

LPC2294 Software Reset vs. Watchdog

2005-09-09 by mpwalter2005

Hi,

some problem: after flashing the internal flash with IAP, i want to 
perform a restart. I know it works good with the watchdog, using this 
commands:

WDTC  = 0x00FFF; 
WDMOD = 0x03;      
WDFEED= 0xAA;
WDFEED= 0x55;

but I don't want to use the watchdog, I will use a software reset. So 
i write this code:

void (*reset)(void);

void function (..)
{
 ... iap routines ...
 reset = (void (*)(void))(0x0000);
 reset();
}

so it do what I want - jump to the reset handler , but my program 
will not start (when i doing a reset, by pressing the reset-button on 
my phycore board it will runs great !) - so what is wrong or what can 
I do ? Must changing some registers ? 

Thanks for every hint
Matthias

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.