Skip to main content
Version: 5 LTS

Torizon Application Development With Visual Studio

Introduction

Visual Studio is an IDE for Windows. Toradex provides the Visual Studio Extension for Torizon to make your development life easier.

Resources

Browse for Visual Studio on Torizon resources from the tabs below.

Requirements

Everything you need is a Computer on Module with Torizon installed and a Windows desktop PC for development. You must have the Windows Subsystem for Linux 2 (WSL2) and Docker Desktop installed and configured.

How to Start

Following our Step-by-step Quickstart Guide for fully supported modules is the easiest way to get you set up in no time.

Alternatively, you can follow the instructions below if you prefer a summarized version. This is only recommended if you have some knowledge of Torizon and Visual Studio.

Installation

Install Visual Studio 2019 and the following workloads:

  • Desktop development with C++
  • Linux development with C++

Install workload - Desktop development with C++

Install workload - Linux development with C++

Install the Visual Studio Extension for Torizon:

The latest versions of the Toradex Torizon Support extension can be found on the Visual Studio marketplace, in two versions:

Close all running instances of Visual Studio. Choose one of Torizon extensions from the above, download and install it.

tip

The extension is available for Visual Studio 2019 only!

Check that the installation was successful by opening the extension list under Extensions > Manage Extensions:

Torizon Extension for Visual Studio

Add a Target Device

In Visual Studio, go to View > Other Windows > Torizon devices and add a target device from either the network or the serial port:

Torizon Devices Window

The board will reboot once you add it.

Download the Base SDK and Containers

Select Tools > Download/update base and sdk containers:

Download Base and SDK Containers

info

this operation may take some time, especially if you create a new C/C++ project. This is due to the download of the SDK.

Create an Application From a Template

Enable the Torizon toolbar on Visual Studio selecting Tools > Customize, scroll down the list, select "Torizon Toolbar" and hit Close:

Torizon Toolbar

Create a New Project and select Torizon C/C++ Application from the Visual C++ category:

New Project Dialog

Make sure to mark the checkbox Place solution and project in the same directory:

Configure Your New Project

Deploy and Debug

Either choose Debug > Deploy and debug Torizon or click on Deploy and Debug Torizon Application on the Torizon Toolbar:

Deploy and Debug

Additional Resources

Proceed to the Documentation tab on this page.



Send Feedback!