Can't compile Blink (or empty) Arduino project for Feather Sense

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
pgphoto
 
Posts: 2
Joined: Tue May 30, 2023 1:48 am

Can't compile Blink (or empty) Arduino project for Feather Sense

Post by pgphoto »

Arduino IDE 2.1.0
Windows 10.
Feather Sense board.

Trying to compile the simple Blink example (or even a sketch with empty setup and loop).

See errors below.
Probably some kind of library problem, but I can't figure out what. I can access (but not compile) all the examples, and the library manager seems to think everything is up-to-date.

I found that one of the undefined references was in TinyUSB, so I removed and re-installed that library, to no effect.

Thanks for any help,
PG

Code: Select all

FQBN: adafruit:nrf52:feather52840sense:debug=l2
Using board 'feather52840sense' from platform in folder: C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0
Using core 'nRF5' from platform in folder: C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0

Detecting libraries used...
"C:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -w -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=10607 -DARDUINO_NRF52840_FEATHER_SENSE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"1.1.0\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8087 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather nRF52840 Sense\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=2 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/Core/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/DSP/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/hal" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/mdk" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/soc" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/src" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/Source/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/GCC/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/CMSIS/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/SEGGER" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/Config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\variants\\feather_nrf52840_sense" "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -w -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=10607 -DARDUINO_NRF52840_FEATHER_SENSE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"1.1.0\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8087 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather nRF52840 Sense\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=2 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/Core/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/DSP/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/hal" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/mdk" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/soc" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/src" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/Source/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/GCC/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/CMSIS/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/SEGGER" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/Config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\variants\\feather_nrf52840_sense" "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\sketch\\Blink.ino.cpp" -o "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -w -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=10607 -DARDUINO_NRF52840_FEATHER_SENSE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"1.1.0\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8087 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather nRF52840 Sense\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=2 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/Core/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/DSP/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/hal" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/mdk" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/soc" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/src" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/Source/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/GCC/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/CMSIS/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/SEGGER" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/Config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\variants\\feather_nrf52840_sense" "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\sketch\\Blink.ino.cpp" -o "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
"C:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -w -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=10607 -DARDUINO_NRF52840_FEATHER_SENSE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"1.1.0\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8087 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather nRF52840 Sense\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=2 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/Core/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/DSP/Include/" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/hal" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/mdk" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/soc" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/nrfx/drivers/src" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/Source/include" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/GCC/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/freertos/portable/CMSIS/nrf52" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/SEGGER" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/sysview/Config" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5" "-IC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\variants\\feather_nrf52840_sense" "C:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\variants\\feather_nrf52840_sense\\variant.cpp" -o "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\core\\variant.cpp.o"
Using precompiled core: C:\Users\SuperD\AppData\Local\Temp\arduino\cores\adafruit_nrf52_feather52840sense_softdevice_s140v6,debug_l2_b15e77fcd061d00c9cf4d0d14a7e0692\core.a
Linking everything together...
"C:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-gcc" "-LC:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA" -Ofast -Wl,--gc-sections -save-temps "-LC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\hardware\\nrf52\\1.1.0\\cores\\nRF5/linker" -Tnrf52840_s140_v6.ld "-Wl,-Map,C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA/Blink.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 "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA/Blink.ino.elf" "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\sketch\\Blink.ino.cpp.o" "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\SuperD\\AppData\\Local\\arduino15\\packages\\adafruit\\tools\\CMSIS\\5.7.0/CMSIS/DSP/Lib/GCC/" -larm_cortexM4lf_math -lm "C:\\Users\\SuperD\\AppData\\Local\\Temp\\arduino\\sketches\\D76F52576B8FD5BBB1F616249618CFBA/..\\..\\cores\\adafruit_nrf52_feather52840sense_softdevice_s140v6,debug_l2_b15e77fcd061d00c9cf4d0d14a7e0692\\core.a" -Wl,--end-group
c:/users/superd/appdata/local/arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\SuperD\AppData\Local\Temp\arduino\sketches\D76F52576B8FD5BBB1F616249618CFBA/..\..\cores\adafruit_nrf52_feather52840sense_softdevice_s140v6,debug_l2_b15e77fcd061d00c9cf4d0d14a7e0692\core.a(main.cpp.o): in function `loop_task(void*)':
C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0\cores\nRF5/main.cpp:57: undefined reference to `Adafruit_USBD_CDC::operator bool()'
c:/users/superd/appdata/local/arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0\cores\nRF5/main.cpp:57: undefined reference to `Adafruit_USBD_CDC::begin(unsigned long)'
c:/users/superd/appdata/local/arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0\cores\nRF5/main.cpp:57: undefined reference to `Serial'
c:/users/superd/appdata/local/arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\SuperD\AppData\Local\Temp\arduino\sketches\D76F52576B8FD5BBB1F616249618CFBA/..\..\cores\adafruit_nrf52_feather52840sense_softdevice_s140v6,debug_l2_b15e77fcd061d00c9cf4d0d14a7e0692\core.a(main.cpp.o): in function `_write':
C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0\cores\nRF5/main.cpp:130: undefined reference to `Adafruit_USBD_CDC::operator bool()'
c:/users/superd/appdata/local/arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0\cores\nRF5/main.cpp:132: undefined reference to `Serial'
c:/users/superd/appdata/local/arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\SuperD\AppData\Local\arduino15\packages\adafruit\hardware\nrf52\1.1.0\cores\nRF5/main.cpp:132: undefined reference to `Adafruit_USBD_CDC::write(unsigned char const*, unsigned int)'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1
Last edited by adafruit_support_carter on Tue May 30, 2023 6:40 pm, edited 1 time in total.
Reason: added [code] tags

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can't compile Blink (or empty) Arduino project for Feather Sense

Post by adafruit_support_carter »

Can you try again with the example sketch from the guide:
https://learn.adafruit.com/adafruit-fea ... ch-2860620

User avatar
pgphoto
 
Posts: 2
Joined: Tue May 30, 2023 1:48 am

Re: Can't compile Blink (or empty) Arduino project for Feather Sense

Post by pgphoto »

That worked, you're a genius!

Does that mean I should #include <Adafruit_TinyUSB.h> in all my programs for the Feather Sense?

Thanks so much,
PG

User avatar
hathach
 
Posts: 1270
Joined: Tue Apr 23, 2013 1:02 am

Re: Can't compile Blink (or empty) Arduino project for Feather Sense

Post by hathach »

yeah, it is needed, since TinyUSB provide Serial support for the core so it is required for all sketches. However, you don't really need to explicitly include it, normally when including any other libraries such as Wire, SPI or most of built-in and Adafruit libraries, it will also auto pull in the TinyUSB lib. The exception is probably the blink which does not use any libraries at all. Hope this explain the issue.

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”