Intel® FPGA SDK for OpenCL™ Standard Edition: Cyclone® V SoC Getting Started Guide

ID 683030
Date 4/20/2022
Document Table of Contents

2.10.1. Building the Host Application

Build your SoC FPGA-specific OpenCL™ host application using the GCC cross-compiler available with the Windows version of the SoC EDS.
  1. Perform the following tasks to download the hello_world design example:
    1. Download the SoC FPGA-specific hello_world design example ( <version> Arm32 Linux package (.tgz)) from the Hello World Design Example page.
    2. Extract exm_opencl_hello_world_arm32_linux_<version>.tar to a location to which you have write access.
      Important: Ensure that the location name does not contain spaces.
    3. Verify that the AOCL_BOARD_PACKAGE_ROOT environment variable setting points to the Cyclone V SoC Development Kit Reference Platform. Open a Windows command prompt and then type echo %AOCL_BOARD_PACKAGE_ROOT% at the command prompt.
    If the returned path is not %INTELFPGAOCLSDKROOT%\board\c5soc, or if AOCL_BOARD_PACKAGE_ROOT is not set, modify the environment variable setting, as described in Setting the Intel FPGA SDK for OpenCL User Environment Variables for SoC FPGA.
  2. At a command prompt, invoke the following command to set the PATH environment variable:
    SET PATH=%PATH%;<path_to_SoCEDS_installation_dir>\ds-5\sw\gcc\bin
  3. Navigate to the <path_to_exm_opencl_hello_world_arm32_linux_<version>>\hello_world folder.
  4. Invoke the make -f Makefile command. Alternatively, you can simply invoke the make command.
    The hello_world executable is in the <path_to_exm_opencl_hello_world_arm32_linux_<version>>\hello_world\bin folder.