VE switch S6
This section describes the behavior and default positions of the VE system model switch.
Switch S6 is equivalent to the Boot Monitor configuration switch on the VE hardware.
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.
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.
Table 7-9 Default positions of VE system model switch
|Switch||Default position||Function in default position|
|S6-1||OFF||Displays prompt permitting Boot Monitor command entry after system start.|
|S6-2||OFF||See STDIO redirection, below.|
|S6-3||OFF||See STDIO redirection, below.|
|S6-4 to S6-8||OFF||Reserved for application use.|
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.
Table 7-10 STDIO redirection
|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 UART0, regardless of semihosting settings.|