STM32F4 USART IRQ Problem
I am using USART2 (with IRQ) of STM32F4 for MIDI Receive (31250 bd, 8 Bit, 1Start/Stop Bit). A MIDI Message has normally 3 Bytes following directly on each other, which gives each Byte a duration of ca. 320us.
In 1 of 10-30 events one Byte (always Byte 2 or 3) is missing and the ORE Bit is on. This is strange because USART2 IRQ has highest priority, and the IRQ Routine takes max. 30us (measured not estimated). No other routine blocks this IRQ.
I checked the USART2-In port of the STM32F4 with my Logic Analyser. On the Analyser all 3 Bytes are present (if ORE Bit is on).
Has anybody an idea??