Jump to content

USB host doesn't work but i follow the TK topic


Recommended Posts

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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 by Phatline
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...