I have setup to run serial and specified this first:
Code: Select all
SerialConfig midiCfg;
//midiCfg.speed=31250;
midiCfg.speed=38400;
midiCfg.cr1 = 0;
midiCfg.cr2 = USART_CR2_STOP1_BITS;
//midiCfg.cr3 = 0;
palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7));
sdStart(&SD1, &midiCfg);I hook up a serial to USB cable to the output of the MIDI TX port and set my term program to 38400 8N1 and I can see whatever I send out. I set to 31250 and hook up to a MIDI device and nothing. In doing a lot of reading, I guess it's possible that I have some combination of frequency values that is causing me to not be at 31.25k bps? Not sure what to look at next.