Solved
Enabling USART2 on STM32F413
Hello!
I am wondering what the high level process for enabling a USART port is.
I am enabling
RCC_AHB1ENR_GPIODEN
RCC_APB1ENR_USART2EN
But the TX line stays low. I am guessing it has to do with the clock?
Thanks
Hello!
I am wondering what the high level process for enabling a USART port is.
I am enabling
RCC_AHB1ENR_GPIODEN
RCC_APB1ENR_USART2EN
But the TX line stays low. I am guessing it has to do with the clock?
Thanks
Enable the clocks (GPIO and USART)
Config the pins, AF MODE, associate the AF (Alternate Function) mux with the setting for the given peripheral. There's a table in the Data Sheet/Manual
Config the USART, baud rate based on APB clock, enable RX/TX, enable UART
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.