Skip to main content
ho_it
Associate III
October 20, 2014
Question

STM32F2xx VCP Open Port Failed

  • October 20, 2014
  • 11 replies
  • 2658 views
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?
    This topic has been closed for replies.

    11 replies

    chen
    Associate II
    October 21, 2014
    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!