The various LPC microcontroller chips have a boot mode that accepts serial communication and writes the received program to Flash. I want to make a PCB with and LPC1114 that must be programmed in circuit, with only minimal interface circuitry on the PCB. Is there a standard connector for supplying the required signals (GND, RxD, TxD, Reset, BootModeEnable)?
|
|
I use Sparkfun's USB to UART board. I bring out UART0, reset and isp to headers. I connect reset and isp to ground with jumpers, then use FlashMagic. This only seems to work right if I also power the device from USB, so the grounds are common. Sparkfun's board: |
||||
|
|
If you set up a connector to be compatible with the header version of a low voltage FTDI USB serial cable, you have the option of not needing to contract for the manufacture of custom cables. You can drive the boot mode off a status line and couple the reset to that with a cap (think I might have used a transistor as an inverter when I did this with an ST part). Then deselecting and reselecting the boot mode will reset the chip and prepare it for download. |
|||
|
|
I did not work with LPC1114 before but take a look at the below address. On the left, you will see a link to a schematic file... |
|||||||||||||
|
|
Im actually building something with the same micro. I just picked up one of these: http://ics.nxp.com/lpcxpresso/ for ~$20 from digikey, cut off the "target" side of the board, and wired up a custom connector on the "LPC link" side to work with my programming header. The CodeRed made environment is annoying since its Eclipse based (I loathe Eclipse) but it works in Windows, Linux, and maybe Mac. They have instructions for all of the command line programs to work with the LPC Link interface. I have an environment set up in linux to just run It isn't serial like you are looking for, but it works like a charm. |
|||||||
|
|
If you want serial programming with the standard connector (meaning RS232) why don't you implement normal UART (MAX3232 or something) with standard DB9 male connect on the LPC side? Than you simply use the extender (male to female) DB9 cable towards PC (or use serial to usb cable if you PC does not have serial port). In any case, put a female DB9 on your PLC board, and you never ever have to manufacture your serial cable :-). Don't forget to wire pins properly, extender cables are straight (1-1, 2-2, ... 9-9). If the space on the board was issue (not enough room for DB9) then you can provide 2 x 5 pin header only. Of course, you could also use spare MAX3232 level shifters to force your board into reset / boot mode like I did on my NXP/AT89C51Rx2 based board also using Flashmagic. Same principle, teh Falshmagic takes control over the boot entry via serial line. All that said, I would go with SWD / JTAG and had debugging at my disposal. |
|||
|
|