-
Notifications
You must be signed in to change notification settings - Fork 841
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
TinyUSB HOST_HID issue on debug builds #649
Comments
is 1 vs 2 possibly a release build vs debug build thing? |
I built as defaults; are you saying that the default build in pico-examples is debug ? Difference in operation between 1 and 2 is that displays mouse events, and 2 simply stops doing anything after the assert. |
debug is not the default (well from the command line - might be in your IDE), but |
For context, I develop for pico on a Raspberry Pi 400 from command line in shell. To try out the new sdk 1.3.0, I started with a fresh git clone and run of pico-setup (after moving the top-level of the previous one aside by renaming it). |
OK - well i see the same issue with TinyUSB HID mode with a debug build, but not with a release build. With a release build mouse works fine for me. Seems like TinyUSB have broken the debug version. I didn't realize pico-setup defaults the build to Debug. Simplest thing is to create a clean build directory and run |
Or you can create a clean build directory and run either |
Yes, this was the chain of events:
After this was shown to be the case, I examined changes to the Host HID example code, and it turns out that several of the axiomatic defines variables were changed in the intervening time (not just values, but also names !). So I have fixed my problem. I feel like this issue should probably remain open until the TinyUSB issue on debug builds is fixed, however. |
we will pick up the fixed upstream TinyUSB in 1.3.1 |
@liamfraser to decide what to include for 1.3.1 or wait for 1.3.2 |
Moving to 1.4.0 as we will not pick up new TinyUSB in 1.3.x branch |
merged into develop |
I believe that something in the cmake hierarchy is overriding something important in TinyUSB's HOST_HID stack, leading to a runtime issue.
I had a project based on SDK 1.2.0 and TinyUSB's host_cdc_msc_hid example (any version from July 4 onward), which was working fine. Compiling with the new SDK 1.3.0 compiles fine, but no USB mouse messages reach the code.
Putting that aside, I decided to recheck that the TinyUSB example was still working properly:
I would file this as an issue under pico_examples, but it also affects my project which is separate and not dependent on pico-examples.
The text was updated successfully, but these errors were encountered: