2016-05-25 02:11 PM
I'm trying to use CubeMX to generate code for a STM32L4 Discovery board. I'm trying to get a virtual com port working over the user usb port, not the usb st-link. I can't manage to get this to work. I have the drivers installed on my PC host, and it recognizes the st-link as a VCP, but not the user usb port. In my CubeMX project I have enabled the USB_DEVICE as a Communication Device Class (Virtual Port Com). I've also enabled USART3, and set up the solder bridges per the user manual (SB24 and 25. What am I missing? Is there an existing example for the STM32L4?
#vcp #stm32l4-discovery-usbSolved! Go to Solution.
2016-05-26 01:25 AM
Hi hassan.ricardo,
I recommend you to have a look to the CDC_Standalone example under the STM32L4 cube firmware package, it may be helpful:STM32Cube_FW_L4_V1.5.0\Projects\STM32L476G_EVAL\Applications\USB_Device\CDC_StandaloneAlso you find under the firmware package a set of applications about USB device based on STM32L476G-Discovery board: STM32Cube_FW_L4_V1.5.0\Projects\STM32L476GDiscovery\Applications\USB_Device-Syrine-2016-05-26 01:25 AM
Hi hassan.ricardo,
I recommend you to have a look to the CDC_Standalone example under the STM32L4 cube firmware package, it may be helpful:STM32Cube_FW_L4_V1.5.0\Projects\STM32L476G_EVAL\Applications\USB_Device\CDC_StandaloneAlso you find under the firmware package a set of applications about USB device based on STM32L476G-Discovery board: STM32Cube_FW_L4_V1.5.0\Projects\STM32L476GDiscovery\Applications\USB_Device-Syrine-2016-05-26 10:36 AM
Thanks Syrine,
That was what I really needed. I was under the erroneous idea that I needed a UART device that somehow magically connected to the USB OTG, but the firmware device does all the work already. Regards,Ricardo