Associate III
May 10, 2020
Question
UART losing the first byte
- 4 replies
- 6330 views
Hi
I am a beginner and I am studding STM32F448 with a nucleo board. Program used "System Workbench for STM32". My problem is quite ***** and I hope that someone can help me.
That program allow to the the user to send a string and the cpu, when receive the character "\n", send back the string. so if I send "Home\n", the cpu should send me back the same string.
What is happening is that at the first connection sending "Home\n", I receive "ome\n" where "H" is replaced with a null character (0x00). After this first communication, all is fine: i receive what i send. it seems like that i loose the first byte.
Thanks a lot in advance
