cancel
Showing results for 
Search instead for 
Did you mean: 

usb hid stm32

elec_st
Associate III
Posted on February 28, 2014 at 16:50

i use stm32f4 discovery board with  keil ide.

but i can't know from where i can start with stm32 . '' i was use usb with pic microchip ''

i just want transfer data between pc and stm32f4 using usb.

3 REPLIES 3
chen
Associate II
Posted on February 28, 2014 at 17:06

Hi

''i use stm32f4 discovery board .''

Is the board you are talking about this one :

http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419

'' i want to use usb''

'' i just want transfer data between pc and stm32f4''

HID = Human interface device (eg mouse, keyboard or joystick)

CDC = serial comms device (eg virtual RS232)

MSC = Mass Storage Device (eg memory stick)

CDC is probably the easiest.

On the link above - look under ''Related Tools and Software''

''

STM32F4DISCOVERY board firmware package, including 22 examples (covering USB Host, audio, MEMS accelerometer and microphone) (AN3983)

''

Should have some examples for USB devices
elec_st
Associate III
Posted on March 01, 2014 at 20:05

thank you

yes i have this board in your link.

''

STM32F4DISCOVERY board firmware package, including 22 examples (covering USB Host, audio, MEMS accelerometer and microphone) (AN3983)

''

i  already  have this file  . and it's use usb host and it's not easy and not why i want.

cdc are i have usb to rs232 convertter chip  i want to connect stm32 with usb  not rs232.
chen
Associate II
Posted on March 03, 2014 at 10:44

Hi

''i  already  have this file  . and it's use usb host and it's not easy and not why i want.

cdc are i have usb to rs232 convertter chip  i want to connect stm32 with usb  not rs232.''

Here is the library code for USB :

www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257882

It should contain examples of USB devices (including USB CDC - serial device).

The examples are for the range of processors (not specific for your board).

(I think the CDC example also mixes USB CDC with the USART)