Closed zero-pytagoras closed 11 months ago
Hi @zero-pytagoras! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
It compiles fine for me. I suggest you follow this guide for setting up your enviroment and trying again.
https://docs.zephyrproject.org/latest/develop/getting_started/index.html
Hi @Ballen7 Reinstalled the toolchain and sdk several times, still getting the error:
west build -p always -b nrf52840_mdk samples/basic/blinky
-- west build: making build dir /home/asch/Projects/zephyrproject/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/asch/Projects/zephyrproject/samples/basic/blinky
-- CMake version: 3.27.7
-- Found Python3: /home/asch/Projects/zephyrproject/.venv/bin/python3 (found suitable version "3.11.2", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/asch/.cache/zephyr
-- Zephyr version: 3.5.99 (/home/asch/Projects/zephyrproject/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840_mdk
-- Found toolchain: gnuarmemb (/home/asch/zephyr-sdk-0.16.4)
CMake Error at /home/asch/Projects/zephyrproject/zephyr/cmake/compiler/gcc/generic.cmake:9 (message):
Zephyr was unable to find the toolchain. Is the environment misconfigured?
User-configuration:
ZEPHYR_TOOLCHAIN_VARIANT: gnuarmemb
Internal variables:
CROSS_COMPILE: /home/asch/zephyr-sdk-0.16.4/bin/arm-none-eabi-
TOOLCHAIN_HOME: /home/asch/zephyr-sdk-0.16.4
Call Stack (most recent call first):
/home/asch/Projects/zephyrproject/zephyr/cmake/modules/FindHostTools.cmake:107 (include)
/home/asch/Projects/zephyrproject/zephyr/cmake/modules/dts.cmake:9 (find_package)
/home/asch/Projects/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
/home/asch/Projects/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/asch/Projects/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/asch/Projects/zephyrproject/.venv/bin/python3 -B/home/asch/Projects/zephyrproject/build -GNinja -DBOARD=nrf52840_mdk -S/home/asch/Projects/zephyrproject/samples/basic/blinky
Why have you set it to gnuarmemb
?
I didn't - it sets it by its own way. I've completely reinstalled the system and followed the tutorial mentioned above
I didn't - it sets it by its own way. I've completely reinstalled the system and followed the tutorial mentioned above
It does not, a warning would be shown in your configure log if it was not set:
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
To use gnuarmemb
means you have set both ZEPHYR_TOOLCHAIN_VARIANT
and GNUARMEMB_TOOLCHAIN_PATH
Sense it is a Nordic chip you need to use ncs not zephyr ....
west init -m https://github.com/nrfconnect/sdk-nrf.git --mr main ~/ncs
cd ~/ncs
west update
cd ~/ncs/zephyr/samples/bluetooth/hci_usb/
west build -b nrf52840_mdk
Hi @Ballen7, Thanks - it worked like a charm ... Appreciate your help !!! Mind suggesting how can I fix the MAC address issue ?
$ hcitool dev
Devices:
hci1 00:00:00:00:00:00
hci0 7C:B5:66:65:CE:52
@zero-pytagoras What OS are you trying to use it with? On Ubuntu it gets recongized it right away for me.
@Ballen7 Debian12, and i am testing it also on arm device with debian9. on my laptop, where i compile and flash, it shows the device and even can be used with bluetoothctl, but the mac is still zeros. on other device it registers the usb, but claims it as nameless and bluetooth don't recognizes the arm device.
Describe the bug I am trying to use nRF52840-MDK as usb dongle and was suggested to use sample bluetooth project in this repo to create hex file and deploy to the board. I have setup dev environment and installed dependencies, yet it is failing with : -- Configuring incomplete, errors occurred!
To Reproduce Steps to reproduce the behavior:
Expected behavior get Ninja file
Impact not able to use the device
Logs and console output added to prj.conf these:
but no logs are generated Yet here is the
cmake
outputEnvironment (please complete the following information):
Additional context I am trying to use nrf52840 as usb dongle for bluetooth5 BLE long range communication. one of nordic community forum chains suggested to use hci_usb as use case