USART1 initialization problem
Hello,
I use stm32f303 discovery board and try to enable usart 1 as described in ..stm32cuvef3/projects/STM32303C_EVAL/uart/hyperterminalDma example.
When I set USART1 and it's relative pin and ports I see the output as expected but I am not able to send anything to the microcontroller. Receive interrupt doesn't even fire.
#define USARTx_TX_PIN GPIO_PIN_4
#define USARTx_TX_GPIO_PORT GPIOC
#define USARTx_TX_AF GPIO_AF7_USART1
#define USARTx_RX_PIN GPIO_PIN_5
#define USARTx_RX_GPIO_PORT GPIOC
#define USARTx_RX_AF GPIO_AF7_USART1I try to swap the receive pin to PE1 which also has the alternative functionality of USART1
it doesn't trigger the interrupt, again.
Finally when I change the port to USART2 and its relative pins as..
#define USARTx_TX_PIN GPIO_PIN_2
#define USARTx_TX_GPIO_PORT GPIOA
#define USARTx_TX_AF GPIO_AF7_USART2
#define USARTx_RX_PIN GPIO_PIN_3
#define USARTx_RX_GPIO_PORT GPIOA
#define USARTx_RX_AF GPIO_AF7_USART2in this way I can send and receive using dma as expected without problem.
What is the issue here?
Is there anybody who is faced the problem and solved it ?
Thanks in advance :grimacing_face: