diff -r 2ee12718a766 -r 9b005a8e6778 core/com.nokia.carbide.cpp.doc.user/html/tasks/trk/trk_troubleshooting.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/trk/trk_troubleshooting.htm Fri Aug 07 15:50:06 2009 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/trk/trk_troubleshooting.htm Mon Aug 10 15:21:12 2009 -0500 @@ -1,125 +1,125 @@ - - - - - - -On-device Debugging Troubleshooting - - - -

On-device Debugging Troubleshooting

-

If you are having problems with on-device debugging, see if the following solutions can solve the problem.

-

Deploying SIS Files using Carbide (Application TRK)

-

Am unable to create my SIS file, what can cause this ?

-
-

Ensure that you are using symbols in your PKG file to generate the SIS file. See Working with PKG and SIS Files for more details.

-
-

How do I know my SIS file got installed correctly?

-
-

If you did not receive an error message that Carbide.c++ could not install the SIS file, then go to the Application Manager on the phone and look for the SIS file. If the SIS file is there it tells you that Carbide.c++ successfully deployed the application to the device.

-

Next, check the target directory on the device for the executable. If the executable is present, attempt to launch the executable. If the executable launches this lets you know the binaries were built correctly for the device. If the executable does not launch, try to build the application again using the command-line version of the tool.

-

To verify the install process, go to the Installation tab of your launch configuration and disable the Do not show installer UI on the phone option. The next time Carbide.c++ attempts to deploy the application, prompts will appear on the phone verifying that it is okay to install the application. You can then watch the SIS file being installed on the phone.

-
-

How do I force the install of a SIS file to a device?

-
-

In Carbide.c++, go to the Installation tab of your launch configuration and enable the Install each launch even if installer file has not changed option. Once set, just click the Debug control again to deploy the new application binaries to the device.

-
-

Am getting the an error when attempting to install my SIS file, what can I do?

-
-

To get better error messages about possible install failures, go to the Installation tab of your launch configuration and disable the Do not show installer UI on the phone option. The next time Carbide.c++ attempts to deploy the application, prompts will appear on the phone verifying that it is okay to install the application. You can then watch the SIS file being installed on the phone. When the SIS file fails to install again, TRK will provide more specific errors on why the installation failed.

-
-

Am getting the error "process fails to launch", what can I do to correct this?

-
-

There are several things that can cause this error including:

-
- -

Am getting an exception when trying to debug with Application TRK

-
-

The main reason for this is that you have entered ROM code or another prohibited address space. You can confirm this by checking the Disassembler view. When in a prohibited memory address the view may be blank. To correct, click Step Over or Resume to move to the next breakpoint in your code.

-
-

I'm running out of memory on the device, what can I do?

-
-

On platforms that include Platform Security there are several directories like c:\sys\bin where you cannot easily delete files that are no longer required. Over time the device's memory becomes full, making it difficult or impossible to install and debug additional programs.

-

If using Application TRK to install and debug programs, use the Application Manager on the device to remove all the files specified in the program's PKG file, but not the SIS file itself.

-

If you are using System TRK to install and debug programs and additional files, you will need to create a SIS that includes the files listed in the File Transfer pane, deploy it manually to the device, then run the Application Manager on the device to remove the files.

-
-

Connectivity

-

How can I use USB instead of Bluetooth to debug my application?

-
-

For USB support in TRK 2.5 or greater, while the TRK application is running on the phone, choose Options > Settings, then set Connection to USB.

-

For USB support in TRK v2.1, include the metrotrk_usb.ini file instead of the metrotrk_bt.ini file in your ROM image. You do this by modifying the metrotrk.iby file like this:

-

Replace the line:

-

data=ZSYSTEM\..\metrotrk\metrotrk_bt.ini \metrotrk.ini

-

With:

-

data=ZSYSTEM\..\metrotrk\metrotrk_usb.ini \metrotrk.ini

-

Then rebuild the ROM image.

-

NOTE With the S60 wk46 release onwards, the port number needs to be set to 1 instead of 0.

-
Installing Latest USB Drivers
-

