STM32F767ZI USART abnormal Rx in interrupt mode
- 1 reply
- 865 views
I do my code with CUBEMX 5.6.0 with en.STM32Cube_FW_F7_V1.16.0 & Atollic 9.2.0.
My trouble :
when i send a data by USART3 (using putty or the terminal in Atollic) even if i set that i want to recive 1 byte the HAL_UART_RxCpltCallback is fired two time (like i set i want recive 2 byte), why it happen? What wrong i do?
I attach the file that i write/change using CUBEMX & Atollic => main.c & stm32f7xx_it.c, and a screenshot.
I try some solution (are commented inside the function) but i don't find one.
In the picture you can see:
1) If i send only one char, in the console i see the char that i send and an \r (i see it using debug ), and no error occured;
2) If i send 2 char, in the console i see the 2 char that i send, and no error occured;
3) If i send 3 char, in the console i see only 2 char, and no error occured;
I write HAL_UART_ErrorCallback in this way only for debug test.
