Problem with XK-AUDIO-316-MC-AB and its MIDI

Discussions relating to the XK-EVK-XU316
hohoho
Member
Posts: 11
Joined: Tue Jun 02, 2020 3:40 pm

Problem with XK-AUDIO-316-MC-AB and its MIDI

Post by hohoho »

Hi, I am trying to get MIDI working on XK-AUDIO-316-MC-AB (the pair of DIN5 connectors on the board) with no success so far.

I don't really need USB MIDI (though the USB MIDI part of the reference sw_usb_audio didn't seem to work too), I want to be able to receive/send MIDI commands from my firmware via those pair of DIN5 connectors. So, I've found app_midi_simple.xc from lib_xua tests, adjusted its CMakeLists.txt to set target like set(APP_HW_TARGET xk-audio-316-mc.xn) and set ports to PORT_MIDI_OUT and PORT_MIDI_IN. Then I have adjusted the transmit function to just send one command midi_send_data(c_midi, byterev(tx_packet)). When I monitor what's being sent on the other side — I get some garbage, regardless of what I am trying to send.

What am I missing? How to properly send/receive MIDI data via the built-in DIN5 connectors? Are they supposed to work?

Thanks.