cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a USB Device working

Rankersbo
Associate

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?

1 REPLY 1
Mike_ST
ST Employee

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