SPI.h missing after I updated

Hello

First time posting here - PlatformIO is great.

So I had my project working fine. I then clicked on “Update platforms, toolchains” in the PlatformIO panel in my IDE (CLion) and now I get the error that SPI.h is missing.

My platform.ini file is:


[env:adafruit_feather_m0]
platform = atmelsam
board = adafruit_feather_m0
framework = arduino

lib_deps =
    arduino-libraries/WiFi101@^0.16.1
    paulstoffregen/Time@^1.6.1
    arduino-libraries/RTCZero@^1.6.0
    khoih-prog/SAMD_TimerInterrupt@^1.10.1
    SPI

Thanks

What’s the minimal src/main.cpp that can trigger this error? Note that you should at least have one #include for each library you include via lib_deps. Otherwise, dependencies will not be correctly resolved.

If you suspect you have a broken package download, you can safely delete

  • C:\Users\<user>\.platformio\packages
  • C:\Users\<user>\.platformio\platforms
  • C:\Users\<user>\.platformio\.cache

to get an all fresh state upon the next build.