cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data over USB using Nucleo-L053R8 ?

fakhfakh
Associate

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 .

1 REPLY 1

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..