You copied the Doc URL to your clipboard.

2.2. 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.

Note

It is not necessary to open the enclosure to configure the Boot Monitor. The User Switches 1 to 3 on the front panel of the ATX enclosure (see Figure 3.2) control this. The User Switches in switch bank S4 on the PB11MPCore baseboard (see Figure 3.1) duplicate the front panel User Switches and must be left in the default all switches OFF position for normal operation.

User Switches 4 to 8 (S4-4 to S4-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.

User Switch 1 (S4-1) determines the Boot Monitor behavior after a reset. The available options are shown in Table 2.1.

Table 2.1. Boot Monitor startup behavior
User Switch 1Startup Behavior
OFFA prompt is displayed enabling you to enter Boot Monitor commands.
ONThe Boot Monitor executes a boot script that has been loaded into NOR flash, a Multimedia (MMC) or Secure Digital (SD) card. If a boot script is not present, the Boot Monitor prompt is displayed.

The boot script can execute any Boot Monitor commands. It typically selects and runs an application image that has been stored in either NOR flash memory or on a MMC or SD card. 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 set the boot script file name from the Boot Monitor (see Table F.1).

Output and input of text from STDIO for both applications and Boot Monitor I/O depends on the setting of User Switch 2 (S4-2) and User Switch 3 (S4-3) as listed in Table 2.2.

Table 2.2. STDIO redirection
User Switch 2User Switch 3OutputInputDescription
OFFOFFUART0 or consoleUART0 or consoleSTDIO 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.
ONONDVIUART0STDIO output is redirected to the DVI display and input is redirected to UART0. This occurs even under semihosting.

User Switches 2 and 3 (S4-2 and S4-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.

Was this page helpful? Yes No