Content originally posted in LPCWare by hitpony on Fri Nov 07 03:58:07 MST 2014
Thanks mc, this really bring a good direction for me.
I have checked the schematic, the ISP pin (P2_7) is used as EMC_A9 for my external NORFLASH, even though at the time when watchdog start, the EMC will not be used in later program, can I directly do the followings, before (or just after) the watchdog init:
scu_pinmux(2, 7, MD_PUP, 0); // EXTBUS_A9
GPIO_SetDir(2, 0x0080, 1);
GPIO_SetValue(2, 0x0080);
I have did some test, but the program will hang just after "scu_pinmux(2, 7, MD_PUP, 0);", and watchdog will trigger the reset.
Thanks mc!