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

Missing header files for zephyr hci_uart example in Linux

Hello.

I have nRF51822 and nRF52832 boards.

I can use both to capture BLE frames with Wireshark on Linux, and I test that with RACCOON also to capture traffic in terminal mode.

But my goad now , is to setup one of nRF boards on raspberrypi not USB, I want to make the nRF board attachable with hciattack command ,

then I can use many tools with hci1 (example) of nRF , like tcpdump, hcitool, tshark, ...

I found the zephyr project and I found the hci_uart example that the nRF can be flashed with the final hex file generated with that example, and then the nRF can be attached.

I followed this tuto : nRFsupport-zephyr

I installed all zephyr requirements and the zephyr SDK.

What I did is : 

  1. Set environments as mentionned in tuto
  2. Set source
  3. Clone zephyr repo from github

When I try to make a hci_uart example, I run "cmake -DBOARD=nrf52_pca10040 .." (I have NRF52832 PCA10040 board) it's okay, but when I execute "make" , some .h files are missing, 

and those files exist in nRFSDK from the nordic official website, because when I copy the nrf.h missing file from nRF SDK to the failed location in make command,  it pass to another missing file, and so on . 

So the idea is how to include all nRF SDK headers to zephyr ? , or what can I do to make a hci_uart hex for nRF ?

And if any one has nrf51_pca10028 or nrf52_pca10040 hex from the hci_uart example, please share it so I can flash the board and try to attach.

Please help me. Need this so urgent.

Parents Reply Children
  • I did every thing : 

    1. Download and install zephyr SDK

    2. Clone every git I found 

    3. Install all requirements mentionned here : zephyr-doc-linux

    4. Follow every step in this tuto that you told me: guide-zephyr

    5. When I try to make a hci_uart sample : 

    6. I even installed emStudio and set up every thing it needs :

    7. When I build same fail show up:

    I have no problem with zephyr , but I think the problem is the nRF SDK must be installed so .h files will be found in system include. 

    How can I fix that , guide me please .

  • The nRF Connect SDK is developed for the nRF9160, and not the nRF52840. This is exaplined in the NCS disclaimer:
    nRF Connect SDK supports development with nRF9160 Cellular IoT devices. It contains references and code for Bluetooth Low Energy devices in the nRF52 Series, though development on these devices is not currently supported with the nRF Connect SDK.


    As mentioned in the previous post, Nordic Semi does not give support for NCS (including Zephyr) on the nRF52840. That support has to through the Zephyr mailing list or join the #zephyrproject IRC channel.

  • Please make me understand , in zephyr tuto , it say that nRF52832 and nRF51820 are supported , and even in the example they use the board nrf52_pca10040 just like mine and they build the hex file , 

    I tried every thing , on linux when i build 'nrf.h not found' 

    on windows with 2 methods : with SEGGER and with west .

    1. SEGGER: 

    I import all the example files : 

    When I build : 

    With west , I set up every thing , installed all requirements , all environment variables are good to go , but when I run the west command : 

    In zephyr tuto : here  they used the same board and same steps : 

    nrf.h and all .h files are exist in NRF SDK , how can I fix this ?

    Or please can you run the example on that board and give me the hex so I just flash it and continue working on ?? , I'm stuck here for a week now.

    Please help.

  • Thanks for providing the information. I've talked to Carles, the author of the tutorial, and he says the tutorial is outdated (22 Dec 2016). Following the tutorial, you are cloning the Zephyr-project repository. This supports Nordic Semi devices, however, Nordic Semiconductor does not give support for the Zephyr-project. 

    Please contact the Zephyr community, they will be able to provide better support. Community support is provided via mailing lists and Slack; see the Resources in the bottom of the link above.

    Sorry for the inconvenience! 

  • If you use Slack community, https://zephyrproject.slack.com, then you can contact Carles (carlesc) directly on the #general channel.

Related