STM32 UART basic comunication
Hi,
my first example for RS232 communication and my first problem.
I have this output in the terminal:
5 ''! Ëå˙˙˙ <00> 5 ''! Ëå˙˙˙ <00> 5 ''! Ëå˙˙˙ <00> 5 ''! Ëå˙˙˙ <00> 5 ''! Ëå˙ <00> 5 ''! Ë <00> 5 ''! Ëå˙˙˙ <00> 5 ''! Ëåë <00> 5 ''! Ëåë <00> 5 ''! ëå˙˙˙ <00> 5 ''! ëå˙˙˙ <00> 5 ''! ëå˙˙˙ <00> 5 ''! ëå˙˙˙ <00> 5 ''! ëå˙˙ 00 <00> 5 ''!
...
I can use another board (processor), but the result is the same.
Tested on STM32F407VE, STM32F103, ...
My code is very simple:
uint8_t data[10] = "Hello\n\r";
while (1)
{
HAL_UART_Transmit(&huart2, data, 10, 100);
HAL_Delay(100);
}
Speed and other communication parameters on both sides the same
Some idea.
Thank you