2.2.1 Running the example program

This section describes how to run the example program.

Run the platform with the following command line:

Procedure

  1. ./Foundation_Platform --image hello.axf
  2. Add --quiet to suppress everything except for the output from the example program.
    Results:

    You receive a similar output to the following:

    terminal_0: Listening for serial connection on port 5000
    terminal_1: Listening for serial connection on port 5001
    terminal_2: Listening for serial connection on port 5002
    terminal_3: Listening for serial connection on port 5003
    Simulation is started
    Hello, 64-bit world!
    Simulation is terminating. Reason: Simulation stopped

    The example demonstrates that the platform initializes correctly as it loads and executes the example program. It also demonstrates that the semihosting calls to print output and stop the platform work properly.

Non-ConfidentialPDF file icon PDF version100961_1150_00_en
Copyright © 2012–2018 Arm Limited or its affiliates. All rights reserved.