for the longest time,, i had the same problem and by looking at @sterretje , i did what was asked, and well i stopped getting that particular error but now, im getting this error instead
c:/users/insaa/appdata/local/arduino15/packages/seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\insaa\AppData\Local\arduino\sketches\39EB3CDEED9082B21D0A0316ECEA99E0\sketch\arduino-test.ino.cpp.o: in function `setup':
C:\Users\insaa\OneDrive\Arduino\libraries\base64\arduino-test/arduino-test.ino:24: undefined reference to `Serial'
c:/users/insaa/appdata/local/arduino15/packages/seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\insaa\OneDrive\Arduino\libraries\base64\arduino-test/arduino-test.ino:24: undefined reference to `Adafruit_USBD_CDC::begin(unsigned long)'
c:/users/insaa/appdata/local/arduino15/packages/seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\insaa\AppData\Local\arduino\sketches\39EB3CDEED9082B21D0A0316ECEA99E0\sketch\arduino-test.ino.cpp.o: in function `loop':
C:\Users\insaa\OneDrive\Arduino\libraries\base64\arduino-test/arduino-test.ino:28: undefined reference to `Adafruit_USBD_CDC::read()'
c:/users/insaa/appdata/local/arduino15/packages/seeeduino/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\insaa\OneDrive\Arduino\libraries\base64\arduino-test/arduino-test.ino:57: undefined reference to `Serial'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
I do not know what the problem is.
Earlier, arduinoble library didnt really work on my pc, as no such file or directory, but I fixed it by following the instructions here:
But now instead of that, im getting
WARNING: library ArduinoBLE claims to run on samd, megaavr, mbed, apollo3, mbed_nano, mbed_portenta, mbed_nicla, esp32, mbed_giga, renesas, renesas_portenta, mbed_opta, renesas_uno, silabs architecture(s) and may be incompatible with your current board which runs on nrf52 architecture(s).
c:\Users\insaa\OneDrive\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:39:2: error: #error "Unsupported board selected!"
39 | #error "Unsupported board selected!"
| ^~~~~
c:\Users\insaa\OneDrive\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:105:40: error: 'SerialHCI' was not declared in this scope; did you mean 'Serial'?
105 | HCIUartTransportClass HCIUartTransport(SerialHCI, 912600);
| ^~~~~~~~~
| Serial
exit status 1
Compilation error: exit status 1
I'm using seeed nrf52840 sense so unsupported board is out of the question. please help