65
Philips Sysol_ME Training Session Lauterbach Debugger

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

  • Upload
    others

  • View
    20

  • Download
    0

Embed Size (px)

Citation preview

Philips Sysol_ME Training Session

Lauterbach Debugger

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

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

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)

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

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

Philips Semiconductors, Greater China Communications Applications Laboratory 7

Software Installation : TRACE32(T32)

Setup Type:New Installation

Product Type:ICD In-Circuit Debugger

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

Philips Semiconductors, Greater China Communications Applications Laboratory 9

Software Installation : TRACE32(T32)

CPU Selection:ICD ARM7 ARM9

Ethernet Node Name:t32

Philips Semiconductors, Greater China Communications Applications Laboratory 10

Software Installation : TRACE32(T32)

Variable T32ID:T32

Variable T32TMP:C:\WINNT\TEMP

Philips Semiconductors, Greater China Communications Applications Laboratory 11

Software Installation : TRACE32(T32)

Parallel port configuration:LPT1

Parallel port type:Use Standard mode

Philips Semiconductors, Greater China Communications Applications Laboratory 12

Software Installation : TRACE32(T32)

Screen Configuration:Normal Size Font(16*8)

Screen Configuration:Multiple Doc. Interface

Philips Semiconductors, Greater China Communications Applications Laboratory 13

Software Installation : TRACE32(T32)

Product Integration:No Integration

Folder Selection:TRACE32

Philips Semiconductors, Greater China Communications Applications Laboratory 14

Software Installation : TRACE32(T32)

Folder Program Group:Common

Submit Registration:Register Later

Philips Semiconductors, Greater China Communications Applications Laboratory 15

Software Installation : TRACE32(T32)

TRACE32 Register Status:OK

Setup Complete:Yes, restart computer

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

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

Philips Semiconductors, Greater China Communications Applications Laboratory 18

Sysol_ME Board

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

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

Philips Semiconductors, Greater China Communications Applications Laboratory 21

Check the PC IP address (ipconfig)

Philips Semiconductors, Greater China Communications Applications Laboratory 22

Configure the hosts file

Philips Semiconductors, Greater China Communications Applications Laboratory 23

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

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

Philips Semiconductors, Greater China Communications Applications Laboratory 25

Assign an IP address to ICD (t32)

Philips Semiconductors, Greater China Communications Applications Laboratory 26

Check the network connection status

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

Philips Semiconductors, Greater China Communications Applications Laboratory 28

Find the correct shortcut(Ethernet)

Philips Semiconductors, Greater China Communications Applications Laboratory 29

Set start in path

Set start in path

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”.

Philips Semiconductors, Greater China Communications Applications Laboratory 31

Software start running

Philips Semiconductors, Greater China Communications Applications Laboratory 32

Loading image from PC to ICD

Command line input window

Philips Semiconductors, Greater China Communications Applications Laboratory 33

Sorting the symbols

Philips Semiconductors, Greater China Communications Applications Laboratory 34

Synchronization Input “do res”

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

Philips Semiconductors, Greater China Communications Applications Laboratory 36

Browsing functions-Step 1

Philips Semiconductors, Greater China Communications Applications Laboratory 37

Browsing functions-Step 2

Philips Semiconductors, Greater China Communications Applications Laboratory 38

Browsing functions-Step 3

Philips Semiconductors, Greater China Communications Applications Laboratory 39

Switch betweeen HLL and ASM (F9)

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

Philips Semiconductors, Greater China Communications Applications Laboratory 41

Input command “do res”

output window

Philips Semiconductors, Greater China Communications Applications Laboratory 42

List the Breaking points – Step 1

Philips Semiconductors, Greater China Communications Applications Laboratory 43

List the Breaking points – Step 2

Philips Semiconductors, Greater China Communications Applications Laboratory 44

Operations on breakpoints

Philips Semiconductors, Greater China Communications Applications Laboratory 45

Set breakpoint type – Step1

Philips Semiconductors, Greater China Communications Applications Laboratory 46

Set breakpoint type – Step2

Philips Semiconductors, Greater China Communications Applications Laboratory 47

Set one breakpoint in “lk1_0dispatch”

Philips Semiconductors, Greater China Communications Applications Laboratory 48

Check with the breakpoint list

Philips Semiconductors, Greater China Communications Applications Laboratory 49

Conditionally breakpoint with global variables-Step1

Philips Semiconductors, Greater China Communications Applications Laboratory 50

Conditionally breakpoint with global variables-Step2

Philips Semiconductors, Greater China Communications Applications Laboratory 51

Conditionally breakpoint with global variables-Step3

Philips Semiconductors, Greater China Communications Applications Laboratory 52

Conditionally breakpoint with global variables-Step4

Philips Semiconductors, Greater China Communications Applications Laboratory 53

Conditionally breakpoint with global variables-Step5

Philips Semiconductors, Greater China Communications Applications Laboratory 54

Conditionally breakpoint with global variables-Step6

Philips Semiconductors, Greater China Communications Applications Laboratory 55

Conditionally breakpoint with global variables-Step7

Philips Semiconductors, Greater China Communications Applications Laboratory 56

Stopped at breakpoint

Philips Semiconductors, Greater China Communications Applications Laboratory 57

View variable value in window

Philips Semiconductors, Greater China Communications Applications Laboratory 58

View the ARM registers (b.r)

Philips Semiconductors, Greater China Communications Applications Laboratory 59

View PCF5087x peripheral registers(per)

Philips Semiconductors, Greater China Communications Applications Laboratory 60

Dump memory – Step1

Philips Semiconductors, Greater China Communications Applications Laboratory 61

Dump memory – Step2

Set address

Philips Semiconductors, Greater China Communications Applications Laboratory 62

Dump memory – Step3

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

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