LPC3152 Developers Kit - User’s Guide
Page 33
Copyright 2012 © Embedded Artists AB
USB – DFU class
The boot image is downloaded via the
USB by utilizing the DFU class (Device
Firmware Upgrade).
A Windows application exists that
connect to the DFU device (that the
LPC3152 implement in boot mode).
This application is used to download
the boot image.
Note that a special format of the boot
image must be used. For a description
of how this could be done, see further
down in this section.
NAND flash
The boot image is stored on the NAND
flash.
The boot image is downloaded into
NAND flash with the help of a special
loader application. At the time of
writing, no such application has been
created.
Read
section 4.6
about NAND boot
issue when using QVGA display and
Ethernet controller on
LPC31xx
Base Board
.
5.3.2
Creating a Boot Image
Note that this section describes how to create a boot image for the LPC313x family. The principles are
exactly the same for the LPC315x family and the exact same conversion program is used (even
though the somewhat bad naming of the program).
The first step is to create a pure binary file. This is normally done from the build output file (often an elf
or elf-compatible file).
Under a GCC environment, the command to create a binary file, named
lpc313x.bin
is:
arm-elf-objcopy -I elf32-little -O binary --strip-debug
--strip-unneeded --verbose <input-file> lpc313x.bin
Under uVision (Keil’s IDE), the command to create a binary file, named
lpc313x.bin
is as shown below.
The input file is in this case typically the output file with axf-ending.
fromelf.exe –output lpc313x.bin -bin <input-file>
The second step is to create a CRC attached boot image for the LPC3131. There is a command line
tool from NXP, bundled in the CDL package named:
lpc313xImgCreator
. See program output
explaining the command line options below.