Problem with MetroTRK on-device debugging from CodeWarrior 3

Login to reply to this topic.
Wed, 2005-02-09 21:35
Joined: 2005-01-12
Forum posts: 8
Hi,

I'm having a problem running MetroTRK from CodeWarrior 3.0.

My config:

SE P910
CodeWarrior for Symbian Pro 3.0
WinXP desktop

My Metrotrk.ini file reads:

[SERIALCOMM]
PDD EUART%d
LDD ECOMM
CSY ECUART
PORT 0
RATE 115200

I've been able to download, build, install, and run (from the device) MetroTRK on a SE P910.

When I run MT from the device, the main view shows:

Welcome to MetroTrk for Symbian OS Version 2.0
Implementing MetroTrk API version 3.0

No other status information is shown.  

However, when I attempt to run MT from CW (Debug->Symbian Devices->Launch P800 MetroTrk), I get:

Launching MetroTrk... dialog for a few seconds
Failed to launch MetroTrk. Please check the connection settings on the device.  Cable status should be set to modem.

Twice, I've actually seen it launch MT, but it gives the above dialog anyway.  Most times, though, it fails to launch MT.


I've confirmed that the cable settings are "correct" on the device:

From control panel.Connections->Cable
Cable status:  modem
Baud rate: 115200
Parity: none
Stop bits: 1
Char len: 8
flow control: none

I've experimented with USB and a serial connection, changing flow control, etc. but to no avail.

The instructions found at:  http://developer.sonyericsson.com/getDocument.do?docId=65024 refer to CW 2.0 and I have 3.0.
Has anyone gotton CW 3.0 working with MT?

Any ideas?

Thanks in advance,

Mark

Thu, 2005-02-10 09:55
Forum Nokia Champion
Joined: 2004-06-30
Forum posts: 36
Problem with MetroTRK on-device debugging from CodeWarrior 3
Your ini file seems to be wrong. On my P900 I am using :

[SERIALCOMM]
PDD EUART1
LDD ECOMM
CSY ECUART
PORT 4
RATE 115200
Thu, 2005-02-10 20:26
Joined: 2005-01-12
Forum posts: 8
Problem with MetroTRK on-device debugging from CodeWarrior 3
Thanks for the reply.  I tried your .ini file and changing the port # around a bit, but I have the same result:  I can launch MetroTRK from CodeWarrior, but not do anything further.
Fri, 2005-02-11 13:52
Forum Nokia Champion
Joined: 2004-06-30
Forum posts: 36
Problem with MetroTRK on-device debugging from CodeWarrior 3
I've never launched MetroTRk from CodeWarrior, but always from my P900.
It's looks like it gets blocked because you should see :
Quote
Welcome to MetroTrk for Symbian OS Version 1.10
Implementing MetroTrk API version 3.0
PDD: EUART1
LDD: ECOMM
CSY: ECUART
Port number:  4
Baud rate : 115200
or any error.  Sorry can't help more.

By the way you apparently you re using version 2.0.
Did you compile it by yourself ? I tried to compile the one I found on Metrowerks web site, with no success.
Fri, 2005-02-11 15:16
Joined: 2003-11-12
Forum posts: 68
Problem with MetroTRK on-device debugging from CodeWarrior 3
There is a .sis file for the SEMC phones (P800/P900/P910).  It is available from the Metrowerks website in the OEM and Pro 2.5.1 patch.  I'll post it here if someone can tell me how.[/img]
Fri, 2005-02-11 22:40
Joined: 2005-01-12
Forum posts: 8
Problem with MetroTRK on-device debugging from CodeWarrior 3
Quote
It's looks like it gets blocked because you should see :
Welcome to MetroTrk for Symbian OS Version 1.10
Implementing MetroTrk API version 3.0
PDD: EUART1
LDD: ECOMM
CSY: ECUART
Port number:  4
Baud rate : 115200
or any error.  Sorry can't help more.
I was wondering about this.  Perhaps my build of version 2.0 is bad.

Quote
By the way you apparently you re using version 2.0.
Did you compile it by yourself ? I tried to compile the one I found on Metrowerks web site, with no success.

