Re: Serial Driver --> Unable to open COM1 Port ( transport and download port)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Apr 19, 9:40 pm, "GraemeW" <gwin...@xxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Ok so you're using serial for download and then swapping it to kitl
afterwards?

If this is the case you won't have a driver loaded on COM1 instead it is the
kernel talking to the HW directly, you need to make sure that the kernel
isn't using this hardware (i.e. that kernel serial kitl code is turned off)
and load a 16550 driver or similar onto the HW (as you are for COM2 i think)

--
GraemeW
Blog -http://ce4all.blogspot.com

"Imti" <imtiazkh...@xxxxxxxxx> wrote in message

news:1176980664.727733.262380@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



On Apr 19, 3:37 pm, "GraemeW" <gwin...@xxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
The kernel will communicate to the serial port directly for your debug
output (i.e. there is no CE driver needed), the other com port accessable
to
applications will require a 16550 or other loaded and registers in the
system, check this driver is loaded in the modules on pb if you have a
debugger present (or under the HKLM\drivers\active\)

--
GraemeW
Blog -http://ce4all.blogspot.com

"Imti" <imtiazkh...@xxxxxxxxx> wrote in message

news:1176976927.935137.167150@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

Our target has two COM ports, one for debug(COM2) and other for
transport and download port (COM1).

We are able to download the image on to the target and view the
messages on to the debug port and tested several applications and
drivers (SD Card,USB).

Now we are developing the applications which will be using the COM
ports for reading/writing data to external devices connected through
COM ports.

I am able to open, read/write on COM2 port i.e. debug port.

But I am unable to open the transport port i.e. COM1. I assume that
COM1 port is locked by either bootloader or OAL code

Could any one help me in this regard....

Here are some target details.

Processor : OMAP
WINCE 5.0

We are using COM_MDD2.LIB only

Thanks in advance...

Regards,

Imtiaz Khan.K.- Hide quoted text -

- Show quoted text -

Hi GraemeW,

Thanks for your info......

If I am not wrong you have not got my question (i.e. due to my bad
description of the problem)

I have two COM port, one for debug(COM2) and other for download
(COM1).

Now I want both the COM ports to be used by applications for reading/
writing data from external devices connected to it. To do this

I have to release both the COM ports for the application. ( This is
what I think I should do).

COM2 is used for debug messages. I have redirected the output onto the
console (COM2).

I have written two applications for accessing COM1 and COM2 ports.

I am able to open COM2 port and perform read/write through the
application .

But the other application I am unable to open the COM1 port. (Download
Port).

Application will be using the serial driver (COM_MDD2.LIB --> What we
have included)

If some library or dll is missing then COM2 port application should
not have worked as COM1 application.

any help in this regard for accessing COM1 for application.

Regards,

Imtiaz Khan.K.- Hide quoted text -

- Show quoted text -

Hi,

Ok so you're using serial for download and then swapping it to kitl
afterwards?

No, after download (we don't want KITL), once image comes up on
target, our application should take control of COM ports. So for these
drivers are required.??

Once the image comes up, if we run application for accessing COM2
port(debug port) for read/write. The application runs successfully.

But If we run application for accessing COM1 port(transport and
download port) for read/write. The application gives me error.

Unable to open COM1 port. I think it has been locked by either
bootloader or OAL ?? I think so...

Did u get my problem ???

Regards,

Imtiaz Khan

.



Relevant Pages

  • Re: How to send a simple MIDI-note on a soundcard?
    ... to find the port you want, you can do something similar to: ... I thought it would be easy to access sound card via kernel streaming. ... May I create a Miniport driver like in src\wdm\audio\mpu401 sample with my ...
    (microsoft.public.development.device.drivers)
  • Re: Problem: 2.6.x and network (e1000 Intel 82546EB)
    ... > after installing a fresh sarge on a Sun (dual XEON) with two ... > worked fine so far with the default 2.4.x kernel. ... > use e1000 as the driver and the official kernel images ... 2.6.x that affects the ordering of which port gets assigend as eth0 and ...
    (Debian-User)
  • Re: Enabling sound?
    ... pciconf -l -v and reply with the portion that matches the card. ... >> ppc0: parallel port not found. ... to find the driver for your card. ... And it's a quick way to kernel panic on boot (the note in the GENERIC ...
    (freebsd-questions)
  • Re: Serial Driver --> Unable to open COM1 Port ( transport and download port)
    ... Ok so you're using serial for download and then swapping it to kitl ... If this is the case you won't have a driver loaded on COM1 instead it is the ... transport and download port. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: nvidia drivers
    ... > installing the drivers using the port. ... > On a fresh install of 5.3, I installed te nvidia driver using the port ... Kernel still running generic install ...
    (freebsd-questions)