Re: Can't open Serial port



Since you can receive the printed messages, then you can not open the
COM1 using application. If you want to open it, please disable the
COM1's debug function. Nothing needs to do to your driver. Just close
the COM tools, such as the SecureCRT or other serial tools, then you
can open the COM1.

If you can not open it yet, then you'd better check your COM driver.

On Jul 16, 8:46 am, John <J...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

I am new to platform builder. I am trying to build a Wince 6.0 OS supporting
the COM ports. But I can not open the COM port (COM1) when running my
application code on the OS I built. It tells me an unexpected error happened

at System.IO.Ports.SerialStream.WinIOError()
at System.IO.Ports.SerialStream.CheckResult()
at System.IO.Ports.SerialStream.SetBufferSoze()
at System.IO.Ports.SerialPort.Open()
at ...
...

But I can receive these error messages from the COM1. So, the hardware is
ok. In fact, my code (and COM1) runs ok with a sample "NK.bin" came with my
development board. I contacted my board vendor. They think I need download
updates from Microsoft. I did have downloaded CF service pack 2 before which
solved a problem regarding the breakpoint. What microsoft update I may need
to download this time? Any suggestions?

Many thanks.

.



Relevant Pages

  • RE: Cant open Serial port
    ... Bruce.Eitman AT EuroTech DOT com ... But I can not open the COM port (COM1) when running my ... They think I need download ... What microsoft update I may need ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Cant open Serial port
    ... My board vendor will look into this problem for me next week. ... But I can receive these error messages from the COM1. ... They think I need download ... What microsoft update I may need ...
    (microsoft.public.windowsce.platbuilder)
  • hyperterminal connection
    ... When trying to use hyperterminal to download a datalogger, I get a message: "cannot find COM1" even though I just disconnected from COM 1. ... I have had to reboot at least twice to re-establish a connection. ...
    (microsoft.public.windowsxp.general)

Loading