Skip to content

Project for testing cross-compilation and remote-debugging of assembler code for the RaspberryPi

Notifications You must be signed in to change notification settings

plt-tud/MRT1-AS_00_Hallo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MRT1-AS_00_Hallo

Preparations

To be able to easily use this project, the MRT-Environment must be set up first. Please clone it from its own repository (git clone https://github.com/plt-tud/MRT-Environment-Setup.git) and execute the installer script before continuing with this tutorial.

Compiling the project

The project is compiled using a makefile. To be able to compile, the $P variable in Makefile must point to the directory with the arm cross-compilation tools. This should already be the case if the workspace is located inside the MRT-Environment folder. Otherwise, please adjust it.

Remote debugging

Before this project can be debugged remotely, you need to do some preparations:

Step 1: Prepare the Raspberry Pi

Create the path /home/pi/remote-debugging/ on the RapberryPi. mkdir /home/pi/remote-debugging/ && chmod 777 /home/pi/remote-debugging/

Step 2: Create the remote system connection

This only needs to be done if the connection hasn't been created before. Note: the Raspberry Pi must be on the same network (try pinging it using the ping command from a console to verify).

  • In the eclipse menu, open Window/Open Perspective/Other....
  • select Remote System Explorer (RSE).
  • Open the RSE perspective (upper right corner).
  • Define a connection to a remote system (first icon in the left panel).
  • In the new conncection assistant select SSH Only.
  • Press Next and enter the IP-address of you Raspberry Pi in the Host field.
  • In the Name field enter e.g. 'RemoteRPI'.
  • Switch back to the C/C++ perspective.

Step 3: Configure the run configuration

  • In the Eclipse menu, open Run/Debug Configurations....
  • Select the HelloAssembler Auto Remote Debug configuration.
  • On the Main tab, in the Connection: field, choose the just created connection.

Step 4: Start remote debugging

From the bug icon drop-down in the toolbar select HelloAssembler Auto Remote Debug.

About

Project for testing cross-compilation and remote-debugging of assembler code for the RaspberryPi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published