Closed pterodragon closed 3 years ago
This tutorial focuses on the command-line usage of the IAR C/C++ Compiler with CMake to build and test embedded applications.
An idea for stepping throughout the code, might be to use the debug-only project feature from within the IAR Embedded Workbench, already covered in this tutorial.
The IAR Embedded Workbench allows creating a debug-only project, where solely the executable target containing debug information can be added. The debug information in the executable contains pointers to its originating sources. That way, during runtime, becomes possible to navigate the source code through its execution flow using the IAR C-SPY Debugger.
Before runtime, there might be another option, as found in the Technical Note 200415. This technical note describes how Visual Studio Code can be used with the IAR Embedded Workbench as an alternative.
Such use cases are beyond the scope of this tutorial.
The generated
compile_commands.json
of my project looks like this. But I have not found any language server which can parse that and can result in correct language server behavior ("jump to definition" etc.). Please write in the readme if there is a method where I can avoid using Simplicity studio but can still index the code properly