LPC3131/41 Developer’s Kit - User’s Guide
Page 31
Copyright 2012 © Embedded Artists AB
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
This section describes how to create a boot image for the LPC31xx processor family. Three IDE:s are
described (GCC, EWARM from IAR and uVision from Keil). Note that similar settings can be done in
IDE:s from other vendors and should in general be no problem to implement.
5.3.2.1
GCC
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
The second step is to create a CRC attached boot image for the LPC3131/41. There is a command
line tool from NXP, bundled in the CDL package named:
lpc313xImgCreator
. See program output
explaining the command line options below.
Figure 13 – lpc3131xImgCreator Command Line Options
To add a CRC header to the binary file, i.e., to create a CRC attached boot image, the command is:
lpc313xImgCreator -o ./ -pc -i lpc313x.bin