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

Any tips importing this Eclipse/GCC project?

I've been trying to import this NRF51 Eclipse project for a few days now, but no success.

github.com/.../HomeKit

I've tried to closely follow the steps outlined in this tutorial, but it just wont compile.

devzone.nordicsemi.com/.../

The problem I run into is that Eclipse can't seem to find all the headers from the SDK. I know for sure this compiles with nRF51 SDK 9.0. But these eclipse projects dont see very portable, there are local paths with user names in the project. Any pointers would be appreciated.

Should I just start with an empty project and start adding individual source files?

  • Hi Ady,

    For any question regarding the Apple Homekit, we would need your MFI number. Please create a case on our Support Portal (MyPage section on our website) instead.

  • Have you contacted the author, Tim Wilkinson? His email address is given in his GitHub details.

    If the problem is just finding SDK headers then, surely, you can just add the appropriate include paths?

  • Oh, I did try making an issue but saw no response. Should've emailed my bad. Also, I thought this was more of a toolchain setup issue than something specific to this project. Anyway, I figured out my mistakes.

    1. I was importing the project with copy to workspace checked, which messed up the relative paths to the SDK headers.
    2. I don't really need the Eclipse build to succeed, looking at the the Console tab, I realized the .hex output was being generated.
  • Sorry, this has nothing to do with the official nRF51 HomeKit SDK. This project is meant specifically for hobbyists who don't have an MFI license.

    I kinda figured out my mistakes and now I'm able to build. Still gotta figure out how to merge the Softdevice and application together. Here are my mistakes:

    1. I was importing the project with copy to workspace checked, which messed up the relative paths to the SDK headers.
    2. I don't really need the Eclipse build to succeed, looking at the the Console tab, I realized the .hex output was being generated.

    In general I want to make this project a little easier for beginners, can something like this be imported/converted into the MBED online compiler project or perhaps even the Arduino core from RedBearLab? It'd be great to have someone try this out without having to setup ECLIPSE/gcc.

  • I tried a couple of other samples like blinky and ble_uart, I can get them to work on my BLE Nano with the S130 softdevice. This project builds but doesn't seem to show up as a bluetooth device. Is there any way I can debug this without a J-link? The BLE Nano has a MK-20 dongle, which does have a virtual serial port, can that be used as a debug port, or is there a better way to debug?

Related