This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Eclipse example project nRF52

Hi

I tried following the eclipse installation tutorial: devzone.nordicsemi.com/.../ And after a while I got eclipse to handle the Nordic stuff, but when I try to import a project there is no armcc folder in my SDK. I tried loading an existing project and then manually adding all of the sources. It does recognize all of the imported header files, but nothing actually matches up. I have 124 errors, everything that is not pure C is an error. I tried to find an example project for eclipse that I could try importing but I found none. Does anyone have at least a blinky project that I can directly import into eclipse from a archived file or something like that? I'm not sure if its just the project broken, or I messed up the installation, or some version of something changed which affected the installation.

  • I downloaded it from the how to get started guide a while ago, but since then I updated the files with the latest version.

  • The instructions in the answer are for an example project from the tutorial written by Nordic. Those examples use a Makefile constructed by Nordic, that you might need to modify unless you follow the tutorial exactly with respect to what directory and name you downloaded the SDK to.

    It appears that you downloaded a different example project, one from my Github repository. That example does not have a Makefile since Eclipse is smart and "manages the build" that is knows what the source files are, the dependencies between them, and how to link them together. But for that example, some of the paths to the SDK are described in the Properties of the Eclipse project. Thus you must learn how to use the Properties dialog of Eclipse.

    You should choose a strategy: 1. use a Nordic example and learn to modify Makefiles, or 2. use my example and learn how to use Eclipse Properties dialog.

  • @butch, having used eclipse properties extensively with software projects but never with embedded, I am looking for any information on setting up the Eclipse properties, as this is a much more ideal solution. Could you recommend a specific resource for learning about setting up the properties for GNU ARM and gcc?

  • You might try importing (into Eclipse) one of my projects on Github, and browsing the Properties of the project. The projects use Eclipse managed build (not manual Makefiles.) I don't think they are too peculiar or have too much cruft. Not saying they will build and run, just display their properties. mcuoneclipse and bitknitting are other resources. I don't know of a very specific tutorial. Search for "Nordic Eclipse managed make"

Related