Question
STM32F103VC UART5 problem
Posted on April 12, 2015 at 05:04
Hi,
I am trying to use UART5 on the STM32F103, 100 pin device. As per documents Tx and Rx pins are PC12 and PD2 respectively. I enabled clocks, initialized the port and when I try send a character (code below) USART_SendData(UART5, ch); while(USART_GetFlagStatus(UART5, USART_FLAG_TC) == RESET); control remains in while loop. This normally happens when clocks are not enabled. However I have enabled the clocks. I had earlier used UART4 on a 64 pin device without any problems. What could be wrong? Thanks for your time.