On the host PC, you need to update the USB drivers to work with the latest S60 - devices. The latest drivers create a virtual com port on the host which you can - specify in Carbide. Download and install the latest Nokia Connectivity Cable - Drivers from PC Suite Vivaldi web site.

-

When you first connect the USB cable to the phone you'll get a prompt to choose - the "PC Suite" or "File Transfer" mode. Choose "PC Suite" mode to use TRK with - USB. Also you will get several “New Hardware found” wizards. You need to go - through the installation each time to successfully use the USB connection to - access the device.

-
Connecting to Device using USB
-

If the current Connection setting on the phone is Bluetooth, when you start - the TRK application on the phone you should see a list of Bluetooth devices. - Press Cancel. In the TRK Welcome Screen press Options, then - the Settings control. You should see the connection set to Bluetooth. Select - the Options > Change option and change the - connection option to USB. Your connection should now show as USB. Press - Back to go to the TRK Welcome screen. In the TRK Welcome screen press Select > - Connect. The status in the TRK welcome screen should show as connected.

-

The next time you connect the USB cable to the phone you’ll get a prompt to - choose the "PC Suite" or "File Transfer" mode. Choose "PC Suite" mode to use - TRK with USB. Then start the TRK application.

-
-

What is the virtual COM port number for my S60 phone on the host PC if I am using USB?

-
-

Normally, you can determine the COM port ID using the Device Manager if TRK is already connected via USB. -

-

To check, choose Start > Settings > Control panel > System > Hardware > Device Manager. In the Device Manager, choose "Ports" to view the active ports (Figure 1).

-

-

Figure 1. Ports displayed in Ports section of Device Manager.

-

In some situations all USB virtual COM ports are installed under "Modems" in the Device Manager. In the Device Manager dialog, choose "Modems" and see if there are two COM ports listed. One of them will work for debugging. Most of the time, the higher port number works for debugging with TRK.

-
-

I am having difficulty getting a Bluetooth connection to work with AppTRK, any suggestions?

-
-

The following are known issues when trying to use Bluetooth serial port on the host:

-
- -

TRK is launched on the device, but I am getting “Can’t connect to TRK” error message in the Carbide.c++ tools, any suggestions?

-
-

Check that Carbide.c++ and your USB Virtual COM port or BT Serial Port agree on the port settings.

-
- - - - - + + + + + + +On-device Debugging Troubleshooting + + + +

On-device Debugging Troubleshooting

+

If you are having problems with on-device debugging, see if the following solutions can solve the problem.

+

Deploying SIS Files using Carbide (Application TRK)

+

Am unable to create my SIS file, what can cause this ?

+
+

Ensure that you are using symbols in your PKG file to generate the SIS file. See Working with PKG and SIS Files for more details.

+
+

How do I know my SIS file got installed correctly?

+
+

If you did not receive an error message that Carbide.c++ could not install the SIS file, then go to the Application Manager on the phone and look for the SIS file. If the SIS file is there it tells you that Carbide.c++ successfully deployed the application to the device.

+

Next, check the target directory on the device for the executable. If the executable is present, attempt to launch the executable. If the executable launches this lets you know the binaries were built correctly for the device. If the executable does not launch, try to build the application again using the command-line version of the tool.

+

To verify the install process, go to the Installation tab of your launch configuration and disable the Do not show installer UI on the phone option. The next time Carbide.c++ attempts to deploy the application, prompts will appear on the phone verifying that it is okay to install the application. You can then watch the SIS file being installed on the phone.

+
+

How do I force the install of a SIS file to a device?

+
+

In Carbide.c++, go to the Installation tab of your launch configuration and enable the Install each launch even if installer file has not changed option. Once set, just click the Debug control again to deploy the new application binaries to the device.

+
+

Am getting the an error when attempting to install my SIS file, what can I do?

+
+

To get better error messages about possible install failures, go to the Installation tab of your launch configuration and disable the Do not show installer UI on the phone option. The next time Carbide.c++ attempts to deploy the application, prompts will appear on the phone verifying that it is okay to install the application. You can then watch the SIS file being installed on the phone. When the SIS file fails to install again, TRK will provide more specific errors on why the installation failed.

+
+

