I am trying to transfer a character using uart in stm32f030 to pc , done with initialization with uart config there is no errors but I am not able to see data sent .please help
void uartInit()
{
USART_InitTypeDef uartInitStruct;
GPIO_InitTypeDef gpioInitStruct;
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE);
gpioInitStruct.GPIO_Pin = GPIO_Pin_9 | GPIO_Pin_10;
gpioInitStruct.GPIO_Mode = GPIO_Mode_AF;
gpioInitStruct.GPIO_OType = GPIO_OType_PP;
gpioInitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
gpioInitStruct.GPIO_Speed = GPIO_Speed_Level_1;
GPIO_Init(GPIOA,&gpioInitStruct);
uartInitStruct.USART_BaudRate = 9600;
uartInitStruct.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
uartInitStruct.USART_WordLength = USART_WordLength_8b;
uartInitStruct.USART_Parity = USART_Parity_No;
uartInitStruct.USART_StopBits = USART_StopBits_1;
uartInitStruct.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
USART_Init(USART1,& uartInitStruct);
}
int main()
{
uint16_t alpha= 'A';
uartInit();
while(1)
{
USART_SendData(USART1,alpha);
USART_SendData(USART1,'\n');
}
}
