RSS
热门关键字:
当前位置 : 主页>嵌入式开发>手机操作系统>列表

On Target Debugging using BlueTooth

来源:我要研发网 作者: 时间:1970-01-01 点击:




1. Install gdbstub

Install gdbstub.sis on your phone. This file is installed by default by the Nokia SDK in the following directory: 字串6

Path: C:\Symbian\7.0s\Series60_v20\Epoc32\Release\armi\urel\.

字串7

2. Create gdbstub.ini

On the target you should create a folder C:\gdbstub. And in this folder using notepad in your PC, create a file gdbstub.ini file with following contents. 字串1

General Bluetooth
[COMMSERV] [COMMSERV]
PDD=EUART%d PDD=EUART1
LDD=ECOMM LDD=ECOMM
CSY=IRCOMM CSY=BTCOMM
PORT=0 PORT=0
RATE=115200 RATE=9600

3. Create the gdb.ini

On your PC create a directory in and only in c:\bbb and put the file gdb.ini in this folder. Gdb.ini file contents is 字串7


symbol-file //c/symbian/7.0s/series60_v20/epoc32/release/armi/udeb/aaa.sym
epoc-exec-file c:\system\apps\aaa\aaa.app
target epoc com3
break NewApplication
source //c/symbian/7.0s/shared/epoc32/gcc/share/epoc-des.ini

Replace all bbb and aaa with appropriate names

字串1

NOTE: Please check the port number which you are using in line 3 put the appropriate com number to it. Ex : infra = 2 , Bluetooth = 3 字串9

NOTE: com number will always be less than 4 and more than 1. 字串8

4. Compilation

The application to debug shall be built using armi udeb target: 字串1

abld build armi udeb 字串6

If this gives any error or warnings the just copy everything from epoc32/release/armi/urel to epoc32/release/armi/udeb. 字串5

5. Update the pkg file

Now go to your application xxx.pkg file and change all the path so that compiled code is taken from armi\udeb directory.

字串9

Then create the sis file and install it in your phone 字串1

6.Launching the debugger

  1. you should have a utility called FExplorer or else you can download and install it on your target.
  2. through this utility go to : c:\system\programs\gdbstub.exe
  3. check for 2 .dll files in c:\system\libs\ : gdbseal.dll and gdbseng.dll
  4. start the gdbstub.exe in the phone.
  5. in the Dos Shell of your PC, Go to the directory c:\bbb and run gdb.exe -nw

(gdb.exe will come with your Symbian SDK and make sure that it is included in the system path) 字串1

The following message should appear. 字串7


GNU gdb 4.17-psion-98r2
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or
Breakpoint 1 at 0x(some adress): file NewApplication>
gdb>

Then in the gdb prompt, type run. The following message should appear. 字串3

Starting program:
warning: Application started but no document specified.
The application may panic at some point if it is document based and if there is no existing default document.
Breakpoint 1 0x(some adress): file NewApplication>
Breakpoint 1, NewApplication ()
at file

Current language: auto; currently c

Note : Check Symbian SDK documentation for more help on gdb commands. 字串7

Checklist

: 字串4

I Hardware:
1. PC
2. Compatible Bluetooth / InfraRed Adaptor
3. Symbian phone

II Software:

PC :
1. Symbian SDK (Available from Symbian/Nokia site for free)
2. VC 6.0
3. Bluetooth Driver (Available in the CD came with Bluetooth Adaptor)
4. gdb.ini

Symbian phone:
1. gdbstub.sis
2. gdbstub.ini
3. fexplorer.sis

字串3

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
相关文章