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.

  • You mentioned "And after a while I got eclipse to handle the Nordic stuff" have you managed to compile any example in our SDK ? Which project are you trying to port ? Was it in Keil or IAR or others ?

  • I did not, I could not import any project because the importing tool from eclipse never recognized any projects in the example folder. So I went the other way of trying to create a new project from exiting keil project. Then I had to create the virtual folders and link all of the files and includes manually as the tutorial stated. Once I did that eclipse recognized all of the includes, but it had no effect on the code, since all of the error remained. Then I went googling trying to find at least a blinky project that has been exported from eclipse but I could not find anything. So that is why I am asking if somebody has anything that I could import in eclipse that works so I can try fix the configuration, if that is the cause, or its just me not doing something right with my project.

  • @Dajgoro: I'm sorry that you have trouble porting to Eclipse. I think it's a typo in the tutorial, it should be ARMGCC folder, not ARMCC. There are several attached projects in the tutorial (at the end of the tutorial, before the comments), could you try ? Which SDK you are testing with ?

    Please let me know at which step, what you have on your computer doesn't match with what described in the tutorial.

  • I have several Eclipse/NRF52 projects on Github, and you can probably find others there. For example github.com/.../nRFCounter.git. However, that project does not use Makefiles as in the tutorial, but uses "Eclipse managed build" which requires more knowledge about how to use Eclipse especially the Properties of a project. Re your specific problem of importing the example project, what exact error do you get (you have only said "there is no armcc folder in my SDK.") The tutorial example uses a Makefile which defines the location of your downloaded SDK. Did you download your SDK to the exact same location as the tutorial?

  • So this is what I have: I downloaded everything as on the tutorial, and I got a folder called nRF5x_MDK_8_9_0 which inside has examples with the ARMGCC folder and inside there is the makefile, when I try to import with eclipse, and select such a folder with makefile nothing happens, as if it was empty, nothing detected. In program files (C:\Program Files (x86)\Nordic Semiconductor) there are no examples and no ARMGCC folders, I suppose the sdk is here? There is no error when importing with eclipse, because there is nothing it detects to import.

Related