-
Notifications
You must be signed in to change notification settings - Fork 130
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
HID regression in 2.0.2 due to weak definitions #296
Comments
Having the same issue here with native USB host on RP2040. For the record I have confirmed that this is what is happening by using breakpoints on Picoprobe debugger. I have also confirmed that commenting out the weak definitions fixes the problem. I don't know what it is about these particular weak definitions that is confusing the linker, but I do wonder is there even any reason to have them duplicated in |
Thanks @JonnyHaystack! 3.1.0 is still affected, and I can confirm removing those definitions fixes the problem for me. @hathach, it looks like the addition of TU_ATTR_WEAK in hid_host.h in hathach/tinyusb#1968 was the breaking change, so if we can’t remove those empty definitions in Adafruit_USBH_Host.cpp for some reason, then we need to remove TU_ATTR_WEAK from the tuh_hid_mount_cb declaration (and tuh_hid_umount_cb and tuh_hid_report_received_cb). (This probably explains why tuh_hid_umount_cb has never worked for me…) |
Can confirm this with |
Operating System
Windows 10
Arduino IDE version
PlatformIO 6.1.6
Board
pico
ArduinoCore version
earlephilhower/[email protected]
TinyUSB Library version
2.0.2+
Sketch as ATTACHED TXT
delan/usb3sun@04ba656
Compiled Log as ATTACHED TXT
n/a
What happened ?
When upgrading the library from 2.0.1 to 2.0.2, tuh_mount_cb is called, but tuh_hid_mount_cb and tuh_hid_report_received_cb are no longer called.
How to reproduce ?
git apply
repro.patchpio run -t upload
)Debug Log
Screenshots
No response
The text was updated successfully, but these errors were encountered: