In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "how to use VSCode to compile a Keil project", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to compile a Keil project using VSCode.
VSCode, whose full name is Visual Studio Code, is a lightweight code editor released by Microsoft, which is free and powerful. Support a variety of plug-ins, support almost all mainstream programming languages syntax highlighting, code automatic completion, parenthesis matching and so on.
Keil is an excellent embedded development software for editing and compiling, but the function of its editor has been relatively weak and has been criticized by many users. This article will introduce the use of VSCode instead of Keil to achieve single-chip microcomputer program editing and compilation.
The first step is to install Keil and VSCode software. The installation process is not described in detail.
When the installation is complete, open VSCode and install the two plug-ins. First, install the plug-in Candlestick +. As shown below:
Then install Keil Assistant, and the assistant will create a new .vscode folder in Keil's project directory and add related files so that the project can be recognized by the VSCode software.
Click Settings after the installation is complete, and under the Extension Settings menu, set the Keil installation path. (here is to set Keil MDK, if it is Keil C51, set it above).
After the configuration is completed, you can directly open the project file of Keil, as shown below:
When you open it, you can experience the powerful editor capabilities of VSCode, which is much easier to use than Keil itself.
By placing the mouse over the project directory, you can see the icons for compilation and download:
Compiling and downloading is the same as in Keil, because it is the compiler and download driver of the called Keil.
The deficiency is that the plug-in only supports compilation and download, does not support online debugging, and is not perfect.
There is another way to completely get rid of Keil and use VSCode to write single-chip microcomputer programs. Need to install gcc, OpenOCD and other plug-ins, configuration is also more complex, interested friends can explore their own.
At this point, I believe you have a deeper understanding of "how to compile a Keil project with VSCode". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.