cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F2xx VCP Open Port Failed

ho
Associate II
Posted on October 20, 2014 at 07:48

I am using STM32F2xx and I emulate it as a VCP driver, I used the sample code from STM32 for the USB device example

I wrote a .NET application to open the serial port communication, but I have problem to open the port.

The error stack is below:

System.IO.IOException The parameter is incorrect

My problem could be well summarised in the link below, I have the identical problem with it! I could open the serial port using a terminal program(TeraTerm) but my application cant open

http://stackoverflow.com/questions/14885288/io-exception-error-when-using-serialport-open

I believe it is the firmware problem, anyone face this problem and managed to solve this?
11 REPLIES 11
ho
Associate II
Posted on October 21, 2014 at 11:12

I have found the problem, after reading this post, I managed to receive the data every 1ms

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FVCP%20with%20STM32&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=6980

May I know how to implement the Zero packet length (ZPL), i tried to send data of size 0 but is not working

chen
Associate II
Posted on October 21, 2014 at 12:59

''May I know how to implement the Zero packet length (ZPL), i tried to send data of size 0 but is not working''

Pass. I only work on the STM32, a colleague of mine does the PC programming.

I told you before - This Is NOT the forum for PC programming!