2020-02-11 05:27 AM
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?
2020-02-11 07:39 AM
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