I am using STM32F3xx_HAL_Driver with my STM32F303VD MCU. When I am erasing 1-3 pages of flash memory with HAL_ERR_TYPE HAL_FLASHEx_Erase (&eInit, &status) subroutine, my USART2 seems to overflow.
I have the USART2 setup for RTS/CTS flow-control and Rx DMA for one byte transfers into a ringbuffer. The problem isn't that the ringbuffer is overflowing, it appears that the DMA process is stalled during the erase flash pages operation and the UART...