- Regarding issue in cmake build of hci_uart module
Re: Regarding issue in cmake build of hci_uart module
toggle quoted messageShow quoted text
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?
<devel@...> On Behalf Of Anupam Roy via lists.zephyrproject.org
Sent: 11 September 2020 06:38
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.c:28,
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>
zephyr/CMakeFiles/offsets.dir/build.make:81: recipe for target 'zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj' failed
make: *** [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: *** [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
Join firstname.lastname@example.org to automatically receive all group messages.