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

Using nRF SDK with EmBitz (EmBlocks)

Hello there,

I've been trying to use embitz (the new version of emblocks) to program a nRF5188 but i always fail to compile the "ble_peripheral_hrs" exemple, i'm always missing header files that are not present in the SDK zip.

  • I downloaded the SDK11 zip file and the ble_hrs exemple from the github
  • i managed to compile it with the make file.
  • i use softdevice 130 v2.0.1 with embitz

So i create a new nRF51 project with embitz, it auto generate the header files and a source file from the softdevice. Then i add the reference to all the SDK files AND the source files from the ble_hrs exemple.

When i try to build with the constant "CUSTOM_BOARD" defined i got the message that "ant_parameters.h" is missing,but this file is not present in the SDK...

Am i missing some basic configuration point or uses of the SDK ?

Thanks, Arthur

  • Hi,

    Is this specific to that project only or are you experiencing this accross multiple projects that you download from github? Is it possible that the include architecture for embitz is different, meaning that you actually are missing the file indicated by the error? Since it compiles with make I expect this to be specific to the IDE.

    ant_parameters.h is present in nRF5_SDK_11.0.0_89a8197\components\softdevice\s212\headers

  • Thanx for the response,

    i tried the blinky example to make it simple, same error... I just re-downloaded the SDK11_89a8197, no "ant_aparameters" in the S212\headers folder :)

    I suspect embitz tries to compile files that is not needed for the project..

    I found the missing files online "ant_parameters.h" and "ant_interface.h" but know i got missing struct definition...

    i'm gonna read the manual of embitz i guess..

  • This text is as the top of main for all of the ANT examples in the SDK

     *
     * Before compiling this example for NRF52, complete the following steps:
     * - Download the S212 SoftDevice from <a href="www.thisisant.com/.../nrf52832" target="_blank">thisisant.com</a>.
     * - Extract the downloaded zip file and copy the S212 SoftDevice headers to <tt>\<InstallFolder\>/components/softdevice/s212/headers</tt>.
     * If you are using Keil packs, copy the files into a @c headers folder in your example folder.
     * - Make sure that @ref ANT_LICENSE_KEY in @c nrf_sdm.h is uncommented.
     */
    

    However the ant folders should not be included in non ant projects, which makes it very odd that you get that error.

Related