Compiler states: SPI header is missing, causing compilation to terminate.
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:
- Copy the contents of
platformio.ini.txtfile toplatformio.ini. - Copy the contents of
tinyusb_bug_test.txtto atinyusb_bug_test.cppfile in the defaultsrcfolder. - 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:
As observed here, v2.2.2 builds successfully:
did the same version setup (core BSP + library) work with Arduino IDE ?
I am also running into this. Will this be fixed?