Build an example application

Before using IAR, get the IAR and Segger J-Link patch, iar_segger_support_patch_imx8p.zip. Install the i.MX8MP support patch following the guides in readme.txt located in the archive.

Do 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
    

    Using the i.MX 8MP EVK hardware platform as an example, the hello_world workspace is located in:

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

    Other example applications may have additional folders in their path.

  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.

Parent topic:Run a demo application using IAR