usbMIDI problems with the Teensy

Hello everyone,
I am new to Ardurino. I want to program a MIDI controller with a Teensy 4.1 and USB MIDI. However, I have massive problems here. The Teensy sends just seven MIDI commands (No matter what kind of commands) and then the MIDI interface freezes (partly also the program which should receive MIDI). If I plug in and unplug the Teensy (and restart the MIDI app), it works again seven times (but not on every computer). I tested it on two Windows 11 computers with 6 different programs that can receive MIDI signals. MIDI-OX even gave an error message on one computer that there were memory problems (with 64GB RAM).
I let the Teensy send a simple program (only one line: USB-MIDI sends a note) with the same result. Could there be a hardware defect? The sketch on the Teensy runs absolutely korrket (it is a 16x2 display via I2C on the Teensy). Who has ideas?

With Google and other search engines I didn't find anything about this :-/

Best regards
Florian

Based on what you have provided, you must have skipped over the forum introduction:

I've forgotten to post the code. It only was in line with USBMIDI.
Nichtsdestotrotz habe ich die Lösung gefunden. Der USB-MIDI-Buffer lief voll, und ich habe diesen nicht leert ,mit:

  while (usbMIDI.read()) {
  }

Jetzt scheint es zu gehen!

Liebe Grüße
Florian

1 Like

@farbraum,

Your other topic on the same subject deleted.

Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.

Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.

Repeated duplicate posting could result in a temporary or permanent ban from the forum.

Could you take a few moments to Learn How To Use The Forum

It will help you get the best out of the forum in the future.

Thank you.

Could you please do that now?

Thank you for sharing this. For whatever reason, this was not necessary with Teensy 3.2 MIDI, so I spent far too long trying to figure out why my Teensy 4 was crashing certain programs.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.