2012-11-13 05:37 AM
Hi,
I am using the MCBSTM32E evaluation board to control some motors. I want to use my PC (Windows XP) to drive/record test data. Does anyone have an opinion on which interface is easiest to set up for communicating with a Windows PC? (e.g. USART, CAN, USB, etc.) Thanks for any info! #weakest-link #use-a-com-port2012-11-13 04:13 PM
may as well use the built in usb stack, using the cdc example floating around with libusb you could have data running back and forth in no time :)
2012-11-13 07:15 PM
Russel: ''You could have data running back and forth in no time!''
and Gen. Custer: ''Indians are not known to gather @ the Little Big Horn!'' ''famous last words'' - somehow comes to mind...2012-11-14 03:52 AM
Yea, the MCBSTM32E evaluation board has a CAN interface on it and comes with some sample code to run it with supporting libraries.
Seems complicated though to set up on the PC end so will probably go with the USART connection. Thanks very much, Lisa2012-11-14 06:29 AM
''Yea, the MCBSTM32E evaluation board has a CAN interface on it''
I think the question/surprise was more that you had a PC with CAN interface & drivers?2012-11-14 06:38 AM
''question/surprise was more that you had a PC with CAN''
Wager 100 pounds sterling that she does not!2012-11-14 09:28 AM
''Wager 100 pounds sterling that she does not!''
Hence the surprise!2012-11-15 03:38 AM
Sorry, my misunderstanding - yes, you win £100; I do NOT have a CAN interface on my PC. :)
Lisa2012-11-17 06:11 AM
'
''famous last words'' - somehow comes to mind...
'hehe, in my defence i was able to have my stm32f4 talking to libusb in a few minutes using the cdc example found here, once you get it working you just tailor it to do what you want :)stm codehttp://dl.dropbox.com/u/56124886/stm32f4-discovery/stm32f4-discovery-usb-cdc-example.zippc libusb codehttp://dl.dropbox.com/u/56124886/stm32f4-discovery/usbTest.zipin your case you will have to make a few other changes as your using a different stm32 chip.2013-05-24 01:14 AM
Hi All,
Although a little late, I just wanted to follow up: I did use the serial port with a serial to USB adapter and the Hyperterminal feature in Windows. As Clive, Neil, and John all wisely advised, it was pretty painless and worked fine. Thanks everyone, Lisa2015-06-09 11:47 PM
Could you please share that code. Because old links are non relevant now. Tnx.