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

Create new project in Eclipse

Hello. I'm trying to create a new project or open existing examples with eclipse.

I tried to import "Existing code as Makefile project" and File->New->Makefile Project with existing code.

Then I opened the armgcc folder from a random example.

The only files they open is just what the folder armgcc has. I can't see the source files. Only the makefile and the ld script.

I can build the project but I can't view the source files that are inside the SDK.

Am I missing something?

Also I was looking for a generic linker script into the SDK and found the nrf52832_xxaa.ld which includes the nrf_common.ld

Do I have to add both of them in eclipse?

Parents
  • Hello,

    Our nRF5 SDK does not include project files for Eclipse, which means you have to add the source files from the Makefile manually. I would instead recommend you to use Segger embedded Studio (product page). It's free to use and it also has cross-platform support.

    Also I was looking for a generic linker script into the SDK and found the nrf52832_xxaa.ld which includes the nrf_common.ld

    Do I have to add both of them in eclipse?

    Eclipse will not use the linker script when you set up Makefile project. The linker script will be invoked by the Makefile.

Reply
  • Hello,

    Our nRF5 SDK does not include project files for Eclipse, which means you have to add the source files from the Makefile manually. I would instead recommend you to use Segger embedded Studio (product page). It's free to use and it also has cross-platform support.

    Also I was looking for a generic linker script into the SDK and found the nrf52832_xxaa.ld which includes the nrf_common.ld

    Do I have to add both of them in eclipse?

    Eclipse will not use the linker script when you set up Makefile project. The linker script will be invoked by the Makefile.

Children
Related