TinyUSB has an eternally unmerged PR Hint platform io to not statically link by JoonasMelin · Pull Request #116 · adafruit/Adafruit_TinyUSB_Arduino · GitHub that the library needs due to linker internals (correct linking of interrupt handlers needed for USB) but was never merged.
Hm that’s not good.
Can you either turn of TinyUSB (remove build_flags
) or create a new project with no libraries but just
[env:adafruit_itsybitsy_m4]
platform = atmelsam
board = adafruit_itsybitsy_m4
framework = arduino
build_flags =
-DUSE_TINYUSB
lib_archive = no
and a
#include <Arduino.h>
#include <Adafruit_TinyUSB.h>
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("test");
delay(1000);
}
to test whether TinyUSB works in principle?