# STM32F7 CubeMX FreeRTOS and USB CDC

I'm using FreeRTOS generated with the help of CubeMX. Everything was working fine until I added USB CDC unit. When I used CDC_Transmit_FS() before starting kernel, I could receive data over USB. However, when I paste the same code to thread, this is not working.

• Add code please and check if this question has any relevance in your case. – Bence Kaulics Dec 15 '16 at 18:50

#define APP_RX_DATA_SIZE  4