Am getting the error "process fails to launch", what can I do to correct this?

+
+

There are several things that can cause this error including:

+
+ +

Am getting an exception when trying to debug with Application TRK

+
+

The main reason for this is that you have entered ROM code or another prohibited address space. You can confirm this by checking the Disassembler view. When in a prohibited memory address the view may be blank. To correct, click Step Over or Resume to move to the next breakpoint in your code.

+
+

I'm running out of memory on the device, what can I do?

+
+

On platforms that include Platform Security there are several directories like c:\sys\bin where you cannot easily delete files that are no longer required. Over time the device's memory becomes full, making it difficult or impossible to install and debug additional programs.

+

If using Application TRK to install and debug programs, use the Application Manager on the device to remove all the files specified in the program's PKG file, but not the SIS file itself.

+

If you are using System TRK to install and debug programs and additional files, you will need to create a SIS that includes the files listed in the File Transfer pane, deploy it manually to the device, then run the Application Manager on the device to remove the files.

+
+

Connectivity

+

How can I use USB instead of Bluetooth to debug my application?

+
+

For USB support in TRK 2.5 or greater, while the TRK application is running on the phone, choose Options > Settings, then set Connection to USB.

+

For USB support in TRK v2.1, include the metrotrk_usb.ini file instead of the metrotrk_bt.ini file in your ROM image. You do this by modifying the metrotrk.iby file like this:

+

Replace the line:

+

data=ZSYSTEM\..\metrotrk\metrotrk_bt.ini \metrotrk.ini

+

With:

+

data=ZSYSTEM\..\metrotrk\metrotrk_usb.ini \metrotrk.ini

+

Then rebuild the ROM image.

+

NOTE With the S60 wk46 release onwards, the port number needs to be set to 1 instead of 0.

+
Installing Latest USB Drivers
+

On the host PC, you need to update the USB drivers to work with the latest S60 + devices. The latest drivers create a virtual com port on the host which you can + specify in Carbide. Download and install the latest Nokia Connectivity Cable + Drivers from PC Suite Vivaldi web site.

+

When you first connect the USB cable to the phone you'll get a prompt to choose + the "PC Suite" or "File Transfer" mode. Choose "PC Suite" mode to use TRK with + USB. Also you will get several “New Hardware found” wizards. You need to go + through the installation each time to successfully use the USB connection to + access the device.

+
Connecting to Device using USB
+

If the current Connection setting on the phone is Bluetooth, when you start + the TRK application on the phone you should see a list of Bluetooth devices. + Press Cancel. In the TRK Welcome Screen press Options, then + the Settings control. You should see the connection set to Bluetooth. Select + the Options > Change option and change the + connection option to USB. Your connection should now show as USB. Press + Back to go to the TRK Welcome screen. In the TRK Welcome screen press Select > + Connect. The status in the TRK welcome screen should show as connected.

+

The next time you connect the USB cable to the phone you’ll get a prompt to + choose the "PC Suite" or "File Transfer" mode. Choose "PC Suite" mode to use + TRK with USB. Then start the TRK application.

+
+

What is the virtual COM port number for my S60 phone on the host PC if I am using USB?

+
+

Normally, you can determine the COM port ID using the Device Manager if TRK is already connected via USB. +

+

To check, choose Start > Settings > Control panel > System > Hardware > Device Manager. In the Device Manager, choose "Ports" to view the active ports (Figure 1).

+

+

Figure 1. Ports displayed in Ports section of Device Manager.

+

In some situations all USB virtual COM ports are installed under "Modems" in the Device Manager. In the Device Manager dialog, choose "Modems" and see if there are two COM ports listed. One of them will work for debugging. Most of the time, the higher port number works for debugging with TRK.

+
+

I am having difficulty getting a Bluetooth connection to work with AppTRK, any suggestions?

+
+

The following are known issues when trying to use Bluetooth serial port on the host:

+
+ +

TRK is launched on the device, but I am getting “Can’t connect to TRK” error message in the Carbide.c++ tools, any suggestions?

+
+

Check that Carbide.c++ and your USB Virtual COM port or BT Serial Port agree on the port settings.

+
+ + + + +