This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASSIGN serial port to virtual device

There is a nice virtual null modem cable (http://com0com.sf.net) which saves me from installing hardware on my pc to get 2 serial ports. It works well with most applications, 3rd party and self written.

To (automatically) test my ARM program, I'd like to ASSIGN one of com0com's ports as the serial device of the simulated ARM. (BTW, this is the internal UART0 of a LPC2292.) But the simulator can't use it, only COM1 to COM8.

Any suggestions what to do are welcome! It might be a hint to trick uV3 (versions: uVision3 V3.12a, CPU DLL SARM.DLL V1.27e, Dialog DLL DARMP.DLL V1.09) into using the virtual port, another (free) virtual null modem, an AGSI DLL which connects to a virtual port, a simulator script ...

  • I see that there is a note in the FAQ for com0com for mapping the port names to COM names. Maybe that will help you?

    Looks like a potentially useful little tool, thanks for the link.

    From the FAQ.

    com0com.cvs.sourceforge.net/*checkout*/com0com/com0com/ReadMe.txt?revision=RELEASED

    Q. Is it possible to change the names CNCA0 and CNCB0 to COM2 and COM3?
    A. Yes, it's possible. To change the names:
    
      1. Launch the Setup Command Prompt shortcut.
      2. Enter the change commands, for example:
    
           command> change CNCA0 PortName=COM2
           command> change CNCB0 PortName=COM3
    

  • Thank you very much! It works like a charm!

    Shame on me: though I read through all Keil docs, I was too confident about com0com to look into its docs. And even the old version I'm using (1.6.0.0) has this capability.

    So that was what I needed: get it rubbed under my nose ;-)

  • This would be a really useful feature for Keil to build-in to uVision!

    Very often embedded microcontroller projects need to communicate with a PC or other devices over an RS232 link.
    The uVision Simulator is ideal for testing/debugging the RS232 comms, but having to use two physical COM ports (or two PCs) and a null-modem cable is cumbersome.
    A virtual COM port would be great!

  • I would definitely like such support too!