Difference between revisions of "Developing Cortex M3 Applications Using Visual Studio Code"
From EdWiki
m |
m |
||
Line 30: | Line 30: | ||
==== Linker Script ==== | ==== Linker Script ==== | ||
Syntax highlighting for linker scripts | Syntax highlighting for linker scripts | ||
+ | |||
+ | === 2. ARM Build Tools === | ||
+ | ==== GNU ARM Embedded Toolchain ==== | ||
+ | [https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm GNU ARM Embedded Toolchain] is the C/C++ compiler and linker along with additional tools. It is used to turn your source code into a binary executable. | ||
+ | |||
+ | ==== CMake ==== | ||
+ | [https://cmake.org/ CMake] is a tool which turns compiler-independent project definitions into compiler-specific project definitions. [https://cmake.org/ CMake] converts these into makefiles that can be processed by the [https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm GNU ARM Embedded Toolchain]. |
Revision as of 03:10, 30 March 2022
Developing Cortex M3/M4 Applications Using Visual Studio Code
Visual Studio Code can be used to edit the source code, build the application and finally debug it.
Required Software Components
In contrast to fully integrated IDEs, setting up Visual Studio Code (short. VSCode) requires you to setup a number of software packages, which finally work together to build the complete development environment. The software packages can be split into three groups:
- VSCode and plugins
- ARM Build Tools (compiler etc.)
- Debug tools
- The packages can be installed in any order
- VSCode must be installed before VSCode plugins can be installed.
1. Visual Studio Code and Plugins
Visual Studio Code
We can look at VSCode as an intelligent text editor which provides an extensive framework to add functionality through plugins. VSCode includes a project explorer, which can show the contents of one or multiple folders as a workspace. There is more information on required plugins further down in this list.
Required Plugins
C/C++
This plugin offers many features to simplify editing of C/C++ code, including Syntax highlighting, Intellisense (finding definitions of symbols), auto-completion of keywords and identifier names, and marking syntax errors while typing.
Cortex-Debug
This plugin adds support for debugging ARM executable through a GDB Server.
ARM
Syntax highlighting for ARM assembly code
Linker Script
Syntax highlighting for linker scripts
2. ARM Build Tools
GNU ARM Embedded Toolchain
GNU ARM Embedded Toolchain is the C/C++ compiler and linker along with additional tools. It is used to turn your source code into a binary executable.
CMake
CMake is a tool which turns compiler-independent project definitions into compiler-specific project definitions. CMake converts these into makefiles that can be processed by the GNU ARM Embedded Toolchain.