Re: Regarding issue in cmake build of hci_uart module

Anupam Roy

Hello Lawrence & Jamie,

 After 'west' update, nrfx.h file is available in <zephyr project directory>/modules/hal/nordic/nrfx dir & also CMAKE build got successful!

Thank You very much for your help~



-Anupam Roy


--------- Original Message ---------

Sender : Lawrence King <lawrence.king@...>

Date : 2020-09-11 18:30 (GMT+5:30)

Title : Re: [Zephyr-devel] Regarding issue in cmake build of hci_uart module


Which version of Zephyr are you trying to build? Run ‘git branch’ to find out. The newer versions of Zephyr require Zephyr SDK newer than v0.11.1


Also did you do a ‘west update’? this is required to pull in the right versions of the hal to match the version of Zephyr you have checked out.


Lawrence King

Principal Developer



From: devel@... <devel@...> On Behalf Of lairdjm
Sent: Friday, September 11, 2020 2:21 AM
To: anupam.r@...; zephyr-devel@...
Cc: AMIT KUMAR JAISWAL <amit.jaiswal@...>; Nitin Jhanwar <nitin.j@...>
Subject: Re: [Zephyr-devel] Regarding issue in cmake build of hci_uart module


Hi Anupam,

Is west in your path, if you type ‘west’ from the command line does it run? If not then it needs adding to the path. If you go to the $zephyr/../modules/hal/nordic/nrfx folder, does the folder exist and is nrfx.h in that folder?




From: devel@... <devel@...> On Behalf Of Anupam Roy via
Sent: 11 September 2020 06:38
To: zephyr-devel@...
Cc: AMIT KUMAR JAISWAL <amit.jaiswal@...>; Nitin Jhanwar <nitin.j@...>
Subject: [Zephyr-devel] Regarding issue in cmake build of hci_uart module


EXTERNAL EMAIL: Be careful with attachments and links.

Hello Zephyr Developers,

 Presently, I am trying to do CMAKE build of  $zephyr/zephyr/samples/bluetooth/hci_uart/ for my nRF52840 BLE Controller (dongle).

Board config was set as follows.

cmake -DBOARD=nrf52840dongle_nrf52840 ..


After setting board config, I am facing build fail due to missing nrfx.h file.

Any insight or clue for resolving this problem will be really helpful. Thank You very much!


Following is the compilation log snippet.

 [  9%] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
In file included from /home/sri/work/code/zephyr/zephyr/include/arch/arm/aarch32/cortex_m/cmsis.h:17,
            from <zephyr project directory>/zephyr/include/arch/arm/aarch32/cortex_m/mpu/arm_mpu_v7m.h:10,
                 from <zephyr project directory>/zephyr/include/arch/arm/aarch32/cortex_m/mpu/arm_mpu.h:13,
                 from <zephyr project directory>/zephyr/include/arch/arm/aarch32/arch.h:186,
                 from <zephyr project directory>/zephyr/include/arch/cpu.h:19,
                 from <zephyr project directory>/zephyr/include/kernel_includes.h:38,
                 from <zephyr project directory>/zephyr/include/kernel.h:17,
                 from <zephyr project directory>/zephyr/arch/arm/core/offsets/offsets_aarch32
from <zephyr project directory>/zephyr/arch/arm/core/offsets/offsets.c:12:
<zephyr project directory>/zephyr/soc/arm/nordic_nrf/nrf52/soc.h:16:10: fatal error: nrfx.h: No such file or directory
   16 | #include <nrfx.h>
      |          ^~~~~~~~
compilation terminated.
zephyr/CMakeFiles/offsets.dir/build.make:81: recipe for target 'zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj' failed
make[2]: *** [zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj] Error 1
CMakeFiles/Makefile2:1963: recipe for target 'zephyr/CMakeFiles/offsets.dir/all' failed
make[1]: *** [zephyr/CMakeFiles/offsets.dir/all] Error 2
Makefile:102: recipe for target 'all' failed
make: *** [all] Error 2


Note: I am using Zephyr SDK v0.11.1



-Anupam Roy

Join to automatically receive all group messages.