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

Missing header file: Adafruit_TinyUSB_Core.h #1

Closed
bjc opened this issue May 13, 2019 · 10 comments
Closed

Missing header file: Adafruit_TinyUSB_Core.h #1

bjc opened this issue May 13, 2019 · 10 comments

Comments

@bjc
Copy link
Contributor

bjc commented May 13, 2019

Git rev: 7b4814f

Can't compile any of the examples due to missing header file.

Arduino: 1.8.9 (Linux), Board: "SparkFun Pro nRF52840 Mini, s140 6.1.1 r0, Level 0 (Release)"

In file included from /home/bjc/Arduino/libraries/Adafruit_TinyUSB_Arduino/src/Adafruit_TinyUSB.h:28,
                 from /home/bjc/Arduino/libraries/Adafruit_TinyUSB_Arduino/examples/HID/hid_composite/hid_composite.ino:4:
/home/bjc/Arduino/libraries/Adafruit_TinyUSB_Arduino/src/Adafruit_USBD_MSC.h:28:10: fatal error: Adafruit_TinyUSB_Core.h: No such file or directory
 #include "Adafruit_TinyUSB_Core.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board SparkFun Pro nRF52840 Mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@hathach
Copy link
Member

hathach commented May 13, 2019

please use the current develop branch of the BSP https://github.com/adafruit/Adafruit_nRF52_Arduino
The library support BSP isn't released yet.

@hathach hathach closed this as completed May 13, 2019
@osimons
Copy link

osimons commented Jun 4, 2019

This library is linked to from the PyGamer guide @ https://learn.adafruit.com/adafruit-pygamer/arduino-libraries and without the missing Core files it will not compile. Is it the guide or the library or perhaps some other location where the library should be found?

@timonsku
Copy link
Contributor

timonsku commented Jun 4, 2019

@osimons you need to install the latest Adafruit SAMD core, tinyusb is only supported since core version 1.5.
E: Nvm, missed that its about the NRF52840

@osimons
Copy link

osimons commented Jun 4, 2019

Thanks. I get it working using latest Arduino IDE 1.8.9 with SAMD boards + libraries. I was however trying to recreate the tutorial & 'arcada_pygamer_test' example using latest PlatformIO (4.0.0.a18), but my approach may be flawed.

@hathach
Copy link
Member

hathach commented Jun 5, 2019

did you select Tinyusb in the menu -> Tools -> USB Stack

@osimons
Copy link

osimons commented Jun 5, 2019

Yes, @hathach. All is fine in Arduino IDE.

I'm instead trying to use PlatformIO with library dependencies, but I'm unable to locate the TinyUSB_Core files in that build environment.

@stringlapse
Copy link

Looks like the PIO Atmel SAM platform has Adafruit SAMD core 1.4.1 right now, I guess we'll just have to wait for it to be updated to 1.5+

@ladyada
Copy link
Member

ladyada commented Jul 4, 2019

yes we're doing a 3-repo update :)

@CodeOhms
Copy link

CodeOhms commented Nov 1, 2020

Still have the exact same issue in Platformio 1.50.1 😡

In file included from .pio/libdeps/bluepill_f103c8_128k/Adafruit TinyUSB Library/src/Adafruit_TinyUSB.h:28,
                 from src/main.cpp:12:
.pio/libdeps/bluepill_f103c8_128k/Adafruit TinyUSB Library/src/Adafruit_USBD_HID.h:28:10: fatal error: Adafruit_TinyUSB_Core.h: No such file or directory

*******************************************************************************
* Looking for Adafruit_TinyUSB_Core.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Adafruit_TinyUSB_Core.h"
* Web  > https://platformio.org/lib/search?query=header:Adafruit_TinyUSB_Core.h
*
*******************************************************************************

   28 | #include "Adafruit_TinyUSB_Core.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/bluepill_f103c8_128k/src/main.cpp.o] Error 1
In file included from .pio/libdeps/bluepill_f103c8_128k/Adafruit TinyUSB Library/src/Adafruit_TinyUSB.h:28,
                 from .pio/libdeps/bluepill_f103c8_128k/Adafruit TinyUSB Library/src/Adafruit_TinyUSB.cpp:25:
.pio/libdeps/bluepill_f103c8_128k/Adafruit TinyUSB Library/src/Adafruit_USBD_HID.h:28:10: fatal error: Adafruit_TinyUSB_Core.h: No such file or directory

*******************************************************************************
* Looking for Adafruit_TinyUSB_Core.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Adafruit_TinyUSB_Core.h"
* Web  > https://platformio.org/lib/search?query=header:Adafruit_TinyUSB_Core.h
*
*******************************************************************************

   28 | #include "Adafruit_TinyUSB_Core.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/bluepill_f103c8_128k/lib30b/Adafruit TinyUSB Library/Adafruit_TinyUSB.cpp.o] Error 1

@timonsku
Copy link
Contributor

timonsku commented Nov 1, 2020

@CodeOhms
It seems you are using a STM32 based board which is not supported by this Arduino library yet. If you want to use TinyUSB with STM32 checkout the core project but keep in mind that this is bare C and does not come with Arduino support: https://github.com/hathach/tinyusb

@adafruit adafruit locked and limited conversation to collaborators Nov 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants