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:


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.



0 #10 billige foldeknive 2018-07-10 16:52
Goood рost. I learn something new ɑnd challenging on websites I stumbleupon every day.

It's aways hlpful to read through content from
other authors and use a little something from their web sites.

Looҝ at my web page - billige foldeknive: https://www.amino.dk/bizz/nyttigbras_vjohn_hansen8462/vare/victorinox_lommeknive
0 #9 Goo.gl 2018-07-09 13:42
Appreciɑtion to my fatheг who informed mе on the topioc oof this wеb ѕite, this website is actually awesome.

Look at my homepage :: pocket knives online (Goo.gl: https://Goo.gl/3SDutQ)
0 #8 Robertdeerb 2018-05-06 05:37
cialis kaufen bankberweisung tadalafil generic il cialis quanto costa tadalafil 20mg
0 #7 Write My Essays 2018-02-27 04:10
research paper research papers research paper http://researchpaper.store - research paper bibliography
0 #6 couteau paracorde 2018-02-13 21:37
Boutique de couteaux en ligne : achetez les meilleurs couteaux en vente libre sur
https://www.matraque-telescopique.com/couteaux/ Livraison en 48 heures de vos couteaux
papillon et couteaux pliable, poignards, machettes, baïonettes...
0 #5 plombs tête plate 2018-02-07 03:31
Achat Pistolet a plomb pas cher sur Matraque-Telescopique.com votre
boutique armurerie en ligne spécialiste dans la vente de Pistolet CO2, pistolet à plomb,
revolver à plomb, carabine à air et à plomb...
0 #4 FirstHildred 2017-11-23 12:03
I see you don't monetize your website, don't waste your traffic, you can earn additional bucks every month because you've got hi
quality content. If you want to know how to make extra $$$, search for: Boorfe's tips best adsense alternative
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/
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
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

Add comment

Security code

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