ARM ARM DUI 0224I Computer Hardware User Manual


 
Getting Started
2-28 Copyright © 2003-2007 ARM Limited. All rights reserved. ARM DUI 0224F
Note
Images with multiple load regions are not supported.
The image must have an execution region in RAM or SDRAM.
The execution address must not be in the top 4MBytes of SDRAM since this is
used by the Boot Monitor.
2. The image must be programmed into Disk-on-Chip using the Boot Monitor.
Connect a debugger and use semihosting to load the file into NAND flash:
>COPY C:\software\elf_file_name file_name
3. To run the image manually, from the debugger, or terminal connected to UART0,
type:
>RUN file_name
2.6.11 Using a boot script to run an image automatically
Use a boot script to run an image automatically after power-on:
1. Create a boot script from the Boot Monitor by typing:
If your image is in NAND flash:
> CREATE myscript.txt
; put any startup code here RUN file_name
If your image is in NOR flash, enter the flash subsystem before running:
> CREATE myscript.txt
; put any startup code here FLASH RUN file_name
2. Press Ctrl-Z to indicate the end of the boot script and return to the Boot Monitor
prompt.
3. Verify the file was entered correctly by typing:
>TYPE myscript.txt
The contents of the file is displayed to the currently selected output device.
4. Specify the boot script to use at reset from the Boot Monitor by typing:
>SET BOOTSCRIPT myscript.txt
5. Set S6-1 ON to instruct the Boot Monitor to run the boot script at power on.
6. Reset the platform. The Boot Monitor runs and executes the boot script
myscript.txt
. In this case, it relocates the image
file_name
and executes it.