[Repost] debug on Series 60 devices

xiaoxiao2021-03-06  14

Debug on Series 60 device 2005-01-12 Views: 103

Text / peter jiang (translated from newlc.com)

install the system

1. Install gdbsudb.sis on your phone. This file is placed in this default catalog by Nokia SDK c: /ssymbian/6.1/series60/epoc32/Release/Armi/urel/

2. Turn off the phone, start the FEXPLORER or your file management program to create a directory called C: / gdbstub. Upload a gdbstud.ini file containing the following content to our newly established directory. [CommServ]

PDD = EUART% D

LDD = ECOMM

CSY = IRCOMM

Port = 0

Rate = 115200 3, create C: / YYY in the PC side and create a c: /yy/gdb.ini file, put the following content Ctrl V in: Symbol-file //c/symbian/6.1/series60/epoc32/ Release / ARMI / UDEB / XXX.SYM

EPOC-EXEC-FILE C: /SYSTEM/APPS/XXX/XXX.App

Target EPOC COM2

Break newApplication

Source //c/symbian/6.1/shared/epoc32/gcc/share/epoc-des.ini

4. Use the appropriate content instead of XXX and YYY. Change your IRDA port into COM2. You may need to install a software that maps IRDA to COM (such as IRCOMM2K)

Abld build armi udeb If the connection failed because it could not find the library (the first time is usually like this), just copy all the contents under EPOC32 / Release / ARMI / Urel to EPOC32 / Release / ARMI / UDEB is OK.

Package and install the app to your phone.

Start debugging

gdb.exe -nw

Start FEXPLORER and run the C: / System / Programs / GDBSTUB.EXE.IRDA (infrared) connection indicator will start flashing. Note that you don't need to do these things with Connection / Irda / Activate, because GDBSTUB will automatically open an infrared connection. Put your phone within the infrared range of the PC, then open the PC's DOS window. Go to C: / YYY and type the following command

The following information will appear:

GNU GDB 4.17-PSION-98R2

CopyRight 1998 Free Software Foundation, Inc.

.

Type "Show Copying" to see the conditions.

There Is Absolutely No Warranty for GDB. Type "Show Warranty" for Details.

This Version of GDB HAS BEEN Modified by Symbian Ltd. To Add EPOC Support.

Type "Show Epoc-Version" to See the Epoc-Specific Version Number.

THIS GDB WAS Configured As "- Host = I686-PC-CYGWIN32 - Target = ARM-EPOC-PE".

BreakPoint 1 AT 0X (Some Adress): File

NewApplication>

(GDB) * Prompt *

Click "RUN" and will appear:

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 If your GDB shows "Starting Program", but there is no other thing in the next, then you will fail. I sometimes encounter such problems, I can only restart the phone. (And PC) to solve. If this is still not solved, maybe your IRDA infrared device has problems.

Use Bluetooth to perform device debugging

Text / peter jiang (translated from newlc.com)

1. Install gdbstud.sis to your phone. The default path in the NOKIA SDK is: c: /symbian/7.0s/series60_v20/epoc32/release/Armi/urel/. 2, create a gdbstub.ini you should create a C: / GDBSTUB on the target. And In this directory, use Notepad to create a gdbstub.ini file, the file contains the following:

Standard Bluetooth [CommServ] [CommServ] PDD = EUART% D PDD = EUART1 LDD = ECOMM LDD = ECOMM CSY = IRCOMM CSY = BTCOMM Port = 0 port = 0 rate = 115200 rat = 9600

3. Create gdb.ini Create a directory C: / BBB on your PC and put the gdb.ini file in. The following is the content of gdb.ini.

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 Note: Use your programs to replace AAA and BBB

Check the port number of the third line and replace it with the appropriate port number

The COM port number can only be between 1 and 4

4. Compiling applications should use ARMI UDEB to debug:

Abld build armi udeb If you prompt your error or warning, copy the EPOC32 / RELEASE / ARMI / UREL to the EPOC32 / Release / ARMI / UDEB.

5, update the PKG file now turn to your application xxx.pkg file and change all paths to get compiled code from the ARMI / UDEB directory.

6, start commissioning 1 Install the FEXPLORER software on the phone (already provided in the magazine add-on toolkit). 2 Enter c: /system/programs/gdbstub.exe 3 by FEXPLORER software to check GDBSEAL.DLL and GDBSENG.DLL files in C: / System / Libs / Lab. 4 on the phone. GDBSTub.exe 5 Enter the C: / BBB directory in the DOS prompt state of the PC and run the following commands gdb.exe -nw will appear

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 the following information will appear

Starting Program:

WARNING: Application Started But no Document Specified.

.

BreakPoint 1 0x (Some Adress): File

NewApplication>

Breakpoint 1, NewApplication ()

AT file

Current Language: AUTO; Currently C

system requirement

I hardware

1, PC 2, Bluetooth / Infrared Adapter 3, Symbian Mobile II Software

PC

1, Symbian SDK 2, VC 6.0 3, Bluetooth Driver 4, GDB.INI SYMBIAN mobile phone

1, GDBSTUB.SIS 2, GDBSTUD.INI 3, FEXPLORER.SIS

转载请注明原文地址:https://www.9cbs.com/read-48949.html

New Post(0)