cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I get a usb-cdc example for STM32F7?

AlaaM
Associate III

Where can I get a usb-cdc example for STM32F7?

Someone linked a working example for L4 here:

https://community.st.com/s/question/0D50X00009XkYWiSAN/usb-cdc-example-for-stm32l432

But the link is dead.

2 REPLIES 2
Khouloud GARSI
Lead II

Hi @Community member​ ,

You can download the STM32F7Cube package. There is two examples titled "CDC_Standalone", one when the STM32 USB peripheral is configured as host ans the second one is for the device mode.

Depending on your application and device, you may found the examples under the path below:

STM32Cube_FW_F7_V1.12.0\Projects\[BOARD]\Applications\USB_Device (or USB_Host)

Link to download the Cube package:

https://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-mcu-packages/stm32cubef7.html#design-scroll

Khouloud.

AlaaM
Associate III

Thanks I found it. But they just initialize the device there... I was looking for examples of connection / disconnection handling and data transferring.

The problem with connection / disconnection handling is that there's no option to add user code (cube will overwrite it...)