2023-03-14 02:10 PM
Hi community,
I am trying to use a Nucleo-L053R8 board to send data over USB without much success. The purpose of my project is simply to test the USB communication by sending string over USB Port as a first step before sending the sensor data. When I call the function CDC_Transmit_FS, hcdc is always in a busy state. After some debug, I found out that (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData in usbd_cdc_if.c is always NULL, as if it has never been initialized.
I am using STM32CubeIDE version: 1.11.2 on a WIndows 11 Laptop.
Has anyone experienced this kind of issues with this configuration ? Any help would be appreciated .
2023-03-15 03:21 PM
The USB connector on this board is NOT connected to the STM32L053R8
It is connected to the ST-LINK/V2-1, which connects to the STM32L053R8 via a USART
Use the USART to connect with the ST-LINK VCP