TheKikGen / USBMidiKliK

A robust USB MIDI Arduino firmware, with a dual bootloader, based on the LUFA library
89 stars 17 forks source link

Uno with 16u2 is detected as a COM port from time to time after firmware is uploaded. #18

Closed foo4bar closed 9 months ago

foo4bar commented 2 years ago

I.e., one time I connect it via USB to a laptop running Win10, it may be detected as a COM port, and either TX or RX led is lit at the same time. The next time I connect it, it may be detected as a midi device. Behavior is random.

When Uno is detected as a midi device, firmware works fine. Thank you for your work :)

foo4bar commented 2 years ago

Checked my board with a Linux machine as well, and everything's OK. So, I suppose, Win10 generates some weird USB traffic that's often recognized as the sysex message to enable serial boot mode. Will build the firmware without dual mode and try again. If everything's OK on Win10 after that, then my supposition re strange USB traffic is right.

foo4bar commented 2 years ago

Have built the firmware with the line commented out. Everything's fine on Win10 now. So, my supposition above re sysex is right.

TheKikGen commented 2 years ago

USB within Windows is sometimes temperamental ! You can gon in the Device manager, show hidden devices, and delete every com ports and midi devices you see related with USB MidiKlik/Arduino, then reboot your computer.