cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery board to PC interface

waheed901
Associate II
Posted on November 25, 2015 at 06:23

Hi everyone,

I just want to seek your guidance and help in accessing 12 signed 32 bit integers, which are calculated by using STM32F4 Discovery board, in my PC, through USB.

I read many codes/post on different forum and could not figure out from where to start. I am very much beginner with this board so need your help. 

These variables are constantly changing and I wish to access in real time. Can anyone help me in locating suitable example so that I can start.
4 REPLIES 4
Posted on November 25, 2015 at 16:20

Hi w.a,

I advise you to refer to 

http://www.st.com/web/en/catalog/tools/PF257920

 and its 

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/CD00196932.pdf

.  It explains how to exchange data using the HID class protocols.

Also, you can have a look to the example under STM32Cube_FW_F4_V1.9.0\Projects\STM324x9I_EVAL\Applications\USB_Device\CustomHID_Standalone.

-Shahrzad-

Posted on November 25, 2015 at 23:24

I would think the most natural way to do this would be to set up the USB peripheral as a virtual Comm port so the PC can receive data through what it thinks is a standard com: port.  I have several examples of using CubeMX with Coocox's free CoIDE development environment.  The second example shows how to get this working.  You can find them at:

https://www.dropbox.com/sh/yg4iy7h6xmca7lk/AACouu73L44JaYNdtgqSV0pna?dl=0

good luck.

waheed901
Associate II
Posted on November 26, 2015 at 03:40

thank you very much for the replies. 

Actually I am not comfortable with cubeMX and using firmware for my other projects, so interested if any one can help in some examples related to the interface in firmware

thanks in advance

waheed901
Associate II
Posted on February 01, 2016 at 04:32

I need your kind help in searching out some solution for sending data as output on STM32 pins and accessing it from the computer. 

a).  I have 9 variables (16 bits), calculated in MCU and want to send them to output pins of STM32 board  (can you please share any example similar to this??)

b).  Access them on computer by any mean (USB or serial port) 

Please note that I just want to put some values on some pins of STM32 discovery board which can be read by the computer at any time. These values may be updated frequently but some check should be there that when computer is reading those values they should not be updated.

Your help in this regard will be highly appreciated.