| |||
| Home > Programmer’s Reference > Model configuration parameters > Baseboard parameters | |||
Table 3.2 lists the EB RTSM instantiation time parameters that you can change when you start the model. The syntax to use in a configuration file is:
baseboard. component_name.parameter=value
Table 3.2. EBBaseboard Model instantiation parameters
| Component name | Parameter | Description | Type | Values | Default |
|---|---|---|---|---|---|
| eb_sysregs_0 | user_switches_ value | switch S6 setting | integer | see Switch S6 | 0 |
| eb_sysregs_0 | boot_switch_ value | switch S8 setting | integer | see Switch S8 | 0 |
| flashldr_0 | fname | path to flash image file | string | valid filename | [empty string] |
| flashldr_1 | fname | path to flash image file | string | valid filename | [empty string] |
| mmc | p_mmc_file | multimedia card filename | string | valid filename | mmc.dat |
| pl111_clcd_0 | pixel_double_ limit | sets threshold in horizontal pixels below which pixels sent to framebuffer doubled in size in both dimensions | integer | - | 0x12c |
| smc | REMAP | indicates which channel of the SMC is bootable | integer | -1, 0-7 | -1 (no remap) |
| sp810_sysctrl | use_s8 | indicates whether to read boot_switches_value | boolean | true/false | false |
| vfs2 | mount | mount point for the host filesystem | string | see Mount names | [empty string] |
Switch S6 is equivalent to the Boot Monitor configuration switch on the EB hardware. Default settings are listed in Table 3.3. If you have the standard ARM Boot Monitor flash image loaded, the setting of switch S6-1 changes what happens on model reset. Otherwise, the function of switch S6 is implementation dependent. If you want to write the switch position directly to the S6 parameter in the model, you must convert the switch settings to an integer value from the equivalent binary, where 1 is on and 0 is off.
If S6-1 is in the ON position, the Boot Monitor executes the boot script that was loaded into flash. If there is no script, the Boot Monitor prompt is displayed.
The settings of S6-2 and S6-3 affect STDIO source and destination on model reset as defined in Table 3.4.
Table 3.4. STDIO redirection
| S6-2 | S6-3 | Output | Input | Description |
|---|---|---|---|---|
| OFF | OFF | UART0 | UART0 | STDIO autodetects whether to use semihosting I/O or a UART. If a debugger is connected, STDIO is redirected to the debugger output window, otherwise STDIO goes to UART0. |
| OFF | ON | UART0 | UART0 | STDIO is redirected to UART0, regardless of semihosting settings. |
| ON | OFF | CLCD | Keyboard | STDIO is redirected to the CLCD and keyboard, regardless of semihosting settings. |
| ON | ON | CLCD | UART0 | STDIO output is redirected to the LCD and input is redirected to the keyboard, regardless of semihosting settings. |
Further information on Boot Monitor configuration and commands can be found in separate documentation. See the Emulation Baseboard User Guide (Lead Free).
Switch S8 is disabled by default. To enable it, before you start the model you must change the state of the parameter baseboard.sp810_sysctrl.use_s8 to true. See Baseboard parameters.
If you have a Boot Monitor flash image loaded, switch S8 allows
you to remap boot memory. On reset, the EB hardware starts to execute
code at 0x0, which is typically volatile DRAM.
You can put the contents of non-volatile RAM at this location by setting
the S8 switch in the EB RTSM CLCD as shown in Table 3.5. The settings
take effect on model reset.
Table 3.5. EB System Model switch S8 settings
| Switch S8[4:1] | Memory Range | Description |
|---|---|---|
| 0000 | 0x40000000 - 0x4FEFFFFF | NOR flash remapped to 0x0 |
| 0001 | 0x44000000 - 0x47FFFFFF | NOR flash remapped to 0x0 |
| 0010 | 0x48000000 - 0x4BFFFFFF | SRAM remapped to 0x0 |
Attempting to change switch S8 settings after the model has started, for example by using the CLCD DIP switches, can lead to unpredictable behavior.