Getting Started with the UltraScale+ and Arm DS

Overview Set up the ZCU102 Set up the Ultra96 Running Code Next steps

Running Code

This section describes how to create a simple program image in Arm Development Studio (Arm DS) and run it on the Xilinx UltraScale+, or Ultra96 target.

More detailed information on building a simple project in Arm Development Studio can be found in the Hello World tutorial of the Arm Development Studio Getting Started Guide.

Note: To run code on the target, it first needs to be prevented from autobooting to any OS image that may be installed on the SD card. To prevent the target autobooting, watch the COM port windows described in the previous sections of this guide, and follow the instructions.

  1. In Arm DS, create a new empty C project using Arm Compiler 6, and create a new source file named main.c with this code:

    #include <stdio.h>
    #include <stdlib.h>
    int main(void) {
    puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
    return EXIT_SUCCESS; }
  2. Build the project.

  3. Create a new bare metal debug configuration using the Debug Configuration for Xilinx > Zynq UltraScale+ MPSoC (Cascaded) > Bare Metal Debug > Cortex-A53_0.

  4. Specify the .axf file from your project (usually located within the Debug folder in the project directory) in the Application on host to download field of the Files tab.

  5. Under the Debugger tab set Run Control to Debug from symbol, and enter main in the text field.

  6. Finally, select your debugger probe under the connections tab and press the Debug button. Arm Development Studio will now connect to the target and stop at the beginning of the main() function.

  7. Hit Run to run the program, and in the App Console window the following message will be output:

    !!!Hello World!!!

You have now successfully run the code on your target.

Previous Next