Content originally posted in LPCWare by NXP_Europe on Mon May 03 03:24:24 MST 2010
Quote: trryt
I wanted to use 3 channel PWM so in my program I configured PIO0_10 as output:
LPC_IOCON->JTAG_TCK_PIO0_10 &= ~0x07;
LPC_IOCON->JTAG_TCK_PIO0_10 |= 0x03;
First time after doing that, I got an error on debug start (when my program has changed the pin function from JTAG to GPIO) and I found it normal.
But now when I try to modify the program the LPCXpresso can't connected with the target. Is this mean that mean that LPC1114 flashed with PIO0_10 configured as GPIO cannot be re-flashed with LPCLink any more??? Or is it some other error of LPCXpresso? Frankly speaking once in a few runs it cannot connect with the board from strange reasons. One thing I've noticed is that after a hibernation or sleeping the PC LPCXpresso cannot connect to LPCLink, but rebooting always helped.
Now it stops on 5%[Connect] Remote Configuration Complete and does not respond. The LPCLink LED is on.
I've tried to switch debugger to SWV and then I get an error:
Error launching Release\blinky.axf
Remote communication error: No error.
Is using the UART bootloader the only possibility to flash the LPC1114 or is just anothe error in LPCXpresso??
Hi trryt,
Unfortunately it look like you 'locked' the device for SWD usage. If the SWD pins are configured as different function, always add a 2-3 sec delay before changing the function. This will give you (or the LPC-link) the ability/time to halt the CPU before the SWD pins are changed.
The only way to 'unlock' the LPC1114 indeed is by using the UART bootloader. Using flashmagic you can erase the flash content and everything is solved.
Kind regards,