Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZZ-Cat opened this issue May 7, 2024 · 1 comment
Open
Labels
Bug Something isn't working

Comments

@ZZ-Cat
Copy link

ZZ-Cat commented May 7, 2024

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

@ZZ-Cat ZZ-Cat added the Bug Something isn't working label May 7, 2024
@hathach
Copy link
Member

hathach commented May 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants