Problems with rpi pico - usb device fails, not recognized. #947
Unanswered
markwinger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using an RPI Pico as a midi device. The Control_surface library is being used as simple midi library. I am using usb_midi, and it is putting info to scribble strips. The data is sent from a windows computer to the pico using sysex. This all works perfectly.
However, it does not always get recognized by windows correctly. The pico is powered by usb from windows so boots when windows powers up. I would say 3 out of 4 times if failes. If I remove usb power from the pico, and reconnect it usually will initialize and connect properly to windows.
I am not executing any code other than the spi but and gpio pins to initialize the lcd displays. So basically the code is:
#include <Control_Surface.h> // Include the Control Surface library
struct MyMIDI_Callbacks : MIDI_Callbacks {
// Callback for system exclusive messages
void onSysExMessage(MIDI_Interface &, SysExMessage se) override {
// process data
}
} callback;
USBMIDI_Interface midi;
midi.begin();
midi.setCallbacks(callback);
Is there any issues with the pico or some timing issue on boot?
Beta Was this translation helpful? Give feedback.
All reactions