Skip to main content
Visitor II
March 14, 2023
Question

How to send data over USB using Nucleo-L053R8 ?

  • March 14, 2023
  • 1 reply
  • 1191 views

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 .

    This topic has been closed for replies.

    1 reply

    Graduate II
    March 15, 2023

    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