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

Message-skipping issue, on SAMD21 boards #60

Closed
Kuba0040 opened this issue Dec 12, 2020 · 3 comments
Closed

Message-skipping issue, on SAMD21 boards #60

Kuba0040 opened this issue Dec 12, 2020 · 3 comments

Comments

@Kuba0040
Copy link

Hello,
Thank you so much for making this library, however I ran into a issue while using it on a SAMD21 based microcontroller (Seeeduino XIAO). Mainly, every once in a while when playing on a keyboard being read by the microcontroller, sometimes the microcontroller fails to catch Note Off messages, meaning that the key you released will keep on playing until you press, and release it again. The microcontroller I am using (Seeeduino XIAO), while it's not mentioned officially to be supported by Your library, runs on the SAMD21 M0 microcontroller, the same one found in the Arduino Zero, at the same clock speed.

I have tried some things, which seemed to make it skip messages less often, like removing the USBHub library from Your code as well as removing the "if (Midi)" line from the main code loop, and just making it run MIDI_poll() all the time (I am not entirely certain about this one, however it seemed to have improved it slightly) . However outside of these two discoveries I have failed to eliminate the message skipping problem.

Is there something I am doing wrong that's making the microcontroller misbehave like that? If so please let me know,
Thank You.

@YuuichiAkagawa
Copy link
Owner

Are you using "USB Host Library SAMD" ?

@Kuba0040
Copy link
Author

Yes, I am.

@YuuichiAkagawa
Copy link
Owner

This library is for USB Host Shield 2.0 Library.
I can't support.

Isn't your problem the same as this?
gdsports/USB_Host_Library_SAMD#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants