Reputation: 144
I want to use Visual Studio Code as my main IDE, but I want to compile my code with IAR's compiler.
How could I configure VSCode ?
I found this extension but the documentation is too poor.
Upvotes: 7
Views: 7294
Reputation: 164
There are now two official IAR plugins for VSCode which make things much easier:
Upvotes: 5
Reputation: 527
For this, you can port you project to the custom build system (non iarbuild), e.g. a best choose is the Qbs. The Qbs support a lot of architectures and the toolchains (include IAR, KEIL and so on). In this case you can then use any IDE which support the Qbs, e.g. such as VSCode or QtCreator, and to open your project in any of these IDEs.
Both IDEs support only the GDB debugging, because the C-Spy debuger is a proptietary technology, which has not the public datasheets.
Upvotes: 0
Reputation: 14328
Yes, the extension politoleo.iar is indeed NOT good.
-> I found a better one (will try it in future by myself):
pluyckx.iar-vsc
Technical Note
Enjoy it !
Upvotes: 1
Reputation: 1
What I did is setting some environment variables in settings.json; then in tasks.json I created shell tasks that call the IarBuild.exe & IarIdePm.exe with appropriate values (see the documentation on the command line options)...
So now, I can use VSCode for navigation & editing, but the compilation is done by the EWARM.
The only thing that I haven't figure out yet is how to make C-Spy work from within VSCode...
Currently when I want to debug, I just launch the EWARM and debug from there...
here is a screenshot:Screenshot of settings.json and tasks.json
Upvotes: 0