This article describes how to use Microsoft Visual Studio 2019 for rsyocto C++ development.
The newer releases of Visual Studio are capable to work as embedded Linux development IDE for ARMv7-A. Visual Studio can use the gdb-Server
and SSH
for communicating with Linux.
On rsyocto all required components for Visual Studio are pre-installed.
The following illustration shows how Linux and Microsoft Visual Studio work together:
Note: Instead of using the complex Microsoft Visual Studio for C++ development and debugging is a more pleasant way with the code editor Microsoft Visual Studio Code and cmake
available.
- Download one Version of Microsoft Visual Studio 2019 for Windows
- Follow the Visual Studio installer and include "Linux Development for C++" as workload to your installation
- Finish the installation
- Open Mirosoft Visual Studio 2019 and Create a new project
- Select as language "C++" and platform "Linux" and choose "Console App"
- Press "next" and give your project a name
- A new Visual Studio Solution should appear with a getting started guide
- This Guide shows how to configure the connection of the remote Linux machine
- Please follow these instructions with these settings:
- Platform:
ARM
- Host Name:
<IPv4-Address of your Board>
- Port:
22
- User name:
root
- Authentication type:
Password
- Password:
eit
- To change the IP-Address later navigate to
Tools/Options/Cross Platform
and click theRemove
- and thenAdd
-Button
- Platform:
- At this point the Visual Studio is ready for Linux C++ development
- Read only the console output and ingnore the error windows
- Ingore the "rysnc could not start error" (rsync is installed properly)
- After any issues try to
clean and rebuild the solution
I wrote further C++ Demo Visual Studio projects to show how to
- Interact with the HPS Hard-IP
- Interact with FPGA Soft-IP
- Change the FPGA Configuration with C++
- And more...
The projects and guide is Available here.