诺基亚手机开发联机调试

On device debugging - Nokia E-50

 

Friday, 10 August 2007 

Carbide C++ tools provide developers comprehensive features for debugging S60 applications on pc using an emulator. Most of the issues are resolved with emulator debugging. The behaviour of emulator is very much similar to device, but some times when we have to test certain features which are not supported by emulator, like making a phone call, accessing phone's camera and radio, then we need to debug applications on the device.

 

Carbide.C++ developer and professional editions both support on-device-debugging on S60 3rd edition devices. I'll explain you the steps which I followed to debug a simple HelloWorld application on my E50.

 

I assume you're familiar with carbide.c++ enivironment.

 

 

What You Need?

 

 

  • S60 3rd edition mobile phone - E-50 in my case.
  • Nokia pc suite, I have v6.83.14.1 installed on my machine.
  • OR: you can use bluetooth for on-device-debugging too. But for that your mobile must be connected at serial port.
  • TRK sisx. (It can be found @ C:/Program Files/Nokia/Carbide.c++ v1.1/plugins/com.nokia.carbide.trk.support_1.1.0.5/trk)
  • Carbide.c++ IDE, I installed v1.1 developer edition.

 

 

Nokia PC-suite installation:

 

 

  • Install Nokia pc suite on your machine. You can find latest version of pc suite from Nokia's website.
  • Attach your phone with pc using usb cabel. ( Data Cabel mode on mobile should be "pc suite" mode).
  • Nokia pc suite on your pc detects and installs drivers for your device.
  • So please attach your phone and start the process.

 

 

 

PC port settings:

 

 

  • OS: Windows Xp
  • Go to Control Panel->System->Hardware Tab->device manager

    Expand ports(COM & LPT) and you can find "Nokia E50 USB (COM20), like image below;

 

 

 

Carbide.c++ application creation and debug settings:

 

Create a symbian application through;

File->New->C++ application for S60 project. Now name your project and press next to choose template "S60 3.x GUI application", press next to select your sdk. I used S60_3rd_MR.

 

The rest is done by IDE and you can now find your created application in carbide.c++.

 

You can find three configuration, If you see the picture below;

 

 

 1. S60 3.0 Emulator Debug[S60_3rd_MR] - It is used for emulator build, debug purpose.

 2. S60 3.0 Phone (GCCE) Debug[S60_3rd_MR] - The one we need here to debug application on phone.

 3. S60 3.0 Phone (GCCE) Release[S60_3rd_MR] - creates sisx for release.

 

After selecting current active project settings, you need to build project atleast once.

 

Now insert a break point by double clicking or right clicking on desired line, I inserted in HandleCommandL function.

 

 

 

Mobile device settings:

Please install App TRK from C:/Program Files/Nokia/Carbide.c++ v1.1/plugins/com.nokia.carbide.trk.support_1.1.0.5/trk on your  mobile phone using pc suite.

 

Start App TRK and go to Options->settings and select USB in connection options. Please adjust your setting as shown in image below;

 

 

 

When done press back and Options->connect. You should have a similar screen as below;

 

 

 

Carbide.c++ debug settings for On-device-debugging:

 

Right Click on project->debug as->debug

 

Select "Symbian OS App TRK" and select "New" button located at bottom ( one time process).

 

The image below displays it;

 

 

You can also uncheck E32Main breakpoint as shown below;

 

Important:

 

Please make sure that port setting in 'debugger' tab of debug are similar to 'Computer port settings', as show below;

 

 

Now press 'Debug' button to start the process.

 

Carbide.c++ creates sisx and installs it on device like below;

 

 

As mentioned earlier, I inserted break point in HandleCommandL function. So press Options (on your mobile) and select any command to display a "Hello World!" either from a file or a resource. And here you are paused at breakpoint inserted line in your Carbide.c++ IDE. You can see it below;

 

 

 


Thanks for reading this article now enjoy coding symbian c++ with carbide.c++.

 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值