Tested on STM32F4Discovery with Linux host using both amidi (raw messages to/from device) and a synthesizer (note on/off) and on Windows 7 using MIDI-OX.
This directory contains examples for the _original_ stm32f4 discovery. The PCB should be labelled either MB997A or MB997B, and contains a user USB port, and an audio dac on board, along with a MEMs microphone and an accelerometer. http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419 The later stm32f4 discovery boards, for the f401, MB91115B and for the f429i, MB1075B will not work as is with these demos, but they should only need minor tweaking for pin configurations.