Skip to main content
ryan239955_stm1
Visitor II
March 6, 2016
Question

USB CDC VCP Help!

  • March 6, 2016
  • 2 replies
  • 817 views
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
This topic has been closed for replies.

2 replies

Walid FTITI_O
Visitor II
June 30, 2016
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-

November 8, 2016
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