2014-10-19 10:48 PM
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 incorrectMy 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 openhttp://stackoverflow.com/questions/14885288/io-exception-error-when-using-serialport-openI believe it is the firmware problem, anyone face this problem and managed to solve this?2014-10-21 02:12 AM
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¤tviews=6980May I know how to implement the Zero packet length (ZPL), i tried to send data of size 0 but is not working2014-10-21 03:59 AM
''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!