LPC3131/41 Developer’s Kit - User’s Guide
Page 32
Copyright 2012 © Embedded Artists AB
The
-o
option specifies the output directory (the current directory in this case). The
-pc
option specifies
that a CRC header should be appended. The
-i
option specifies the input file. An output file called
lpc313x.rom
will be generated in the command line example above.
To create a boot image for USB DFU booting, the command is:
lpc313xImgCreator -o ./ -pd -i lpc313x.bin
The
-o
option specifies the output directory (the current directory in this case). The
-pd
option specifies
that a file for USB boot mode should be generated. The
-i
option specifies the input file. An output file
called
lpc313x.rom
will be generated in the command line example above.
The normal procedure is to add these commands to the makefile. This way no manual operations are
needed to create the boot image.
5.3.2.2
EWARM from IAR
Under EWARM (IAR’s IDE) it is easy to instruct the IDE to generate a binary file. Figure 14 below
illustrates project settings for automatically generating a binary file named
lpc313x.bin
after each build.
Figure 15 further illustrates settings for automatically invoke the image creator application
(lpc313xImgCreator). A CRC attached rom-file will be created. The post build command will be
executed after the application has been built. The
–pc
command line option can be changed to
–pd
if
USB DFU booting method is used.
Figure 14 – EWARM Options for Output Converter