Jump to content


Photo
- - - - -

Using Console i/o over different midi port


  • Please log in to reply
2 replies to this topic

#1 Duggle

Duggle

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 851 posts

Posted 18 December 2011 - 07:49

I'm doing stuff with SD Card and mass storage driver.

Unfortunately this means losing the midi usb driver with the PC (when ever mass storage gets activated).

When mass storage functionality is activated on the core32, MIOS Studio loses its connection (and needs to be restarted). My solution? Use MIOS Studio with a dedicated USB to midi interface and use uart midi for flashing the program and console debug.

Problem is MIOS Studio finds the core and flashes it, but debug i/o console is not connected. Where do I define which midi port gets used for console i/o?
thanks

#2 Duggle

Duggle

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 851 posts

Posted 18 December 2011 - 11:59

well, duh.

change the default:
#define MIOS32_MIDI_DEBUG_PORT USB0
to
#define MIOS32_MIDI_DEBUG_PORT UART0

in mios32_config.h does the trick!

#3 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 13,723 posts
  • LocationGermany

Posted 18 December 2011 - 14:11

It's better to change the debug port during runtime (e.g. in APP_Init()):
  MIOS32_MIDI_DebugPortSet(UART0);

Best Regards, Thorsten.
Posted Image Buy TK a Beer Disclaimer: buying TK a beer gets you absolutely nothing in return likesuchas firmware enhancements, technical advices and MIDIbox troubleshooting assistance.