Arduino: 1.8.19 (Linux), Board: “Seeed XIAO nRF52840 Sense, S140 7.3.0, Level 0 (Release)”
Error on compiling and linking all example code with this chip.
on examining the libraries installed for XIAO nRF52840 Sense in the hardware/tools/ folder the executable adafruit-nrfutil is only available for win32 and macOS! I have searched on Github for a src or executable linux package without success.
Since even a simple blink.ino will not compile without this tool I am completely stymied
/app/Arduino/arduino-builder -dump-prefs -logger=machine -hardware /app/Arduino/hardware -hardware /home/andrew/.arduino15/packages -tools /app/Arduino/tools-builder -tools /app/Arduino/hardware/tools/avr -tools /home/andrew/.arduino15/packages -built-in-libraries /app/Arduino/libraries -libraries /home/andrew/Arduino/libraries -fqbn=Seeeduino:nrf52:xiaonRF52840Sense:softdevice=s140v6,debug=l0 -vid-pid=2886_8045 -ide-version=10819 -build-path /tmp/arduino_build_135749 -warnings=none -build-cache /tmp/arduino_cache_853348 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.nrfjprog.path=/home/andrew/.arduino15/packages/Seeeduino/tools/nrfjprog/9.4.0 -prefs=runtime.tools.nrfjprog-9.4.0.path=/home/andrew/.arduino15/packages/Seeeduino/tools/nrfjprog/9.4.0 -prefs=runtime.tools.CMSIS.path=/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0 -prefs=runtime.tools.CMSIS-5.7.0.path=/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4 -verbose /home/andrew/Arduino/XiaoSenseBlink/XiaoSenseBlink.ino
/app/Arduino/arduino-builder -compile -logger=machine -hardware /app/Arduino/hardware -hardware /home/andrew/.arduino15/packages -tools /app/Arduino/tools-builder -tools /app/Arduino/hardware/tools/avr -tools /home/andrew/.arduino15/packages -built-in-libraries /app/Arduino/libraries -libraries /home/andrew/Arduino/libraries -fqbn=Seeeduino:nrf52:xiaonRF52840Sense:softdevice=s140v6,debug=l0 -vid-pid=2886_8045 -ide-version=10819 -build-path /tmp/arduino_build_135749 -warnings=none -build-cache /tmp/arduino_cache_853348 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.nrfjprog.path=/home/andrew/.arduino15/packages/Seeeduino/tools/nrfjprog/9.4.0 -prefs=runtime.tools.nrfjprog-9.4.0.path=/home/andrew/.arduino15/packages/Seeeduino/tools/nrfjprog/9.4.0 -prefs=runtime.tools.CMSIS.path=/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0 -prefs=runtime.tools.CMSIS-5.7.0.path=/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4 -verbose /home/andrew/Arduino/XiaoSenseBlink/XiaoSenseBlink.ino
Using board ‘xiaonRF52840Sense’ from platform in folder: /home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0
Using core ‘nRF5’ from platform in folder: /home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0
Detecting libraries used…
/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Werror=return-type -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10819 -DARDUINO_Seeed_XIAO_nRF52840_Sense -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=“1.1.0"” -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x2886 -DUSB_PID=0x8045 “-DUSB_MANUFACTURER=“Seeed”” “-DUSB_PRODUCT=“XIAO nRF52840 Sense”” -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=0 -DCFG_SYSVIEW=0 -I/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/hal -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/mdk -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/soc -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/drivers/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/drivers/src -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/softdevice/s140_nrf52_7.3.0_API/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/softdevice/s140_nrf52_7.3.0_API/include/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/Source/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/config -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/portable/GCC/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/sysview/SEGGER -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/sysview/Config -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/variants/Seeed_XIAO_nRF52840_Sense /tmp/arduino_build_135749/sketch/XiaoSenseBlink.ino.cpp -o /dev/null
Generating function prototypes…
/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Werror=return-type -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10819 -DARDUINO_Seeed_XIAO_nRF52840_Sense -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=“1.1.0"” -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x2886 -DUSB_PID=0x8045 “-DUSB_MANUFACTURER=“Seeed”” “-DUSB_PRODUCT=“XIAO nRF52840 Sense”” -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=0 -DCFG_SYSVIEW=0 -I/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/hal -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/mdk -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/soc -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/drivers/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/drivers/src -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/softdevice/s140_nrf52_7.3.0_API/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/softdevice/s140_nrf52_7.3.0_API/include/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/Source/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/config -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/portable/GCC/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/sysview/SEGGER -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/sysview/Config -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/variants/Seeed_XIAO_nRF52840_Sense /tmp/arduino_build_135749/sketch/XiaoSenseBlink.ino.cpp -o /tmp/arduino_build_135749/preproc/ctags_target_for_gcc_minus_e.cpp
/app/Arduino/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_135749/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch…
/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Werror=return-type -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=64000000 -DARDUINO=10819 -DARDUINO_Seeed_XIAO_nRF52840_Sense -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=“1.1.0"” -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x2886 -DUSB_PID=0x8045 “-DUSB_MANUFACTURER=“Seeed”” “-DUSB_PRODUCT=“XIAO nRF52840 Sense”” -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=0 -DCFG_SYSVIEW=0 -I/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/hal -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/mdk -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/soc -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/drivers/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/nrfx/drivers/src -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/softdevice/s140_nrf52_7.3.0_API/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/nordic/softdevice/s140_nrf52_7.3.0_API/include/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/Source/include -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/config -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/portable/GCC/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/freertos/portable/CMSIS/nrf52 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/sysview/SEGGER -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/sysview/Config -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5 -I/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/variants/Seeed_XIAO_nRF52840_Sense /tmp/arduino_build_135749/sketch/XiaoSenseBlink.ino.cpp -o /tmp/arduino_build_135749/sketch/XiaoSenseBlink.ino.cpp.o
Compiling libraries…
Compiling core…
Using previously compiled file: /tmp/arduino_build_135749/core/variant.cpp.o
Using precompiled core: /tmp/arduino_cache_853348/core/core_Seeeduino_nrf52_xiaonRF52840Sense_softdevice_s140v6,debug_l0_b4f57c213431ff82c1d00ce426619659.a
Linking everything together…
/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-gcc -L/tmp/arduino_build_135749 -Ofast -Wl,–gc-sections -save-temps -L/home/andrew/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.0/cores/nRF5/linker -Tnrf52840_s140_v7.ld -Wl,-Map,/tmp/arduino_build_135749/XiaoSenseBlink.ino.map -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -Wl,–cref -Wl,–check-sections -Wl,–gc-sections -Wl,–unresolved-symbols=report-all -Wl,–warn-common -Wl,–warn-section-align -Wl,–wrap=malloc -Wl,–wrap=free --specs=nano.specs --specs=nosys.specs -o /tmp/arduino_build_135749/XiaoSenseBlink.ino.elf /tmp/arduino_build_135749/sketch/XiaoSenseBlink.ino.cpp.o /tmp/arduino_build_135749/core/variant.cpp.o -Wl,–start-group -L/home/andrew/.arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/DSP/Lib/GCC/ -larm_cortexM4lf_math -lm /tmp/arduino_build_135749/…/arduino_cache_853348/core/core_Seeeduino_nrf52_xiaonRF52840Sense_softdevice_s140v6,debug_l0_b4f57c213431ff82c1d00ce426619659.a -Wl,–end-group
/home/andrew/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-objcopy -O ihex /tmp/arduino_build_135749/XiaoSenseBlink.ino.elf /tmp/arduino_build_135749/XiaoSenseBlink.ino.hex
adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0x0123 --application /tmp/arduino_build_135749/XiaoSenseBlink.ino.hex /tmp/arduino_build_135749/XiaoSenseBlink.ino.zip
exec: “adafruit-nrfutil”: executable file not found in $PATH
Error compiling for board Seeed XIAO nRF52840 Sense.
exec: “adafruit-nrfutil”: executable file not found in $PATH
Error compiling for board Seeed XIAO nRF52840 Sense.
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.