Frequently Asked Questions

How do I download program code into the processor?

There are several ways to program processors in the LPC-family.

  • Use ISP over UART where it is possible to download a compiled application over UART (the hex-file). There is a free tool called FlashMagic that can be used for this. Most User's Guides for Embedded Artists boards contains an explanation how to use FlashMagic.
  • A few of NXP's processors also have a ISP over USB mode where it is possible to download the application image over USB. This is for example supported by the LPC1343.
  • In order to have the possibility to also debug (e.g. single step, set break points and inspect variable values) a JTAG/SWD interface and debugger is needed. The JTAG/SWD interface is used both for downloading the application code (into RAM or FLASH) and for debugging. The LPCXpresso IDE (Integrated Development Environment) is a free development environment also containing a debugger. It can be upgraded for a low cost to be even more powerful. The embedded JTAG/SWD interface of the LPCXpresso boards can be used to get a very low-cost JTAG/SWD interface for the LPCXpresso IDE.
    Keil uVision is another IDE with a debugger. It is possible to use the free, but limited (32 kb code size), version of uVision togheter with e.g. the ULINK2 JTAG Adapter.
    Other alternatives for JTAG/SWD interfaces and debugger could be Code Red's, IAR's and Rowley's tools.

Go to FAQ List