Condition :
SK6812MINI LED STRIP : TIM4, DMA CH1, period-72us
USART1 : 115200
Symptom:
Lose some data while receiving on USART Rx Interrupt Mode with TIM4 working.
Typically All Interrupts have same priority in STM32.
The timer interrupt is fired very often, and it affects USART Rx mode. During receiving USART Rx Interrupt, Timer interrupt preempts USART Interrupt. So, USART loses some data.
Solving Problem:
1. Make USART interrrupt priority higher than timer interrupt priority.
2. Do not use timer to control LED Strip. Should consider MCU performance.
3. Use DMA with USART Rx Mode.