HomeNuttXInstall and configure NuttX ARM build environment in Linux

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 this in Ubuntu 14.04. Also I assume that you already have configured the build environment for the NuttX. If you haven't you can check this first:

Install and configure NuttX ARM build environment in Linux.

NuttX

1. Download the latest Eclipse IDE for C++ developers

https://www.eclipse.org/downloads/

2. Load the NuttX into Eclipse

Select "New" and then select "Makefile Project with Existing Code'

Eclipse - New makefile project with existing source

Click "Next"

3. Point the location of the code and select the toolchain

You can "Browse" or just enter the location to your nuttx folder.

Also you need to select "GNU Autotools Toolchain"

Eclipse - Code location and toolchain selected

 

Click "Finish" and you should see the NuttX source loaded

 

4. Build the code

Right click on the project "nuttx" and select "Build Project" or click the icon as shown here

I already build the code from the menu and that's why you can see output in console.

eclipse-build-nuttx

 

5. Result

eclipse-build-complete

 

Since now we have our build set up it's time to configure the debugging:

Configure debugging environment for ARM in Ubuntu with Eclipse

Comments   

0 #3 manicure 2017-04-07 19:46
Thanks a lot for sharing this with all folks you really understand
what you are speaking approximately! Bookmarked. Kindly additionally seek advice from my website =).
We could have a link change contract between us
Quote
+2 #2 Galin Hristov 2015-03-21 09:14
In case some of the apps will be build (not only the OS) it is better to select the parent folder in step 3 (instead of “nuttx”). This way also apps code will be visible and indexed by Eclipse.

|- nuttx-code - Select this folder ...
| |-- nuttx - …. instead of this folder.
| |-- apps

Then in the project properties in "C/C++ Build" page for Build Location "${workspace_loc:/nuttx-code/nuttx}/" must be selected instead of "${workspace_loc:/nuttx-code}/"
Quote
0 #1 raman 2014-11-14 23:04
on building nuttx with eclipse i got following error, is there any glue to resove?

CC: os_start.c
make[1]: arm-nuttx-elf-gcc: Command not found
make[1]: Leaving directory `/home/raman/nuttx-dev/nuttx/sched'
make[1]: *** [os_start.o] Error 127
make: *** [sched/libsched.a] Error 2

My OS is fedora17 with arm-eclipse plugin
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