2.10.8. Building an application that uses semihosting

The boot monitor handles semihosting SWIs the same as a debugger handles SWIs. This enables an image that is not linked against with the platform library to be loaded into the Disk on Chip or Flash and have the boot monitor manage the I/O.

All I/O using stdio(), for example printf(), uses the same devices as the boot monitor console (either UART-0 or the Keyboard/LCD depending on the Boot Monitor configuration switch settings). File functions access the Disk on Chip and character I/O devices using the mechanisms described in Redirecting character output to hardware devices. For example, open the character LCD by using the special file name :CHARLCD.

There are no specific tools requirements. Images built with ADS or RVDS should run if they are built to use semihosting. This means that an image built using the tool kit defaults can be loaded onto the baseboard and Core Tile and run.

Copyright © 2005-2011 ARM Limited. All rights reserved.ARM DUI 0411D