Building BLE Mesh using Zephyr

Hi 

I have been able to work with the 'Lighting' demo BLE mesh application using the nRF Connect SDK with Visual Studio Code. I have even been able to add my custom board to the project and successfully been able to work with it.

I am now trying to use the sample and build my own application, however I want to use my Zephyr installation and not the nRF Connect SDK. I have been able to create a project from scratch and include the source files from the sample app. 

The problem I am facing is that Nordic build system includes another layer of code (nrf/include/bluetooth/mesh) which Zephyr does not recognize and throws errors of header files not found.

Even if I use the same build command that nRF Connect SDK uses, I get the same error message.

I guess, when you create a build configuration in visual studio, the Nordic modules are included in the build. I want to know how can I include the nordic abstraction layer in my application I am building from scratch.

Thanks

Parents
  • Hi.

    I must admit that I haven't tried this. I would recommend you using the nRF Connect SDK. Is there any reason that you don't want to use the nRF Connect SDK?

    However, I can ask internally if anyone has a solution to this.

    Br,
    Joakim

  • Hi Joakim

    Thanks for the response.

    I don't mind using the nRF Connect SDK, I think its great. The only thing I am not able to do with it, is start a new project from scratch. 

    I always have to start with a sample application, which are great to understand api calls and techniques, but need the option to start a new project (from VSCode) from scratch.

    There seems to be a middle layer (for the BLE mesh) which abstracts calls to Zephyr BLE Mesh structs and api, and I want to use it. However, building a project from scratch, the CMake dependency does not pickup on the apis from the middleware.

    I get the same errors whilst building using NCS or Zephyr. I am sure that when a new build folder is generated in VSCode + NCS, the dependency is added. That is exactly what I want to know/learn.

    Cheers

  • Thanks!

    I'll check with our developers and see if I can get some tips to get you started on a new project.

    Br,
    JOakim

Reply Children
No Data
Related