This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nordic nrf51822 project templates for Eclipse

Following along after my nrfjprog mini-tool for OS X, I've just released a plugin for Eclipse which exposes a template for setting up projects with the right settings for Eclipse native building (i.e. no Makefile).

My plugin builds on the GNU ARM Eclipse plugin which improves Eclipse support for the GNU ARM toolchain immeasurably. That plugin comes with some templates for other boards, mine adds the nrf51822 templates. You can make a template for the 256kB or 128kB devices, with or without softdevice and you get a simple blinky project which you can then edit as you like.

The plugin requires that you have some version of the nrf51 SDK on your machine and you specify the location when you create the project. This was necessary so as not to include Nordic files and also not be tied to one SDK.

The project is at sourceforge.net/.../, the installation instructions are on the Wiki.

I believe the generated project settings give the same compilation steps and flags as the gcc Makefiles and the samples work on my devices. If someone finds discrepancies please tell me and I'll improve it.

  • Really well done, great job.

    -c

  • Thanks - this one was me standing on the shoulders of giants, 95% of the work is in that super GNU ARM Eclipse plugin, I mostly had to figure out the settings and copy.

    If I could afford the JLink SDK, I could now I think write a much better version of the 'studio clone for OSX'.

  • Thanks RK. Was scratching my head how to get the .C into Eclipse after importing the projects from nRF SDK.

    Now that with the plugins I can see everything is done for me, with proper src/ folder and Makefile.

    Thanks!

  • I do #include "simple_uart.h" it gives me undefined reference to `simple_uart_config' error

    why #include "nrf_delay.h" is ok

    but I can't include files? in uVision, I need to add the src to the build, how's eclipse? what should I do?

1 2