Skip to main content
AKruh.1
Associate II
March 5, 2022
Question

I use FREERTOS and UART and my info in COM port is breaking

  • March 5, 2022
  • 2 replies
  • 1448 views

I want the information in one thread to be processed, and the second thread to be sent via UART. I made a small template where I send pseudo data via UART. But my information does not come in the right way. I think it has to do with interrupts. I used semaphores but it didn't help. 0693W00000KbVblQAF.png0693W00000KbVbbQAF.png

This topic has been closed for replies.

2 replies

AKruh.1
AKruh.1Author
Associate II
March 5, 2022

UART does not have time to send a full message with the phrase "Error in Receiving Queue\r\n". The program goes on. How to make sure that the message has time to come?

TDK
March 5, 2022

A 10ms timeout seems too low. What is the baud rate?

The string lengths your sending do not include the trailing /r/n on the second call.

Calls should work just fine otherwise. Perhaps you are sending data in other threads as well. The output doesn't like up exactly with what you're sending.

"If you feel a post has answered your question, please click ""Accept as Solution""."