Top Banner
Philips Sysol_ME Training Session Lauterbach Debugger
65

Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Apr 22, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Sysol_ME Training Session

Lauterbach Debugger

Page 2: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 2

Agenda

• Lauterbach Company• Software Installation• Hardware Initialization• Software Synchronization• Overview of Debugging Functionality• Hands-on Debugging Session

Page 3: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 3

Agenda

• Lauterbach Company• Software Installation• Hardware Initialization• Software Synchronization• Overview of Debugging Functionality• Hands-on Debugging Session

Page 4: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 4

Lauterbach Company

• Software Debugging Environment

• Sales office in Chinahttp://www.watertek.com

• Headquarters in Germanyhttp://www.lauterbach.com

Software : TRACE32(T32)Hardware : In-Circuit Debugger(ICD)

Page 5: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 5

Agenda

• Lauterbach Company• Software Installation• Hardware Initialization• Software Synchronization• Overview of Debugging Functionality• Hands-on Debugging Session

Page 6: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 6

Software Installation

• Insert TRACE32(T32) CD

: TRACE32(T32)

• Installation should start automatically, otherwise run setup.bat

• Select settings as shown in the following slides…

GoalInstall T32 software for ICD usingETHERNET interface

• Close all other PC applications

Page 7: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 7

Software Installation : TRACE32(T32)

Setup Type:New Installation

Product Type:ICD In-Circuit Debugger

Page 8: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 8

Software Installation : TRACE32(T32)

ICD Interface Type:ICD with PODBUSETHERNET interface

OS Selection:PC Windows 95/98/

NT/2000

Page 9: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 9

Software Installation : TRACE32(T32)

CPU Selection:ICD ARM7 ARM9

Ethernet Node Name:t32

Page 10: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 10

Software Installation : TRACE32(T32)

Variable T32ID:T32

Variable T32TMP:C:\WINNT\TEMP

Page 11: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 11

Software Installation : TRACE32(T32)

Parallel port configuration:LPT1

Parallel port type:Use Standard mode

Page 12: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 12

Software Installation : TRACE32(T32)

Screen Configuration:Normal Size Font(16*8)

Screen Configuration:Multiple Doc. Interface

Page 13: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 13

Software Installation : TRACE32(T32)

Product Integration:No Integration

Folder Selection:TRACE32

Page 14: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 14

Software Installation : TRACE32(T32)

Folder Program Group:Common

Submit Registration:Register Later

Page 15: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 15

Software Installation : TRACE32(T32)

TRACE32 Register Status:OK

Setup Complete:Yes, restart computer

Page 16: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 16

Agenda

• Lauterbach Company• Software Installation• Hardware Initialization• Software Synchronization• Overview of Debugging Functionality• Hands-on Debugging Session

Page 17: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 17

Lauterbach Trace32 ICD(In-Circuit Debugger)

JTAG connector To target

To power

To PC Ethernet

PODETH module

DEBUGGER module

twisted ethernet cable

Page 18: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 18

Sysol_ME Board

Page 19: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 19

Hardware Initialization

• Connect the PC to the ICD with twisted ethernet cable

• Switch on ICD• Connect ICD and Target with correct cable• Switch on Target

Page 20: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 20

Host file setting for t32 entry

• Open the file: “winnt-dir”/system32/drivers/etc/hosts

• Add one line after the localhost entry as: “assigned-ip-address” t32

• Save the file

Page 21: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 21

Check the PC IP address (ipconfig)

Page 22: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 22

Configure the hosts file

Page 23: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 23

Refresh network connection “ipconfig /release” and “ipconfig /renew”

Page 24: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 24

Make the network connection

• There is a unique MAC address for each ICD PODETH

• Use “arp –s” to associate the IP address and the MAC address

• Use “ping t32” to test the connection state between PC and ICD

Page 25: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 25

Assign an IP address to ICD (t32)

Page 26: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 26

Check the network connection status

Page 27: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 27

Agenda

• Lauterbach Company• Software Installation• Hardware Initialization• Software Synchronization• Overview of Debugging Functionality• Hands-on Debugging Session

Page 28: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 28

Find the correct shortcut(Ethernet)

Page 29: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 29

Set start in path

Set start in path

Page 30: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 30

Modification some cmm files

In default, the ICD host-side software will call the t32.cmm in the start

Modify the t32.cmm, ld.cmm, res.cmm as the following:t32.cmm: goto the end of the file and note the line “do res” ,

add “do ld”.

ld.cmm: replace the string “../srce/_arm7tdmi_armads1.2/cust0.x” with “../srce/_arm7tdmi_armads1.2/cust1.x”

note “do b”note “do res”

res.cmm: note all commands after “system.up” and add “go”.

Page 31: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 31

Software start running

Page 32: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 32

Loading image from PC to ICD

Command line input window

Page 33: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 33

Sorting the symbols

Page 34: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 34

Synchronization Input “do res”

Page 35: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 35

Agenda

• Lauterbach Company• Software Installation• Hardware Initialization• Software Synchronization• Overview of Debugging Functions• Hands-on Debugging Session

Page 36: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 36

Browsing functions-Step 1

Page 37: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 37

Browsing functions-Step 2

Page 38: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 38

Browsing functions-Step 3

Page 39: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 39

Switch betweeen HLL and ASM (F9)

Page 40: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 40

Setting Breakpoints

• All the breakpoints are ONCHIP type• Only 2 ONCHIP breakpoints can be set• Global variables can be set with

conditional breakpoints• Every time you make modification on

breakpoint, run “do res” in command input window

Page 41: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 41

Input command “do res”

output window

Page 42: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 42

List the Breaking points – Step 1

Page 43: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 43

List the Breaking points – Step 2

Page 44: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 44

Operations on breakpoints

Page 45: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 45

Set breakpoint type – Step1

Page 46: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 46

Set breakpoint type – Step2

Page 47: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 47

Set one breakpoint in “lk1_0dispatch”

Page 48: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 48

Check with the breakpoint list

Page 49: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 49

Conditionally breakpoint with global variables-Step1

Page 50: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 50

Conditionally breakpoint with global variables-Step2

Page 51: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 51

Conditionally breakpoint with global variables-Step3

Page 52: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 52

Conditionally breakpoint with global variables-Step4

Page 53: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 53

Conditionally breakpoint with global variables-Step5

Page 54: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 54

Conditionally breakpoint with global variables-Step6

Page 55: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 55

Conditionally breakpoint with global variables-Step7

Page 56: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 56

Stopped at breakpoint

Page 57: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 57

View variable value in window

Page 58: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 58

View the ARM registers (b.r)

Page 59: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 59

View PCF5087x peripheral registers(per)

Page 60: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 60

Dump memory – Step1

Page 61: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 61

Dump memory – Step2

Set address

Page 62: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 62

Dump memory – Step3

Page 63: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 63

Agenda

• Lauterbach Company• Software Installation• Hardware Initialization• Software Synchronization• Overview of Debugging Functionality• Hands-on Debugging Session

Page 64: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat

Philips Semiconductors, Greater China Communications Applications Laboratory 64

Let’s make a try

• Explanation of .cmm files

• ICD and target power up and running

• Setting breakpoints

Page 65: Lauterbach Debuggerread.pudn.com/downloads8/ebook/24805/sysol me培训讲义...• Insert TRACE32(T32) CD: TRACE32(T32) • Installation should start automatically, otherwise run setup.bat