Linux OS host#
The following sections provide steps to run a demo compiled with Arm GCC on Linux host.
Set up toolchain#
This section contains the steps to install the necessary components required to build and run a MCUXpresso SDK demo application with the Arm GCC toolchain, as supported by the MCUXpresso SDK.
Install GCC Arm embedded toolchain#
Download and run the installer from the GNU Arm Embedded Toolchain Downloads page. The GNU Arm embedded toolchain contains the GCC compiler, libraries, and other tools required for bare-metal software development. The GCC toolchain should correspond to the latest supported version, as described in the MCUXpresso SDK Release Notes for EVK-MIMX8ULP (document MCUXSDKIMX8ULPRN).
Note: See How to set up Windows/Linux host system for setting up Linux host before compiling the application.
Parent topic:Set up toolchain
Add a new system environment variable for ARMGCC_DIR#
Create a new system environment variable and name it ARMGCC_DIR. The value of this variable should point to the Arm GCC embedded toolchain installation path. For this example, the path is:
$ export ARMGCC_DIR=<path_to_GNUARM_GCC_installation_dir>
Parent topic:Set up toolchain
Parent topic:Linux OS host
Build an example application#
To build an example application, follow these steps.
Change the directory to the example application project directory, which has a path similar to the following:
<install_dir>/boards/<board_name>/<example_type>/<application_name>/armgccFor this example, the exact path is:
<install_dir>/boards/evkmimx8ulp/demo_apps/hello_world/armgccRun the
build_debug.shscript at the command-line to perform the build. The output is shown as below:$ ./build_debug.sh -- TOOLCHAIN_DIR: -- BUILD_TYPE: debug -- TOOLCHAIN_DIR: -- BUILD_TYPE: debug -- The ASM compiler identification is GNU -- Found assembler: -- Configuring done -- Generating done -- Build files have been written to: Scanning dependencies of target hello_world.elf < -- skipping lines -- > [100%] Linking C executable debug/hello_world.elf [100%] Built target hello_world.elf
Note: To run the application, see the Run an application using imx-mkimage.
Parent topic:Linux OS host
Parent topic:Running a Demo Application Using Arm GCC