2020-06-24 08:54 AM
I use Atollic IDE v9.3.0 and Segger J-Link J-Trace Pro and built in STlink sometimes.
Using the STM32cube mx v5.6.1 I generated projects for USB CDC class with STM32303E- EVAL and NUCLEO-F303RE, neither board is recognized by the USB host (PC with Win10).
Using STM32303E- EVAL, I configure PB8 (USB Disconnect) as Output Low by default.
I found the USB library STM32_USB-FS-Device_Lib_V4.1.0, there is a project Virtual_COM_Port and running this project the usb is recognized by the host and it shows that STM Virtual Com port is connected.
While debugging cube mx generated project I see that the USB->CNTR register has set FSUSP: Force suspend bit which is not set if I am debugging project from the STM32_USB-FS-Device_Lib_V4.1.0 library.
Also for some reason the USBD_StatusTypeDef USBD_Start(USBD_HandleTypeDef *pdev) function from the usbd_core.c file is empty.
Can someone tell me what I can do to make the USB CDC working on stm32f303?