xarolium Posted August 17 Report Share Posted August 17 Hi there,"USB MIDI 2x2 i 'm trying to build a very simple USB host to Midi converter with the USB_Midi_2x2 app. I have a Discover board MB997D, i uploaded the bootloader and the board respond correctly in MIOS studio, then i uploaded the USB_MIDI_2x2 hex file and the Discovery board is well recognize as "USB MIDI 2x2" in MIOS studio. Then i disconnect the micro usb cable and connect my keyboard (a Oxygen 49), i reset the Discovery board, then i tried top play some note on the keyboard but nothing happens, no data in MIDI OUT1 and the green led DOES NOT blink on the Discovery board. The oxygen 49 is powered by a external PSU. I made a custom USB cable that allows me to connect the +5V rail to a external PSU. Any idea what i'm doing wrong ? Do i have to compile the app with #undef MIOS32_DONT_USE_USB_HOST ? Any help will be much appreciated Quote Link to comment Share on other sites More sharing options...
Phatline Posted August 17 Report Share Posted August 17 (edited) done this? #undef MIOS32_DONT_USE_USB_HOST ? no just remove the line.... Edited August 17 by Phatline Quote Link to comment Share on other sites More sharing options...
xarolium Posted August 17 Author Report Share Posted August 17 Thank you for your reply, PA9 is the VBUS_FS line on the discovery board. As i power my Keyboard with a external power it does not change anything. I tried to connect PA9 to +5V but still no midi message from my Oxygen49 Any other advice ? Quote Link to comment Share on other sites More sharing options...
Phatline Posted August 18 Report Share Posted August 18 (edited) you sayd you made a custom USB OTG cable... you think you have done it right (ID PIN ??? )? if you have done right, maybe you have wrong bootloader settings: (http://www.ucapps.de/mios32_bootstrap_newbies.html ) Quote enforce_usb_device: this option has only an effect on core modules which support USB Host mode such as the MBHP_CORE_STM32F4 module. If set to 1, USB device mode will be selected regardless of the cable type A or B. If set to 0 (default), USB host mode will be selected with A type cables, and USB device mode with B type cables. This type of selection is also known as USB OTG (on-the-go). The usage of the default setup is normally save, "set enforce_usb_device 1" only if you are using an "unusual" cable. Note that setting this parameter could lead to a dilemma: it can only be set with a bidirectional MIDI connection between the core module and the MIOS Studio terminal. If you don't own a Micro-USB B type cable to establish this connection, the only possibility to change this parameter is a "traditional" MIDI connection via MIDI IN/OUT between the core module and your PC/Mac! If you don't own a MIDI interface for such a connection, it's cheaper to buy the right Micro-USB cable - once you've changed the parameter, you can use the "improper" cable for your core! Edited August 18 by Phatline Quote Link to comment Share on other sites More sharing options...
xarolium Posted August 19 Author Report Share Posted August 19 Thank you for your reply. I will try a other cable and let you know Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.