Associate II
July 15, 2017
Solved
Why USB CDC + FreeRTOS code created by CubeMX does not work?
- July 15, 2017
- 4 replies
- 1261 views
Posted on July 15, 2017 at 16:09
Hello.
I am using STM32F746BG. I use FreeRTOS and USB CDC class code.
when I create an IAR Project using STM32CubeMX, USB com port correctly identify by windows but can not open.

but if i change code like cod below, it works correctly
int main(void)
{ HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); /* USER CODE BEGIN 2 */ MX_USB_DEVICE_Init(); while(1); /* USER CODE END 2 */ MX_FREERTOS_Init(); /* Start scheduler */ osKernelStart();what is wrong??

