Skip to main content
Associate II
July 3, 2025
Question

FreeRTOS - USB CDC not working with USART1

  • July 3, 2025
  • 4 replies
  • 574 views

Moved from this discussion as it's linked to the embedded software USB and FreeRTOS.

My problem has always been that when USB and USART1 are working at the same time, USB as a virtual serial port is not working properly. In my code, two different threads were opened to test, one thread for usart1 and the other thread for the USB virtual serial port. Don't know what's wrong with this?

This topic has been closed for replies.

4 replies

ST Technical Moderator
July 3, 2025

Hello @jack_wang 

Could you share your interrupts priorities settings please.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
jack_wangAuthor
Associate II
July 4, 2025

jack_wang_0-1751590928529.png

 

ST Technical Moderator
August 6, 2025

Hi @jack_wang 

 

Which STM32 / board are you using?  Why do you use two different threads for the same interface? 
Attached example might help you!

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL