HomeAbout me

Configure debugging environment for ARM in Ubuntu with Eclipse

Next article is how to configure SEGGER's J-Link debugger to debug the NuttX OS from Eclipse.  Here I'm going to describe the it using The J-Link hardware debugging Eclipse plug-in. I nevver tried the other options so I don't pretend this is the best but it works for so far. The configuration is done in Linux 14.04 environment.

You can check first these articles:

Install and configure NuttX ARM build environment in Linux

Building NuttX in Eclipse (Ubuntu)

 

1. Install the GDB for ARM

sudo apt-get -o Dpkg::Options::="--force-overwrite" install gdb-arm-none-eabi

Force is needed if you have a GDB for x86 installed.

For Windows users you need to install the GDB from the MinGW:
http://www.mingw.org/

 

2. Install the J-Link hardware debugging Eclipse plug-in.

So you need to go to Help -> Install New Software... and will see the dialog as shown below.

 

Click on the Add button to open the Add Repository dialog.

Here for Name you can enterwhatever you want. I used GNU ARM Eclipse Plug-ins.

For Location enter http://gnuarmeclipse.sourceforge.net/updates

 Click OK. Then select the repository that just created and select to install all of the components that you need. I installed all of them.

 

 

Install SEGGER J-Link GDB server software.

Here is the official page from Segger: http://segger.com/jlink-gdb-server.html

And here is their download page: http://segger.com/jlink-software.html

 

 

Open the Debug configurations.

You can do this from the menu Run -> Debug Configurations.... Click on the GDB SEGGER J-Link Debugging and after that click on the New icon and a multi-tab configuration window will be displayed.

 First tab is Main and here you can configure the application and the project. For me the project was alredy filled so I had to add just the applicaion. Put there nuttx since that is the .elf file even it is without the extension.

 

Second tab is the Debugger. Here we configure the device first. In my case it is ATSAM4E16C. Also selected the Initial speed to be Auto but you can keep it to fixed if you prefer. Very important in my configuration was to change the Executable from ${cross_prefix}gdb${cross_suffix} to ${cross_prefix}arm-none-eabi-gdb${cross_suffix}.  Now it is using the correct gdb version.

In the Executablefield you can see that there are some variables used. If you don't have them configured you need to do this. On my machine they were with correct values.

jlink_path = /usr/bin

jlink_gdb_server = JLinkGDBServer

 

You can keep your initial Low speed speed to what it is. I changed mine to 1000 kHz.

Also wanted to have a console for the GDB client so checked this check box too.

 

 

 

Source tab is unchanged.

 

And finally the Common tab.

Here you need to select Shared file.

 

After all of the steps are done you need to click on Apply button to save them. You can click now on debug to start the debugging.

 

Comments   

0 #3 transponder keys 2017-05-07 20:36
You are so awesome! I do not believe I've truly read through anything like that before.

So nice to discover somebody with original thoughts on this
subject matter. Seriously.. thanks for starting this
up. This website is one thing that's needed on the web, someone with a little originality!


my web page - transponder keys: http://www.tc.faa.gov/content/leaving.asp?extlink=http://www.locksmithservice.us.com/
Quote
0 #2 Google Nexus 2017-04-24 21:20
Thiѕ may be a little behind some off the higher speed top end phones availablе but nonethᥱless ample for any device like this then wnen you
actual load a title for tthe X7 there is absoluteⅼy no noticeable lag wҺen playing ɑnd games load rapidly indeed.
Blⲟgs ɑlso list the smartphone ranking of human smartphones ѕo that people might didcover which
phone is now probably the most popular. Onee thing you need to remembᥱr before recording viideo would be tto position the device hoгizontally.


Visit my web-site ... Google Nexus: http://risuki.com/?option=com_k2&view=itemlist&task=user&id=1532175
Quote
0 #1 Www.Vlol.tv 2017-01-30 12:35
Howdy just wanted to give you a quick heads up and let you know a few
of the pictures aren't loading properly. I'm
not sure why but I think its a linking issue. I've tried it in two different internet browsers and both show the
same outcome.

Have a look at my web site: Www.Vlol.tv: http://www.vlol.tv/members/profile/1791970/EduardoRawl
Quote

Add comment


Security code
Refresh

Configure debugging environment for ARM in Ubuntu ...
Configure debugging environment for ARM in Ubuntu with Eclipse

Next article is how to configure SEGGER's J-Link debugger to debug the NuttX OS from Eclipse.  Here I'm going to describe the it using The J-Link hardware debugging Eclipse plug-in. [ ... ]

Building NuttX in Eclipse (Ubuntu)
Building NuttX in Eclipse (Ubuntu)

For me personally is more convenient to build the code directly from the IDE where I'm editing it so here is an article how to configure building of NuttX from Eclipse. I'm configuring [ ... ]

Install and configure NuttX ARM build environment ...
Install and configure NuttX ARM build environment in Linux

In this manual will see how to install and configure all the tools needed to build NuttX for ARM under Linux. The toolchain is the one comming with the Ubuntu itself (at least with the [ ... ]

Time Tracker
Time Tracker

Time Tracker is a tool to track the time that was spent for some task and how much this time costs. Features:
   - Set the complementary time
   - Set the rate per [ ... ]

LTC: LKjqX7NipWXyPEkt3L3AwiRuCaw7h1hXLw
BTC: 1ApxQc2j4Wz3N7ei4XwYFTh6t4CeYMzbzZ

Go to top