Running a demo application using IAR

This section describes the steps required to build, run, and debug example applications provided in the MCUXpresso SDK using IAR. The hello_world demo application targeted for the MIMX8ULP hardware platform is used as an example, although these steps can be applied to any example application in the MCUXpresso SDK.

Note:

  • Newer versions of the IAR are compatible with older versions of the project format. However, using an older version of the IAR to load the SDK project that uses the newer format generates an error. To use the SDK, it is recommended to upgrade the IAR version to 9.30.1.

  • Run an application using imx-mkimage. Generate and download flash.bin to emmc or flexspi nor flash when DBD_EN (Deny By Default) is fused.

Build an example application

Perform the following steps to build the hello_world example application.

  1. Open the desired demo application workspace. Most example application workspace files can be located using the following path:

    <install_dir>/boards/<board_name>/<example_type>/<application_name>/iar
    

    For using MIMX8ULP-EVK hardware platform as an example, the hello_world workspace is located at:

    <install_dir>/boards/evkmimx8ulp/demo_apps/hello_world/iar/hello_world.eww
    

    Other example applications may have additional folders in the respective paths.

  2. Select the desired build target from the drop-down menu.

    For this example, select hello_worldDebug.

    |

|

  1. To build the demo application, click Make, highlighted in red in Figure 2.

    |

|

  1. The build completes without errors.

Note: To run the application, see the Run an application using imx-mkimage.

Parent topic:Running a demo application using IAR