The built-in TinyUSB is pinned to v1.9.4, which is outdated for my needs.
I want the latest version of TinyUSB in my firmware; I started with the very latest version, then found the aforementioned compiler error.
I tracked it all the way back to v2.2.3. Everything from v2.2.2 and earlier compiles (and flashes) with impunity.
How to reproduce ?
In a fresh instance of PlatformIO:
Copy the contents of platformio.ini.txt file to platformio.ini.
Copy the contents of tinyusb_bug_test.txt to a tinyusb_bug_test.cpp file in the default src folder.
Build the firmware with pio run.
Debug Log
Not applicable
Screenshots
Compiler output from another project of mine that uses TinyUSB:
As a temporary workaround for my project, I have pinned TinyUSB to v2.2.2:
Operating System
Linux
Arduino IDE version
PlatformIO Core v6.1.15
Board
Adafruit Metro M4
ArduinoCore version
platformio/atmelsam @ 8.2.1
TinyUSB Library version
v2.2.3 (all the way up to the latest version)
Sketch as ATTACHED TXT
Test sketch: tinyusb_bug_test.txt PlatformIO Config file: platformio.ini.txt
Compiled Log as ATTACHED TXT
Compiler output: build_log.txt
What happened ?
The built-in TinyUSB is pinned to v1.9.4, which is outdated for my needs.
I want the latest version of TinyUSB in my firmware; I started with the very latest version, then found the aforementioned compiler error.
I tracked it all the way back to v2.2.3. Everything from v2.2.2 and earlier compiles (and flashes) with impunity.
How to reproduce ?
In a fresh instance of PlatformIO:
platformio.ini.txt
file toplatformio.ini
.tinyusb_bug_test.txt
to atinyusb_bug_test.cpp
file in the defaultsrc
folder.pio run
.Debug Log
Not applicable
Screenshots
Compiler output from another project of mine that uses TinyUSB:
As a temporary workaround for my project, I have pinned TinyUSB to v2.2.2:
As observed here, v2.2.2 builds successfully: