
Using Visual Studio for embedded development So, in three commands we have cloned our embedded project, installed vcpkg, acquired and activated the necessary tools for building the project.
#Visual studio 2022 arm install
Running the vcpkg activate command will use this file to determine if I have those tools, install them if I do not, then activate them in my environment for use.


#Visual studio 2022 arm how to
See the vcpkg artifacts post for details on how to create your own manifest. This manifest file was created with vcpkg and has recorded the tools you need to build and debug this project. In the project folder, there is a file vcpkg_configuration.json. Navigate to the subfolder for the board you are using, here I’m using the Azure IoT DevKit. This sample will serve as our example project for the remainder of this post. In a future release this will be integrated into Visual Studio for a more seamless experience.įrom a PowerShell prompt, clone the Azure RTOS getting started repo. Today we’ll demonstrate using vcpkg from a PowerShell prompt to activate our embedded development environment. This is where the new artifact capabilities in vcpkg can help us. It is not uncommon to have different compilers used for different projects, custom debug tools, etc. One of the challenges in embedded development is getting the tools necessary installed and configured. The components you need are selected by default. To get started install the latest preview release of Visual Studio 2022 and select the Linux and embedded development with C++ workload. The techniques used for interacting with these boards should be applicable to other targets by changing configuration information.

We have dedicated pages for Visual Studio usage in the getting started guides for the Azure IoT DevKit, NXP 1060, and STMicro STM32L4_L4+ boards. We will demonstrate all of this with an Azure RTOS ThreadX project.Īzure RTOS ThreadX is a widely used Real Time Operating System (RTOS) used on billions of microcontrollers (MCUs) in products around the world. In this post we will walk you through Visual Studio installation of the embedded workload, how to acquire embedded tool dependencies with vcpkg, then demonstrate edit, build, deploy, and debugging directly in Visual Studio with new peripheral register and RTOS object views. Used in conjunction with the new vcpkg artifact capabilities you can quickly bootstrap an embedded development machine and get started. We are happy to announce that we have added new embedded development capabilities to Visual Studio 2022 Preview.
