User guide
Getting Started
2-18 Copyright © 2003-2010 ARM Limited. All rights reserved. ARM DUI 0224I
2.6.2 Rebuilding the Boot Monitor
All firmware components are built using GNUmake, which is available for UNIX,
Linux and for most Windows versions. (To use GNUmake under windows Cygwin must
be installed, for more information contact Redhat.)
Because the platform library used by the Boot Monitor requires callout startup routines
support specific to RVCT, the Boot Monitor (and any application that uses the platform
library for directing STDIO) can only be rebuilt using RVCT tools.
To rebuild the Boot Monitor, set your default directory to
install_directory/Firmware/Boot_Monitor
and type
make
from a DOS command line.
You can specify the following build options after the
make
command:
•
BIG_ENDIAN=1/0
, defining image endianness (Default 0, little endian)
•
THUMB=1/0
, defining image state (Default 0, ARM)
•
DEBUG=1/0
, defining optimization level (Default 0, optimized code)
UNRESERVE SPACE address
Free the space starting at
address
in NOR flash. This space can be used by the Boot
Monitor.
WRITE BINARY file
[NAME new_name]
[FLASH_ADDRESS address]
[LOAD_ADDRESS address]
[ENTRY_POINT address]
Write a binary file to flash. By default, the image is identified by its file name. Use
NAME new_name
to specify a name instead of using the default name.
Use
FLASH_ADDRESS address
to specify where in flash the image is to be located. The
optional
LOAD_ADDRESS
and
ENTRY_POINT
arguments enable you to specify the load address
and the entry point.
If an entry point is not specified, the load address is used as the entry point.
Note
Remote file access requires semihosting. Use a debugger connection to provide
semihosting.
WRITE IMAGE file
[NAME new_name]
[FLASH_ADDRESS address]
Write an ELF image file to flash. By default, the image is identified by its file name. For
example, t:\images\boot_monitor.axf is identified as boot_monitor. Use
NAME new_name
to
specify a name instead of using the default name.
Use
FLASH_ADDRESS address
to specify where in flash the image is to be located. If the image
is linked to run from flash, the link address is used and
address
is ignored.
Note
Remote file access requires semihosting. Use a debugger connection to provide
semihosting.
Table 2-7 Boot Monitor NOR flash commands (continued)
Command Action