PaulStoffregen
Well-known member
Are you doing all the USB transmit (both MIDI and Serial) from the same interrupt? That's what the code in msg #1 does. It's what I've been using to test.
If you're doing a mix of transmitting from interrupts and main program, there's very likely other issues you're triggering. The USB code has never really been very safe to use from both interrupts and main program, or from interrupts at different priority levels.
I know you're in the middle of a huge project, where making small test programs it extra work. But if you can craft another small program like the code of msg #1 which reproduces the problem, I will try to dig into the issue. I can't promise any specific time frame, and at this moment I'm focusing on merging fixes in prep for a 1.43 release. I do track issues with reproducible code, so they're not forgotten... even if it takes me a while to investigate & fix.
If you're doing a mix of transmitting from interrupts and main program, there's very likely other issues you're triggering. The USB code has never really been very safe to use from both interrupts and main program, or from interrupts at different priority levels.
I know you're in the middle of a huge project, where making small test programs it extra work. But if you can craft another small program like the code of msg #1 which reproduces the problem, I will try to dig into the issue. I can't promise any specific time frame, and at this moment I'm focusing on merging fixes in prep for a 1.43 release. I do track issues with reproducible code, so they're not forgotten... even if it takes me a while to investigate & fix.