Hello!
First of all, thank you for your support.
I'm starting to develop firmware for Nordic chips (I'm a complete newbie). I have been able to compile and download examples on my nRF 52840 DK, but when I'm trying to develop for a custom nRF52811 board, I get an error when building a sample code:
> Executing task: nRF Connect: Dynamic Build Task <
Building ble_app_uart
west build --build-dir d:\nrfsrc\nrf52811-ble-long-range-demo-master\ble_app_uart\build d:\nrfsrc\nrf52811-ble-long-range-demo-master\ble_app_uart --pristine --board nrf52840dk_nrf52811 -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="d:/nrfsrc/parche_frank_52811;d:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart" -DCONF_FILE:STRING="d:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/prj.conf"
-- west build: generating a build system
Including boilerplate (Zephyr base): D:/ncs/v1.9.1/zephyr/cmake/app/boilerplate.cmake
-- Application: D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart
-- Zephyr version: 2.7.99 (D:/ncs/v1.9.1/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: D:/ncs/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52811
-- Cache files will be written to: D:/ncs/v1.9.1/zephyr/.cache
-- Found dtc: D:/ncs/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (d:/ncs/v1.9.1/toolchain/opt)
-- Found BOARD.dts: D:/ncs/v1.9.1/zephyr/boards/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811.dts
-- Generated zephyr.dts: D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/build/zephyr/dts.cmake
Parsing D:/ncs/v1.9.1/zephyr/Kconfig
Loaded configuration 'D:/ncs/v1.9.1/zephyr/boards/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811_defconfig'
Merged configuration 'd:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/prj.conf'
Configuration saved to 'D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/build/zephyr/.config'
Kconfig header saved to 'D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: D:/ncs/v1.9.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: D:/nrfsrc/nrf52811-ble-long-range-demo-master/ble_app_uart/build
-- west build: building application
ninja: error: d:\nrfsrc\nrf52811-ble-long-range-demo-master\ble_app_uart\build\build.ninja:142: expected '=', got newline
RF
^ near here
FATAL ERROR: command exited with status 1: 'd:\ncs\v1.9.1\toolchain\opt\bin\cmake.EXE' --build 'd:\nrfsrc\nrf52811-ble-long-range-demo-master\ble_app_uart\build'
As I don't generate the build.ninja, could it be an error in west? Or is it a mistake in one of my configuration files?
My development setup:
- Visual Studio Code on Windows with nRF Connect plugin installed.
- nRF52840 DK
Thank you again,
David.