AnsweredAssumed Answered

Why USB CDC + FreeRTOS code created by CubeMX does not work?

Question asked by nahvi.mohamad on Jul 15, 2017
Latest reply on Jul 15, 2017 by Imen D

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??

Attachments

Outcomes