Yes, I downloaded and built it myself.  I'm going to try an earlier version to see if that gets me any further.  Thanks again for the help!
Sun, 2005-02-13 22:30
Joined: 2005-01-12
Forum posts: 8
Problem with MetroTRK on-device debugging from CodeWarrior 3
Thanks to Wapa and stephbel, I was able to resolve my problem.  The solution was to use the MetroTrk_1.10_P800.sis file that comes with the 2.5.1 upgrade to CodeWarrior.  Getting this was a bit of a challenge because I had already upgraded to CW 3.0 and didn't want to risk polluting the install with an old upgrade.  So, I found a 2.8 version of CW and "sacrificed" it with the 2.5.1 "upgrade".

Thanks again for your help!

Mark
Thu, 2005-03-03 22:07
Joined: 2005-03-03
Forum posts: 1
Problem with MetroTRK on-device debugging from CodeWarrior 3
Hi Mark,

 Could you please be a little more specific as to how you got this working? I'm trying to do the same thing....

 I have a p800 and I have installed the 1.10 sis on it. I have device in the cradle and have tried to with and without COM port selected in the SE software (Link Properties system tray icon). It seems to make no difference. Tried both ways after PC and Device reboot  Wink

1. If I try to start the debugger up through cw 3. I get a dialog that says it was unable to start metroTRK. "MetroTrkProtocolPlugin : Unable to open communications port". Nothing else....

2. If I hit the menu item Debug->Symbian Devices->Launch p800 metroTRK, causes a nearly endless stream of dialogs showing a generic error. Then if I hit any further menu items I also get warnings, asserts, etc. The IDE becomes completely unusable.

3. If I start up metroTRK on the device, I get the dreaded -21 error, so unfortunantly that doesn't work either.

I'm stumped here, Please, anyone have any ideas?

edited
Sat, 2005-03-05 00:09
Joined: 2003-11-12
Forum posts: 68
Problem with MetroTRK on-device debugging from CodeWarrior 3
The serial port on the phone is locked so each time you reboot the phone you have to unlock it by sending an AT command.  That is what the 'Launch P800 MetroTrk' is trying to do.  It sounds like the COM port is in use though.  You either have a terminal program open or more likely the mRouter software is running and is listening on that port.  Double click on the 'Phone connection link' icon on your Win32 task bar and make sure the COM port is unchecked.
Fri, 2005-06-03 10:56
Joined: 2004-10-21
Forum posts: 58
Re: Problem with MetroTRK on-device debugging from CodeWarrior 3
Hi,

I`m trying to connect my codewarrior debugger through the MetroTRK program.
I've installed CodeWarrior professional edition V3.0. However, since I didn't have the MetroTRK.sis file,
I downloaded the update patch for pro_OEM edition V2.5.1, and then installed the MetroTRK.sis file
found in the update on my SE P910i phone.

I've followed the settings as prescribed in one of the papers of on-device debugging of C++ applications on SE P800/P900, but they don't work at all.

Also when I try to run the installed MetroTRK on the SE P910i phone, I get an error, stating
" Failed to Find Port. Error Code:-21"

I'd really appreciate if anyone could point out the correct steps or procedure as to where am I going wrong or what do I need to do.


Thanks & regards,
Asheesh
Fri, 2005-06-03 16:42
Joined: 2003-11-12
Forum posts: 68
Re: Problem with MetroTRK on-device debugging from CodeWarrior 3
From the Debug menu in the CW IDE, Symbian Devices->Launch P800 MetroTrk.  First make sure that the phone is connected via the serial cable or cradle, and that the port in question is NOT in use by another process.  If you have the PC suite software installed then it will have both ports (USB and serial) by default.  There would be a moving black arrow looking icon on the Win32 task bar.  Double click on that and it will display a dialog telling you which ports it is listening on.  Uncheck the port you are using (USB or serial).

When you "Launch P800 MetroTrk" you should not get any errors.  You should then see MetroTrk started on the phone with no errors.

Thanks,
Wapa
  • Login to reply to this topic.