Hello,
I am building a MIOS8 board that works for 4-5 weeks. I updated code in order to code a the Midi Thru function, and I added the following code :
/////////////////////////////////////////////////////////////////////////////
// This function is called by MIOS when a MIDI byte has been received
/////////////////////////////////////////////////////////////////////////////
void MPROC_NotifyReceivedByte(unsigned char byte) __wparam
{
static char fx_status;
// normal MIDI events are forwarded in MPROC_NotifyReceivedEvnt
// this function handles sysex and realtime messages
if( byte & 0x80 ) { // Status message
if( byte >= 0xf0 )
MIOS_MIDI_TxBufferPut(byte); // transfer byte
// determine status
if( byte == 0xf0 ) {
fx_status = 0xff; // forward until 0xf7
} else if( byte == 0xf7 ) {
fx_status = 0; // f7 reached, no forward
} else if( byte == 0xf1 || byte == 0xf3 ) {
fx_status = 1; // expecting one additional byte
} else if( byte == 0xf2 ) {
fx_status = 2; // expecting two additional bytes
} else {
fx_status = 0; // expecting no additional byte
}
} else {
// check if fx status active
if( fx_status ) {
// forward data byte
MIOS_MIDI_TxBufferPut(byte);
// decrement counter if required
if( fx_status != 0xff )
--fx_status;
}
}
}
Unfortunately, since I update this code, I can not contact my midibox thanks to MIOS studio.
Here is the error message of the MIOS Studio:
Detected MIOS8 and MIOS32 response - selection not supported yet!
Check MIDI IN/OUT connections
and Device ID!
My MidiBox still works, and the MIOS Studio still receives the Debug-Message.
Is there a way to reset the chip or send a blank code? I do not have the burner.
Thank you for your help.