adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
493 stars 131 forks source link

Compiler states: SPI header is missing, causing compilation to terminate. #418

Open ZZ-Cat opened 6 months ago

ZZ-Cat commented 6 months ago

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:

  1. Copy the contents of platformio.ini.txt file to platformio.ini.
  2. Copy the contents of tinyusb_bug_test.txt to a tinyusb_bug_test.cpp file in the default src folder.
  3. Build the firmware with pio run.

Debug Log

Not applicable

Screenshots

Compiler output from another project of mine that uses TinyUSB:
Screenshot from 2024-05-07 19-30-13

As a temporary workaround for my project, I have pinned TinyUSB to v2.2.2:
Screenshot from 2024-05-07 19-38-34

As observed here, v2.2.2 builds successfully: Screenshot from 2024-05-07 19-43-05

hathach commented 6 months ago

did the same version setup (core BSP + library) work with Arduino IDE ?

ClutchplateDude commented 2 months ago

I am also running into this. Will this be fixed?