Generates ready-to-use Visual Studio Code configurations for IAR Embedded Workbench projects (.ewp).
The extension reads projects and their build configurations directly, then creates .vscode/tasks.json, .vscode/launch.json, and .vscode/iar-vsc.json.
Features
Detects IAR projects in the opened workspace.
Detects the actual IAR workspace (.eww) by its contents; the filename is unrestricted.
Lets you select individual IAR build configurations.
Generates build, flash, debug, and attach actions.
Adds a generation button to the IAR Build project view.
Uses the toolchain currently selected in the official IAR Build extension.
Supports STM32L4, STM32F4, STM32F1, and STM32F0 families.
Can generate configuration automatically when a project is opened for the first time.
Requirements
Windows.
IAR Embedded Workbench for Arm.
Python 3 with the Windows py launcher.
The official IAR Build and IAR C-SPY Debug extensions for Visual Studio Code.
Usage
Open a folder containing one or more .ewp files.
Run IAR Build: Regenerate VS Code Build/Flash/Debug Files from the Command Palette, or press the tools button in the IAR Build project view.
Select the required IAR configurations.
Select the actions to generate.
Existing generated files are replaced only after confirmation. Automatic generation runs only when no generated VS Code configuration exists.
Settings
iarAutoConfig.generateOnOpen: enable automatic generation for a new workspace.
iarAutoConfig.iarPath: fallback installation path used only when IAR Build has no selected toolchain.
When multiple IAR installations are available, select the required one with
IAR Build: Select Toolchain. Generated build, flash, debug, and attach
configurations will use that same installation.
Supported actions
Build + Flash + Debug
Build + Flash without debugging
Attach without flashing
Known limitations
The extension currently targets IAR Embedded Workbench for Arm projects on Windows. Device and flash-loader information is derived from the IAR project files and installed IAR configuration files.