×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    on-device debugging with carbide 1.1 - connectivity problem?

    hi all,

    i'm trying to debug my application which is running nicely on the emulator but only partly on the real device (n80). however the following error occurs when i try to start a debug session:
    "Target request faile: TRKProtocolPlugin : Can't connect to MetroTRK (Either target reset may be required or mismatch between selected and connected com port or com port not connected"

    the phone is connected via USB, pc suite - shows up in the device manager as COM4.

    i did select COM4 in the settings for the '<myproj> S60 3.0 Phone (GCCE) Debug [S60_3rd_MR2]' target.

    browsing the phone's memory works, and i already did reset the phone a couple of times

    any help with this issue very much appreciated, thanks in advance!

    v.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2004
    Location
    Austin, TX USA
    Posts
    271

    Re: on-device debugging with carbide 1.1 - connectivity problem?

    Is PC Suite running? I believe it must be closed for TRK to be able to acquire the port.

    Regards,

    Matt P.

  3. #3
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: on-device debugging with carbide 1.1 - connectivity problem?

    PC Suite may not be the problem because I have never turn off PC Suite.

    Have you checked the log file? Is there a hint there? You can activate the log by selecting Debug as | Debugger | View message between PC and debug agent on the phone.

    Also make sure your AppTRK is running in the same baud rate as your Carbide.c++.

    Antony

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    5

    Cool Re: on-device debugging with carbide 1.1 - connectivity problem?

    I have the same problem, the App TRK in the phone shows that the

    ----------------------
    status : Not connected

    Failed to open port.
    Error Code: -21
    ----------------------

    I have enable the "View messages between PC and debug agent on the phone", it shows the following message in the console

    ---IDE------------------------------------------------------
    Command: 0x00 Ping
    [00 00]


  5. #5
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: on-device debugging with carbide 1.1 - connectivity problem?

    Quote Originally Posted by eie2comp
    I have the same problem, the App TRK in the phone shows that the

    ----------------------
    status : Not connected

    Failed to open port.
    Error Code: -21
    ----------------------
    I am using E61 and Pc Suite 6.8.22 patch. In This version is exit command which cleanly stops PC Suite.

    Now go into XP Control Panel -> System -> Hardware tab ->
    Device Manager -> Ports & COM ->
    open and look at "Nokia E61 USB (COM17)" the port number is important.
    Right click and select "Properties". and select speed from 9600 to 115200 baud. Click apply/OK to set this value


    If you cannot see this the USB modem is not loaded then it wont work, disconnect the USB the reset to PC Suite on the Mobile when prompted.

    In the App Trk on mobile Select Settings and Connection and change to USB as default is Bluetooth. Select port 1 and speed 115200 and restart App Trk.

    In the Debugger select the Connection tab,then the port, in my case COM17, as above and Select speed 115200 speed, 8bit 1 stop bit.

    IMPORTANT UPDATE 1
    ---------------------

    I have just found a new problem.
    Rebooted windows and reconnected my E61 via USB WITHOUT Pc Suite running and Win XP sp2 has reloaded drivers as new device and called the port COM14.

    This stopped Carbide and App TRK 2.6 from working until I used above procedure to check and reset to new port in Carbide Pro Connection settings.


    Jim
    Last edited by jimgilmour1; 2006-10-13 at 13:56.

  6. #6
    Registered User
    Join Date
    Apr 2008
    Posts
    6

    Re: on-device debugging with carbide 1.1 - connectivity problem?

    Like eie2comp reported, AppTRK won't find any connection.
    ERROR Code:-21

    I already checked every parameter several times, as jimgilmour1 mentioned.

    My specs:
    ================
    Nokia N73
    V 4.0747.31.0.1
    RM-133
    49.01

    Has anyone a solution?

    Thanks in advance.

  7. #7
    Regular Contributor
    Join Date
    Jan 2008
    Location
    Edinburgh, UK
    Posts
    100

    Re: on-device debugging with carbide 1.1 - connectivity problem?

    I'm also stuck with Error -21. What's weird is if no USB cable is plugged in, and it's the first time running TRK after re-install, I still get Error -21 ... interesting.

    Anyway,
    I've had a look at the Device Manager, under "Ports (COM & LPT)", there are 2 entries, "Communications Port (COM1)" and "ECP Printer Port (LPT1)". I'm pretty sure it's not the printer one I want.

    Device is N95, using Carbide.c++ 1.3 (Near end of OEM trial period).

    FYI, Error -21 = KErrAccessDenied, see NewLC's Error Code List.

    Andy.
    Last edited by aml_1989; 2008-04-22 at 15:47. Reason: KErrAccessDenied
    Did I just say that out loud?

  8. #8
    Regular Contributor
    Join Date
    Jan 2008
    Location
    Edinburgh, UK
    Posts
    100

    Re: on-device debugging with carbide 1.1 - connectivity problem?

    Quick question, does it matter that I don't have Nokia PC Suite installed on my PC?

    Andy.
    Did I just say that out loud?

  9. #9
    Regular Contributor
    Join Date
    Jan 2008
    Location
    Edinburgh, UK
    Posts
    100

    Re: on-device debugging with carbide 1.1 - connectivity problem?

    Okay,

    I've got rid of my Error -21 problem. I didn't have PC suite installed, and my N95's USB was set up on "Data Transfer". Now I can see the COM Ports.

    I'm so pleased to have on-device debugging set up, I just wish it was possible to set up before the trial perid ran out, thanks Nokia!

    Bring on 1.4...

    Andy.
    Did I just say that out loud?

Similar Threads

  1. Dll deployment on device problem
    By iulian_moldovan in forum Symbian C++
    Replies: 6
    Last Post: 2006-02-14, 13:05
  2. Problem in Database connection for Nokia Device
    By bvsbh in forum Mobile Java General
    Replies: 1
    Last Post: 2006-02-01, 15:12
  3. Problem with launching an application on device
    By santosh1980 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-12-20, 07:08
  4. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  5. Nokia PC Connectivity能否链接到cdma手机上发送短信和其他操作?
    By bborn in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 2
    Last Post: 2004-05-04, 11:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •