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

USB virtual port and emulation

Hello

I'm working on a CDC USB communication (Atmel ARM9 processor).
On the PC side, I have a virtual comm port.
When my device runs without JTAG/ emulation (UV4), it works fine,
but when I try to debug using JTAG / UV4, all comm ports are declared to be used by another software.
A test communication with a software like hyperterminal is then impossible.

Does the JTAG Ulink2 or µvision / debugger reserve virtual comm ports ?
How can I debug AND test my dialog throughj USB/comm port on the same PC ?

Thanks for your help
Denis

Parents Reply Children
  • Yes, the debug is done using ULINK2 (and works fine).
    I have a tough time trying to have this CDC link working ! (my first USB implementation).
    Any help would be extremely appreciated !

    The device side seems to be OK now, or nearly, but the PC side is trickier than expected.
    It is supposed to simply use the USBSER driver, but the COMM port number and configuration (.inf file) seem not to be that simple.

    I'm using a AT91SAM9XE processor, with a .inf file provided by Atmel.
    The PC uses Windows XP.

    I just changed the device name (which displays correctly on the PC when the communication is established).
    When I don't debug, I can transfer data from and to my device.
    When in debug, the com port is always declared as used by an other application.

    moreover, the USB enum only works on one desktop computer, but the device is not recognized on two other laptop computers, all under Win XP.

    I have wasted days until now, with little result.
    that's to tear one's hair out !

    Thanks for any advice about this problem.

    Denis

  • Is the Flash Download also set to ULINK2?

    Flash Download Configuration
    www.keil.com/.../ulink2_su_flashdownloadcfg.htm

    > moreover, the USB enum only works on one desktop computer, but the device is not recognized on two other laptop computers, all under Win XP.

    Which example are you based on? Atmel's?

    Tsuneo

  • >>Is the Flash Download also set to ULINK2?

    Yes, the target is flashed through the JTAG link, and this is OK.

    >>Which example are you based on? Atmel's?
    I started from the Atmel CDC serial example usb-device-cdc-serial-project-at91sam9xe-ek-keil
    I just want a serial link between my device and a PC.
    the inf file is based on the 6119.inf template, with only a string modified for the name of the connection.

    when the connection is OK, the device is recognized, its names is displayed, and sometimes a test using a terminal software like hyperterminal makes it possible to send and receive some strings.
    But most of the time, the com port is said used, and the test is impossible.

    Denis