2.2.7. Boot Monitor configuration

The Boot Monitor application is typically loaded into the NOR flash memory and selected to run at power on. Follow the instructions in Loading Boot Monitor into NOR flash for details of loading the boot flash with the image from the supplied CD. How the Boot Monitor runs is determined by the setting of User Switches.

The Boot Monitor reads switches S6-1 and S6-3 to determine start-up settings after reset. See Figure 2.1 for the location of S6 on the PB1176JZF-S.

Note

If S6 switch lever is down, the switch is ON. The default is OFF, switch lever up.

User Switches 4 to 8 (S6-4 to S6-8) are not used by the Boot Monitor and are available for user applications. If a different loader program is present at the boot location, the function of the entire User Switch bank becomes implementation dependent.

The setting of S6-1 determines whether the Boot Monitor starts after a reset:

S6-1 OFF

A prompt is displayed enabling you to enter Boot Monitor commands.

S6-1 ON

The Boot Monitor executes a boot script that has been loaded into flash.

The boot script can execute any Boot Monitor commands. It typically selects and runs an image in application flash. You can store one or more code images in flash memory and use the boot script to start an image at reset. Use the SET BOOTSCRIPT command to enter a boot script from the Boot Monitor (see Appendix F Boot Monitor and platform library).

Output and input of text from STDIO for both applications and Boot Monitor I/O depends on the setting of User Switch 2 (S6-2) and User Switch 3 (S6-3). Table 2.7 lists the STDIO switch settings.

Table 2.7. STDIO redirection

User

Switch 2

User

Switch 3

OutputInputDescription
OFFOFF

UART0 or

console

UART0 or

console

STDIO autodetects whether to use semihosting I/O or a UART. If a debugger is connected and semihosting is enabled, STDIO is redirected to the debugger console window. Otherwise, STDIO goes to UART0.
OFFONUART0UART0STDIO is redirected to UART0. This occurs even under semihosting.
ONOFFDVIKeyboardSTDIO is redirected to the DVI display and keyboard. This occurs even under semihosting.
ONONDVI UART0STDIO output is redirected to the DVI display and input is redirected to the UART. This occurs even under semihosting

User Switches 2 and 3 (S6-2 and S6-3) do not affect file I/O operations performed under semihosting. Semihosting operation requires a debugger and a JTAG interface device. See Redirecting character output to hardware devices for more details on I/O.

Copyright © 2007-2011 ARM Limited. All rights reserved.ARM DUI 0425F
Non-Confidential