cancel
Showing results for 
Search instead for 
Did you mean: 

USB CDC FreeRTOS Not Working after enabling the FreeRTOS

Shikamaru
Associate III

Hi team,

             I am using STM32F7 for my work, am facing one issue regarding USB CDC Class, whenever am using it without enabling this macro everything is working fine, however as soon as i enabled this macro system will stop working itself, it will not even detect the device. Is there anything additionally i need to do to enable this. 

 

#define USBH_USE_OS      1U

 

 As per my knowledge , when am not using this OS enabled USB , I am calling this USBH_Process() within infinite loop. and after enabling it , no need to call this function inside infinite loop ryt? Kindly help me to clarify these doubts. 

Regards,

Shikamaru

1 REPLY 1
Saket_Om
ST Employee

Hello @Shikamaru 

You should handle the USB operations in FreeRTOS task or thread not in infinite loop. 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om