I am trying to use UART3
of STM32F103K8
to rx data in interrupt mode and tx in DMA mode.
Reception works well, but transmission has a bug: first portion of data is transmitted just fine and ISR is called.
After that, huart.gState == HAL_UART_STATE_READY
is never achieved and any subsequent transmission fails.
So, the questions are:
- Is it OK to use interrupt mode rx and DMA mode tx for single UART? Are there any examples?
- Given that all DMA channels have same preemption priority and are used havily and simultaniously, can it potentially result in data loss, IRQ conflicts or have other negative consequenses?