cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f103 usb example (HAL)

leonardo
Associate III
Posted on February 09, 2017 at 20:44

is there any example of how to use HAL and USB (VCP) for stm32f103?

thank!

4 REPLIES 4
Imen.D
ST Employee
Posted on February 10, 2017 at 09:23

Hello

Garberoglio.Leon

‌,

You can

download the

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

firmware package and get inspired from one ofthe CDC_Standaloneexamples using the HAL driver in this path:

STM32Cube_FW_F1_V1.4.0\Projects\STM3210C_EVAL\Applications\USB_Device\CDC_Standalone

STM32Cube_FW_F1_V1.4.0\Projects\STM3210E_EVAL\Applications\USB_Device\CDC_Standalone

You may re-use sections available in the example and get inspired from them.

You need also to install the

/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fweb%2Fen%2Fcatalog%2Ftools%2FPF257938

.

Hope this helps you.

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on October 17, 2017 at 06:14

stm32f103 CustomHid? CustomClass?

Posted on October 17, 2017 at 10:34

Hi

ariverac

‌,

Look toSTM32Cube_FW_F1_V1.6.0\Projects\STM3210E_EVAL\Applications\USB_Device\CustomHID_Standalone for example.

http://www.st.com/content/ccc/resource/technical/document/application_note/82/6c/5d/1d/b8/a3/4b/a8/DM002096pdf/files/DM002096pdf/jcr:content/translations/en.DM002096pdf

provides the list of all available examples in the STM32CubeF1 package.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Posted on March 25, 2018 at 15:19

Thank, I have now implemented a USB 

CustomClass - WinUSB for stm32f407x and stm32f103xx