cancel
Showing results for 
Search instead for 
Did you mean: 

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

AKruh.1
Associate II

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

2 REPLIES 2
AKruh.1
Associate II

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
Guru

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".