Content originally posted in LPCWare by Rob65 on Fri May 27 02:32:23 MST 2011
Gabriele,
I'n not sure what you mean with your last post - it looks there is some Italian - English translation problem.
When you start debugging (by clicking on "Debug project") the LPCXpresso tools first program the executable code into the Flash of your device. After successful Flash programming program execution starts.
In my case the program that was already running in my lpc1343 got stuck in some loop that did not allow me to program the Flash.
By pulling the ISP pin low, the chip is set in a defined mode that certainly allows flash programming through the SWD interface.
And yes you are right, you should only pull the pin low during reset. After that you should release it again.
My board contains a pushbutton switch that I press during reset - I just verified what happens if I keep the line constantly low; in this case the LPCXpresso environment seems to be executing ROM code (at 0x1f......) instead of my program (at 0x00......) - I even had to unplug the LPC-Link module and restart the LPCXpresso IDE in order to get things working again.
I hope you get things working, otherwise we'll have to ask Larryvc to use his Italian skills once more :rolleyes:
Regards,
Rob