USB not recognized by PC in FreeRTOS
Hi, I want to get log using Type-c, and using freertos to run all the tasks.
setting:
MCU STM32L4A6VG
STM32CubeIDE 1.12.0
STM32CubeMX 6.8.0
tera term 4.106





when i insert Type-c, device manager return the unknown usb.


I try some methods:
1. put MX_USB_DEVICE_Init() before MX_FREERTOS_Init() -->unknown usb error 43
2. put MX_USB_DEVICE_Init() in task -->unknown usb error 43
3. increase MINIMAL_STACK_SIZE to 1024 -->unknown usb error 43 (ref: https://community.st.com/t5/stm32cubemx-mcus/nucleo-h723zg-usb-cdc-communication-not-working-when-using/m-p/662907 )
4. change clock output -->unknown usb error 43(ref: https://community.st.com/t5/stm32cubemx-mcus/unknown-usb-device-on-stm32f429zi-device/m-p/75508 )
5. i dont think i need interrupt in usb, but this ref make me confused (ref:https://community.st.com/t5/stm32-mcus-embedded-software/stm32g0b1-usb-device-not-recognized-in-windows-10/m-p/135939 )
It will be very helpful if any one tell me something. Thank you.
