3. Remote Debugging

3.1. RT-Linux (Visual Studio)

You may use the third party VisualGDB solution for development and debugging of RT-Linux applications using Microsoft Visual Studio.
An evaluation license can be obtained here: http://visualgdb.com/download

After installing VisualGDB restart Visual Studio to get the latest VisualGDB package updates.
The toolchain to be used can be downloaded from http://software.acontis.com/LxWin/MinGW.zip
For x64 development download the following toolchain http://software.acontis.com/LxWin/MinGw64.zip

Extract the zip file into C:\ (If you want extract into another directory, ensure there are no blanks!)

3.1.1. Create a new project

  • Start the Hypervisor, configure to run the Linux RTOS and start RT-Linux (this is described in the Quick Start Tutorial).

  • Set up network bridging and assure you can reach the RT-Linux OS from your Windows development machine. See chapter Bridge virtual and physical network for details. Alternatively you can also use network forwarding, see Network Forwarding from Windows to the RTOS

  • Start Visual Studio

  • Create a new VisualGDB project by using the Linux Project Wizard

  • Set up the project as Application and use MSBuild

  • Set the Language standard to C++

    _images/RTL-RemDbg_NewProject.jpg
  • Select Build the project locally with a cross-compiler

    _images/RTL-RemDbg_BuildLocally.jpg
  • In the Cross-toolchain field select Locate a cross-toolchain by finding its gdb.exe and select C:MinGwbini686-pc-linux-gnu-gdb.exe

  • For the 64 bit (x64) toolchain select C:MinGw64binx86_64-pc-linux-gnu-gdb.exe

  • Edit the Toolchain dialog looks like:

    _images/RTL-RemDbg_EditToolchain.jpg
  • In the New Linux Project-View, click the drop-down-field Deployment computer to create a new SSH connection

  • Assure RT-Linux is started before you create the SSH connection! As host name use the IP address of the Linux target. User name and password are both root.

    _images/RTL-RemDbg_NewSSH.jpg
  • Assure, before finishing the New Linux Project dialog looks like this:

    _images/RTL-RemDbg_FinalOverview.jpg

    Then press Finish. Accept the Mismatching environment detected message with the OK Button.

  • Now you can debug the project

3.2. On Time RTOS-32

There are separate tutorials which describe how to set up remote debugging for On Time RTOS-32.