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

Cannot open imported project in Eclipse

Hello everybody,

I am a newbie, and I tried to follow this tutorial to set up my laptop for development.

Everything works until I went to the step "Import existing Eclipse project to workspace". I can import the blinky example, but I cannot open the main.c, it said "File not found: /blinky_blank_pca10040/Application/main.c.", also the other files have the same problem except the "makefile" and the "blinky_gcc_nrf52.ld". if I try to build the project, the result is shown in the picture. image description image description

I wonder whether the path of the project is wrong or not? But if I put "makefile" and "blinky_gcc_nrf52.ld" right under the "armgcc" folder, Eclipse will detect no project.

All the things I am using are the latest version.

So, could you guys give me some hints to solve this problem? Thanks!

Best regards

Tong

  • You also need to be careful in your project whether a file (such as the Makefile) is a linked resource or a copy. If you right click on the resource and choose Properties, it will tell you whether it is a linked resource. I think you can edit a linked resource, and then you would be changing the file in the SDK's directory. You might want to convert the linked resource to a local file.

  • Thanks for the constructive advice, I will try modifying the Makefile as you said. by the way. I think I find the reason why the Eclipse cannot detect the project. Because I can only see the "makefile" and the "blinky_gcc_nrf52.ld" in OS X, but actually there are ".cproject" and ".project" also, I know that because I unzipped the attachment in windows, that why Eclipse cannot detect the project.

  • Hi,

    .cproject, .project, Makefile and .ld needs to be located in armgcc folder so that the makefile paths corresponds with the folder structure of the SDK. Note that "." files are not shown by default on OSX so you need to show hidden files to see the .project and .cproject files.

  • You might want to convert the linked resource to a local file.

    And how would one do that?

Related