mattomatto
Well-known member
Hi all,
I'm using Teensy 3.1 and I have two programs in my teensy flash and I can jump between them. Everything appears to be working nicely except they both require USB MIDI.
When running the first program at the start of flash, the midi works fine, but when jumping to the program at another position in flash, the MIDI no longer works. The port is visible, but will not send or receive.
I believe I need to shutdown the usb entirely and reinitialise it to get it working. I've found usb_shutdown() and usb_init() in usb.c, but cannot call these functions from within setup() or loop() (Cannot find function declaration)
Any help would be greatly appreciated
Matt
I'm using Teensy 3.1 and I have two programs in my teensy flash and I can jump between them. Everything appears to be working nicely except they both require USB MIDI.
When running the first program at the start of flash, the midi works fine, but when jumping to the program at another position in flash, the MIDI no longer works. The port is visible, but will not send or receive.
I believe I need to shutdown the usb entirely and reinitialise it to get it working. I've found usb_shutdown() and usb_init() in usb.c, but cannot call these functions from within setup() or loop() (Cannot find function declaration)
Any help would be greatly appreciated
Matt