2021-09-07 09:43 AM
2021-09-07 10:51 AM
Before reinitializing, reset the peripheral with the RCC force/release reset bits to get it back to the as-reset configuration.
__HAL_RCC_USART1_CLK_ENABLE();
__HAL_RCC_USART1_FORCE_RESET();
__HAL_RCC_USART1_RELEASE_RESET();
The initialization is likely expecting this to be as-reset.
2021-09-07 11:30 AM
DMA would need to be 16-bit for the 9-bit mode.
Perhaps you could double check the content of the DMA controller registers, and share those. If this is a bug it could probably be added to the list.
2021-09-07 01:35 PM
> doesn't work interrupts
Which interrupts? How do you know they don't work?
Debug as usually: read out and check relevant UART, DMA, NVIC registers.
JW