there is a major blocking point which will prevent us from implementing this properly in MIOS32: there isn’t enough code space available in the bootloader range for a USB descriptor which enables 5 USB Ports.
With this assumption I never considered that “service functions” are accessed from an USB port other than USB0.
-> it will never work properly under all conditions!
MIOS32_USB_MIDI_PackageSend: add “package.cable = (package.cable + 1) % 5” at the top
MIOS32_USB_MIDI_PackageReceive: add “package->cable = (package->cable + 1) % 5” at the bottom.
You have to recompile and install the modified bootloader first before you will be able to use such a change in your application.
-> make in bootloader/src first, thereafter make in bootloader/updater
A perl installation is required to generate the bootloader/updater/bsl_image_* files
No guarantee that it will work! (could be that I overlooked something)
It should be clear, that Bootloader HOLD mode won’t work thereafter anymore, because the bootloader will listen to a non-existing USB cable. Much more code changes would be required to get this working, but I won’t have the time to support you on such a topic (for a nice-to-have, but not necessary feature from my point of view)