cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F405 USB to PC (Win32/64Bit) Communication

Sandeep Dhokne
Associate II
Posted on December 31, 2017 at 10:30

I'm using STM32F405.Now I need to communicate with PC and controller using USB i.e when I connect the USb to my PC and controller ,when I sends data from the MY PC, the USB understands the those characters and send in to micro controller. how to do it??

I don't want to add any serial to usb converter,there will be direct communication between

PC<->USB<->STM32F4

Thank you.

12 REPLIES 12
Posted on December 31, 2017 at 14:04

Asked the same question three times, don't do that.

The chip supports USB directly, you must write VCP, MSC, HID, etc code on STM32F4

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on January 01, 2018 at 05:12

Thank you.

Its my apology.Due to transmission error i post 3 times.

Posted on January 01, 2018 at 13:31

I guessed that would be the reason.

The forum is currently - and has been for a number of weeks - seriously broken!

Anyhow, it's always worth including a note if you're repeating a post because you're not sure if the previous attempt worked.

Posted on January 01, 2018 at 13:35

I dunno if links to other threads will work, but:

https://community.st.com/0D70X000006SiW8SAK

 
Posted on January 01, 2018 at 13:36

Ha ha - no: 

An unexpected error has occurred

<rolls-eyes>

Posted on January 02, 2018 at 04:55

Hello,

In cubemx i did following settings

USB_OTG_FS set to : Device_Only

USB_DEVICE set to :Communication device class(Virtual Port Com).

Is it right settings to communicate with pc by USB?

I just want to communicate with PC by using USB Standard Protocol (like UART).

Which API is useful for Transmit and receive?

Thank you.

Posted on January 02, 2018 at 06:53

After installing the virtual com port driver till i faced this issue.

Driver not installed properly.

0690X00000604EVQAY.jpg
Posted on January 02, 2018 at 12:35

pls reply.

Posted on January 02, 2018 at 14:41

Try navigating to C:\Program Files (x86)\STMicroelectronics\Software\Virtual comport driver\Win8

and double click on dpinst_amd64.exe (for 64bit windows) or dpinst_x86.exe (for 32 bit windows), then try again.