Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Visual Studio Code to build a project with IAR compiler?

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.

like image 686
Nymau Avatar asked Dec 22 '17 14:12

Nymau


People also ask

How do I import a project into IAR Workbench?

Choose File> New> Project and select Import IAR Embedded Workbench projects. Click Next and type (or browse to) the path to appropriate project/workspace file or directory. Click the Refresh button and select projects to import. Click Next and set the import destination, project contents and build configuration to use.

What is the code to open IAR project in Visual Studio?

It is possible to open the IAR Embedded Workbench IDE from VS Code, by running the iar: Open Workspace in IAR Embedded Workbench task. This will open the current project in the IDE.

How do I create a project in IAR Workbench?

Click [File]> [New Workspace] to create a new workspace and then click [Project]> [Create New Project…] to create a project file (. ewp). When a project file created, the project name is displayed in the [Workspace view] of the IAR Embedded Workbench.

How do you create a project in VS Code?

Open the "Create a new project" dialog If the Visual Studio development environment is already open, you can create a new project by choosing File > New > Project on the menu bar. You can also select the New Project button on the toolbar, or press Ctrl+Shift+N.


1 Answers

Yes, the extension politoleo.iar is indeed NOT good.

-> I found a better one (will try it in future by myself):

  • VSCode plugin: pluyckx.iar-vsc
    • IAR For Visual Studio Code - Visual Studio Marketplace
      • iar vsc plugin
  • Good document
    • Welcome to IAR-VSC’s documentation! — IAR-VSC 1.2 documentation
      • doc's Github source: pluyckx/iar-vsc
  • IAR related official Technical Note
    • Using Visual Studio Code with IAR Embedded Workbench

Enjoy it !

like image 62
crifan Avatar answered Oct 03 '22 13:10

crifan