Search found 5 matches

by AlexSV
Tue Jun 25, 2024 5:38 am
Forum: Hardware Interface Issues
Topic: Unexpected 0x00 on the UART bus when starting data exchange.
Replies: 8
Views: 4591

Re: Unexpected 0x00 on the UART bus when starting data exchange.

Possibly, but only if there is no 0x01 or 0x02 command code before it.
by AlexSV
Mon Jun 24, 2024 9:19 pm
Forum: Hardware Interface Issues
Topic: Unexpected 0x00 on the UART bus when starting data exchange.
Replies: 8
Views: 4591

Re: Unexpected 0x00 on the UART bus when starting data exchange.

Yes, I saw it. I rewrote the function, now everything works as it should. void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { if(huart == &huart1) { if (RxData == 0xAA) {flag0 = 1;} if (RxData == 0x01 && flag0) {flag1 = 1;} if (flag0 && flag1) { RxData0[n] = RxData; n++; if(n==9) { n=0; flag0=...
by AlexSV
Mon Jun 24, 2024 8:23 pm
Forum: Hardware Interface Issues
Topic: Unexpected 0x00 on the UART bus when starting data exchange.
Replies: 8
Views: 4591

Re: Unexpected 0x00 on the UART bus when starting data exchange.

Thanks for the answer, I'll rewrite the code.
by AlexSV
Mon Jun 24, 2024 4:17 pm
Forum: Hardware Interface Issues
Topic: Unexpected 0x00 on the UART bus when starting data exchange.
Replies: 8
Views: 4591

Unexpected 0x00 on the UART bus when starting data exchange.

Hi everyone! I encountered strange behavior of UART when sending data from KFLOP. I'm trying to send two doubles(double a=23.45006, b=9e6;) using the SendDouble.c program, 2ms before the start of the exchange, 0x00 flies over the bus and ends up in the receiver buffer, how can I fix this? In this sc...