Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 2.49 KB

3_CPP.md

File metadata and controls

51 lines (39 loc) · 2.49 KB

back

Debugging C++ applications remotely

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 ARMv7A. Visual Studio can use the gdb-Server and SSHfor 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:

Alt text

Installing Microsoft Visual Studio for Linux development

  1. Download one Version of Microsoft Visual Studio 2019 for Windows
  2. Follow the Visual Studio installer and include "Linux Development for C++" as workload to your installation Alt text
  3. Finish the installation

Creating a new Linux project

  1. Open Mirosoft Visual Studio 2019 and Create a new project
  2. Select as language "C++" and platform "Linux" and choose "Console App" Alt text
  3. Press "next and give your project a name
  4. A new Visual Studio Solution should appear with a getting started guide
  5. This Guide shows how to configure the connection of the remote Linux machine
  6. Please follow this instructions with this 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, click there the "Remove"-Button and then "Add"
  7. At this point the Visual Studio is ready for Linux C++ development

Alt text

Known Issues with Visual Studio and Linux

  • Read the console output only and ingnore the error windows
  • Ingore the "rysnc could not start error" (rsync is installed properly)
  • After issues try to clean and rebuild the solution

Getting Started- and in-depth Demos

  • Interact with the HPS Hard-IP
  • Interact with FPGA Soft-IP
  • Available here

Continue with the next level: Debugging Python applications remotely