Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

[VSCode] Keil integration with VSCode

The background:
I felt in love with VSCode since I have started to use it!
I have to use Keil in my job and honestly - I don't like it much.
I was trying to find a working extension to VSCode to integrate Keil's toolchain (build/rebuild/clean) and parse all errors/warnings/infos into VSCode.

The problem:
I couldn't find sufficient solution for Keil's v4 and v5 projects - so I decided to make it on my own.

The solution:
1605829450079.png


Solution is on gitlab:

There is a bunch of scripts (python and Windows' batch) that integrate Keil's project and toolchain with VSCode.
It compiles project and parses errors/warnings/infos into VSCode - that is what I wanted.

Usage
1. Copy .vscode and scripts folders into the root folder of your Keil's project (with Src, Inc and perhaps MDK-ARM subfolder).
2. Open root folder of your Keil's project by "Open with Code" context menu
3. Open Keil's project file (.uvproj or .uvprojx)
4. Run "Run Build Task..." and choose from the list "Import settings from Keil's v4 or v5 project" - that will import includes, defines and output paths for all project's targets
5. Choose Keil's project target by "C/C++: Select a Configuration..."
6. Run again "Run Build Task..." and choose desired feature, e.g. build/rebuild/clean

Available features
"Import settings from Keil's v4 or v5 project" - imports includes, defines and output paths for all project's targets
"Build by Keil" - builds Keil's project for chosen target
"ALL build by Keil" - builds Keil's project for all targets (make sure that all targets have different output paths)
"[DBG] ALL build by Keil" - builds Keil's project for targets that name starts with "[DBG]..."
"[REL] ALL build by Keil" - builds Keil's project for targets that name starts with "[REL]..."
"Rebuild by Keil" - rebuilds Keil's project for chosen target
"[DBG] ALL rebuild by Keil" - rebuilds Keil's project for targets that name starts with "[DBG]..."
"[REL] ALL rebuild by Keil" - rebuilds Keil's project for targets that name starts with "[REL]..."
"ALL rebuild by Keil" - rebuilds Keil's project for all targets (make sure that all targets have different output paths)
"ALL clean by Keil" - cleans Keil's project for all targets

------------------------------------------------------
Is this blog entry helpful or does it need an improvement?
Please leave the comment below.

Comments

There are no comments to display.
Toggle Sidebar

Part and Inventory Search

Blog entry information

Author
niciki
Views
78
Last update

More entries in Uncategorized

More entries from niciki

Top