User manual
AOAA Kit - User’s Guide
Page 34
Copyright 2012 © Embedded Artists AB
5 Program Development
This chapter describes how to download code to the AOAA board and how to compile the demo
applications – and in the extension, how to develop own demo applications. Details of the demo
applications are not described in this document.
5.1 Program Download
The AOAA board contains two processors, the LPC1769 and LPC11C24. Both supports program
download via SWD/JTAG. The LPC1769 additionally supports program download via ISP over UART
(the USB-to-UART bridge is used). The two methods are briefly described below:
ISP over UART
ISP is short for In-System Programming. The LPC1769 contains a bootloader in ROM that
can be enabled by pulling pin P2.10 low during reset. The application can then be
downloaded over UART#0 (serial channel). An application is needed on the PC for
downloading the application code.
SWD/JTAG
There are many different SWD/JTAG interfaces on the market. NXP has created LPC-LINK.
Keil has ULINK. IAR/Segger has JLINK. Code Red has Red Probe, etc. There is also
OpenOCD, which is an open source project. Consult the respective manual for the
SWD/JTAG interface used to get instructions how to download a hex/binary file.
It is assumed that a binary image exist that represent the application program. This file is often a so
called hex-file, which is a file format that Intel created a long time ago. It can also be a pure binary file
(then typically called a bin-file). The Embedded Artists support site contains pre-compiled hex/bin-files
of the demo applications. Section 5.2 describes how to compile the demo application, in order to
generate the hex-file.
5.1.1 ISP over UART Program Download
There are two jumpers (JP4) on the AOAA Board related to the USB-to-UART serial channel control
signals and automatic ISP functionality. See Figure 20 for details about where the USB connector and
jumpers are located. Normally the two jumpers in JP4 shall be inserted. However, sometimes the
terminal program on the PC/laptop can resets the board and/or enable ISP mode by accident. If this
happens, just remove the two JP4 jumpers.
When downloading code via ISP mode, the two jumpers in JP4 shall however be inserted. This way,
the application on the PC for downloaded the application code can automatically enable ISP mode.
Download and install Flash Magic (http://www.flashmagictool.com/). This application directly supports
application download via ISP (and can automatically enable ISP also).