Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Troubleshooting CMake/CMSIS-Toolbox projects

In this section:

At times you will run into problems with the CMake or CMSIS-Toolbox project in the Embedded Workbench IDE. As a general rule, before contacting IAR Technical Support, you should try to perform the same operations on your CMake/CMSIS-Toolbox project from the command line, without using the Embedded Workbench IDE. In many cases, the problem is with CMake or CMSIS-Toolbox.

The Workspace window is almost empty

If the project tree in the Workspace window only contains the CMakeLists.txt or csolution.yml file, the project failed to configure itself correctly. Inspect the CMake/CMSIS-Toolbox log window for errors, see CMake/CMSIS-Toolbox log window.

Try configuring and building the project from the command line and see if the problem persists.

Embedded Workbench tries to use all csolution contexts

If IAR Embedded Workbench attempts to use all contexts in the csolution.yml file, but you only want to use some of them, you can limit the contexts that are generated by sending the ‑‑context command line option to csolution from the CMSIS-Toolbox options page, see CMSIS-Toolbox options.

The build log wraps lines of texts too early

By default, the IAR compiler wraps long lines of text. To disable this, add ‑‑no_wrap_diagnostics to the compiler command line in your CMake or CMSIS-Toolbox files.

The browse information and syntax highlighting is wrong

If the source browse information and editor syntax highlighting is wrong, make sure that the project builds as expected. You should also inspect the command lines for the project for missing options.

The configuration fails but works from the command line

If the configuration fails in the Embedded Workbench IDE, but works from the command line, try deleting the build directory used by CMake/CMSIS-Toolbox, either manually or by using the Project>Force Reconfiguration menu command. If you change any underlying options in CMake, for example, the selected compiler, you must remove the build directory and reconfigure the project.