Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Adding a CMSIS-Toolbox project to the IDE

In this section:
  1. Download and install a version of CMSIS-Toolbox that is compatible with the project you are going to import.

  2. Download and install CMake (version 3.31 or later).

  3. Only if you are using IAR Build Tools for Linux:

    1. Install the version of Ruby that corresponds to the Linux version you are using.

    2. Navigate to the common/bin/pack2iar directory in the installation directory and run bundle install to download and install the bundles needed to run the pack conversion steps.

  4. Choose Tools>Options>CMake/CMSIS-Toolbox to open the settings page for CMake/CMSIS-Toolbox and specify the paths to the:

    • CMake executable

    • CMSIS-Toolbox installation

    • Pack root folder (the local PACK repository)

  5. To prepare for adding a csolution.yml project file to the IDE, choose Project>Create New Project to open the Create New Project dialog box.

  6. From the Tool chain dropdown menu, choose CMake for Arm and select the template Import csolution.yml.

  7. Navigate to the csolution.yml file that belongs to the CMSIS-Toolbox project you want to add. Adding it can take a few minutes.

  8. Save the project file in a suitable location.

    Now all files should be displayed in the Workspace window.

    The project can now be analyzed and debugged as a regular Embedded Workbench project. In a project with multiple executable targets, select the target to debug on the Project>Options>CMake>Target page.

    You can also use the template Empty project and import a csolution.yml file into the IDE later, using the command Project>Add CMake Connector>CSolution. Note that you can only add one csolution.yml file!