AnsweredAssumed Answered

USART doesn't transmit first character

Question asked by busi.giorgio on Mar 25, 2013
Latest reply on Mar 19, 2014 by sanil.prem
Hi,
I have a problem with transmitting character through USART3 port in STM32F207.
Here there is the USART configuration code:


--------------
USART_DeInit(USART3);
USART_InitStructure.USART_BaudRate = 115200;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;
USART_InitStructure.USART_Parity = USART_Parity_No;
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
USART_Init(USARTx, &USART_InitStructure);
------------


The problem occurs when sending characters, USART doesn't send the first one (checking with hyperterminal), and then it goes on with sending the others correctly. It just misses the first one. If I debug the code, this trouble doesn't occur and the transmission is correct. 
At the moment I'm sending a "\r" character at first, in order to send the correct string later, but this is not so reliable.
Does anybody knows something about that?


Thanks 
Stefano

Outcomes