cancel
Showing results for 
Search instead for 
Did you mean: 

USB CDC VCP Help!

ryan239955_stm1
Associate
Posted on March 06, 2016 at 09:28

Hi,

I recently got a ST Nucleo board (Nucleo F070RB) and want to develop a device where it uses the on board USB (of the microcontroller) as a virtual com port.

I've been able to configure a test project which has setup the USB Com port fine. (I am using the USB pins from the MCU and not the ST Link one).

However I'm now at the stage of trying to figure out how to send stuff from the MCU to the host computer. Apart from the setup to do the configuration of the MCU I can't find any documentation of how to actually use it.

If anyone would be able to help it would be appreciated.

Thanks -

Ryan Walmsley

#stm32-usb-cdc-cubemx #stm32-usb-cdc-vcp
2 REPLIES 2
Walid FTITI_O
Senior II
Posted on June 30, 2016 at 15:21

Hi walmsley.ryan.001,

I recommend you to check the ''STM32Cube USB device library'' User manual UM1734, at 6.5 Communication device class (CDC) part.

You should take a look and run the ''CDC_Standalone'' example in

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/patch-cubefw-f0.html

at this path STM32Cube_FW_F0_V1.2.0\Projects\STM32072B_EVAL\Applications\USB_Device\CDC_Standalone

-Hannibal-

Muhammad Moiz khan
Associate II
Posted on November 08, 2016 at 13:08

If you are using Standard Peripheral library then you can use this one for STM32F070.

Download link

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries-expansions/stsw-stm32092.html

 Path

~\STM32F0x2_USB-FS-Device_Lib V1.0.0\Projects\Virtual_COM_Port

Regards,

Muhammad Moiz khan