Skip to main content
Rankersbo
Visitor II
February 11, 2020
Question

Getting a USB Device working

  • February 11, 2020
  • 1 reply
  • 674 views

I have been given a board with a STM32L4 MCU on it.

Basic features are

USB connection

USART

QSPI bus connection to flash memory.

I have managed to get a bare bones App working using CUBEMX.

Eventually this should look like a memory stick from the USB perspective. So hooking up the flash memory device on the QSPI bus to the USB MSD class is on the work plan.

However, before that, as part of debug and development I would like to hook the USART up to the USB port, essentially have the device act as a USB-Serial converter.

Can anyone point me to relevant application notes or datasheets for this? Surely one of the many example projects must do something along these lines?

This topic has been closed for replies.

1 reply

Mike_ST
ST Technical Moderator
February 11, 2020

In the STM32CubeL4 package you'll find some example:

For USART over USB: STM32Cube_FW_L4_V1.15.0\Projects\32L496GDISCOVERY\Applications\USB_Device\CDC_Standalone

For Mass Storage: STM32Cube_FW_L4_V1.15.0\Projects\32L496GDISCOVERY\Applications\USB_Host\MSC_Standalone

https://www.st.com/en/embedded-software/stm32cubel4.html

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.