SOLVED!! Re-invoke ISP + Flashmagic + LPC1315/17

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SOLVED!! Re-invoke ISP + Flashmagic + LPC1315/17

1,021 Views
lpcware
NXP Employee
NXP Employee
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);
}


Is there a way to get this working?

Any help would be much appreciated.

regards,
Tony
0 Kudos
Reply
4 Replies

964 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply

964 Views
lpcware
NXP Employee
NXP Employee
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:
0 Kudos
Reply

964 Views
lpcware
NXP Employee
NXP Employee
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.
0 Kudos
Reply

964 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mysepp on Sat May 07 01:10:55 MST 2016
What is happening?
0 Kudos
Reply