Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

Error compiling for board Adafruit Feather nRF52840 Sense.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Error compiling for board Adafruit Feather nRF52840 Sense.

by mark_lw on Wed Dec 01, 2021 3:08 pm

I have a Adafruit Feather nRF52840 Sense. I tried to compile the BLE Controller sketch provided by Adafruit and it failed. The error was "Error compiling for board Adafruit Feather nRF52840 Sense." Below is the full error message. I have other sketches working with this board. What is the problem? I am new to BLE.

Mark Kruskopf


Arduino: 1.8.16 (Windows 10), Board: "Adafruit Feather nRF52840 Sense, S140 6.1.1, Level 0 (Release)"

Library Adafruit_nRFCrypto has been declared precompiled:

Using precompiled library in C:\Users\MarkKruskopf\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\1.1.0\libraries\Adafruit_nRFCrypto\src\cortex-m4\fpv4-sp-d16-hard

c:/users/markkruskopf/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: sketch\controller.ino.cpp.o: in function `loop':

C:\Users\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:92: undefined reference to `readPacket(BLEUart*, unsigned short)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:177: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:178: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:179: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:180: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:185: undefined reference to `packetbuffer'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:185: undefined reference to `packetbuffer'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:185: undefined reference to `packetbuffer'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:185: undefined reference to `packetbuffer'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:185: undefined reference to `packetbuffer'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:127: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:128: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:129: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:141: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:142: undefined reference to `parsefloat(unsigned char*)'

c:/users/markkruskopf/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: sketch\controller.ino.cpp.o:C:\Users\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:143: more undefined references to `parsefloat(unsigned char*)' follow

c:/users/markkruskopf/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: sketch\controller.ino.cpp.o: in function `loop':

C:\Users\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:106: undefined reference to `packetbuffer'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:106: undefined reference to `packetbuffer'

c:/users/markkruskopf/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\MarkKruskopf\AppData\Local\Temp\Temp1_controller (1).zip\libraries\Bluefruit52Lib\examples\Peripheral\controller/controller.ino:106: undefined reference to `packetbuffer'

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Adafruit Feather nRF52840 Sense.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

mark_lw
 
Posts: 5
Joined: Fri Nov 19, 2021 4:25 pm

Re: Error compiling for board Adafruit Feather nRF52840 Sens

by dastels on Wed Dec 01, 2021 3:57 pm

"Error compiling for board Adafruit Feather nRF52840 Sense." is the executive summary, basically "it didn't work"

The actual error is "undefined reference to `packetbuffer'" (and thanks for including the build output).

Hmm.. packetbuffer is declared as extern ... meaning it's defined in the library. Are your libraries and board support packages all up to date?

Dave

dastels
 
Posts: 8385
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error compiling for board Adafruit Feather nRF52840 Sens

by mark_lw on Thu Dec 02, 2021 2:59 pm

Dave,

Thank you for the reply. I read further in the instructions and then added "packetParser.cpp" to the sketch folder.
It seems to work now.

Mark

mark_lw
 
Posts: 5
Joined: Fri Nov 19, 2021 4:25 pm

Please be positive and constructive with your questions and comments.