Content originally posted in LPCWare by ub3r on Sat May 07 01:04:49 MST 2016 Gents, Im having an issue with flashmagic talking to the micro after i re-invoke ISP. I have no problems at all with a fresh micro, or when the micro powers up in ISP mode.
Im using the following code:
void reInvokeISP(void)
{
LPC_SYSCON->SYSAHBCLKCTRL |= 0x00400;// make sure 32-bit Timer 1 is turned on before calling ISP
LPC_SYSCON->SYSAHBCLKCTRL |= 0x00040;// make sure GPIO clock is turned on before calling ISP
LPC_SYSCON->SYSAHBCLKCTRL |= 0x10000;// make sure IO configuration clock is turned on before calling ISP
LPC_SYSCON->SYSAHBCLKDIV = 1;// make sure AHB clock divider is 1:1
iap_entry = (IAP) IAP_LOCATION;
unsigned long command[1], result[1];
command[0] = 57;
iap_entry(command, result);
}
Content originally posted in LPCWare by ub3r on Sat May 07 02:24:12 MST 2016 SOLVED!!! Note to self... Disable all interrupts before entering ISP. :bigsmile:
Content originally posted in LPCWare by ub3r on Sat May 07 01:31:04 MST 2016 Flashmagic does not see the micro during Auto-Baud. This is after i re-invoke ISP.