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

Conflicting Types in 3.1.3 #415

Open
coofercat opened this issue Apr 27, 2024 · 5 comments
Open

Conflicting Types in 3.1.3 #415

coofercat opened this issue Apr 27, 2024 · 5 comments
Labels
Bug Something isn't working

Comments

@coofercat
Copy link

coofercat commented Apr 27, 2024

Operating System

MacOS

Arduino IDE version

Arduino 2.3.2

Board

DollaTek ESP32-S3-DevKitC-1

ArduinoCore version

1.8.6 2.0.13

TinyUSB Library version

3.1.3

Sketch as ATTACHED TXT

examples/hid_boot_mouse.ino (https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/master/examples/HID/hid_boot_mouse/hid_boot_mouse.ino)

Compiled Log as ATTACHED TXT

/Users/x/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/host/usbh.c:756:6: error: conflicting types for 'tuh_edpt_abort_xfer'
 bool tuh_edpt_abort_xfer(uint8_t daddr, uint8_t ep_addr) {
      ^~~~~~~~~~~~~~~~~~~
/Users/x/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/host/usbh.c:720:15: note: previous implicit declaration of 'tuh_edpt_abort_xfer' was here
               tuh_edpt_abort_xfer(daddr, tu_edpt_addr(epnum, dir));
               ^~~~~~~~~~~~~~~~~~~
exit status 1
Error compiling for board ESP32S3 Dev Module.

What happened ?

In version 3.1.3, I can't compile anything using the library and get the error above. If I revert to the next previous version available (3.1.1), it compiles correctly.

How to reproduce ?

  1. With an (almost) completely fresh Arduino IDE, install Adafruit TinyUSB and its dependencies
  2. Compile the examples/hid_boot_mouse.ino sketch
  3. Observe error
  4. Downgrade the Adafruit TinyUSB library to verion 3.1.1
  5. Compile - observe it compiles and uploads

Debug Log

No response

Screenshots

No response

@coofercat coofercat added the Bug Something isn't working label Apr 27, 2024
@jenschr
Copy link

jenschr commented Apr 28, 2024

I can confirm. Tested with Arduino 2.3.2 and Adafruit Feather S3 NoPSRAM, I get the same error.

@hathach
Copy link
Member

hathach commented Apr 29, 2024

BSP 1.8.6 is too old, please update to at least 2.0.14/15

@coofercat
Copy link
Author

Sorry, I'm not sure where 1.8.6 came from - if I look in Boards Manager, the Arduino ESP32 Boards version is 2.0.13. I don't have an option for 14/15, but I'll look to add one of those and re-try.

@Wycers
Copy link

Wycers commented Apr 29, 2024

Same issue here

@hathach
Copy link
Member

hathach commented Apr 30, 2024

I will look at this soon, though anyone with “same issue” please post your setup detail (check 1st post)

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

4 participants