GRMON UserÕs Manual Version 1.0.5 August 2004

GRMON

GRMON User¡¯s Manual

Version 1.0.5

August 2004

GAISLER RESEARCH AB

-2-

GRMON User¡¯s Manual

Copyright 2004 Gaisler Research AB.

Permission is granted to make and distribute verbatim copies of this manual provided the copyright

notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions

for verbatim copying, provided also that the entire resulting derived work is distributed under the

terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under

the above conditions for modified versions.

GAISLER RESEARCH AB

-3-

GRMON User¡¯s Manual

1

1.1

1.2

1.3

1.4

1.5

1.5.1

1.6

Introduction.....................................................................................................

General............................................................................................................

Supported platforms and system requirements...............................................

Obtaining GRMON ........................................................................................

Installation ......................................................................................................

License installation .........................................................................................

HASP4 hardware key .....................................................................................

Problem reports...............................................................................................

6

6

6

6

6

6

6

6

2

2.1

2.2

Operation ........................................................................................................ 7

Overview......................................................................................................... 7

Command line options.................................................................................... 7

3

3.1

3.2

3.2.1

3.2.2

3.3

3.3.1

3.3.2

3.4

3.5

3.6

3.7

3.8

3.9

Interactive mode .............................................................................................

Internal commands..........................................................................................

Running applications ......................................................................................

Running applications in dsu mode..................................................................

Running applications in simulator mode ........................................................

Inserting breakpoints and watchpoints ...........................................................

DSU ................................................................................................................

Simulator.........................................................................................................

Displaying registers ........................................................................................

Symbolic debug information ..........................................................................

Displaying memory contents ..........................................................................

Disassembly of memory .................................................................................

Loadable command module............................................................................

Simple Profiling..............................................................................................

8

8

9

9

9

10

10

10

11

11

12

12

13

14

4

4.1

4.2

4.3

4.4

GDB interface.................................................................................................

Attaching to gdb .............................................................................................

Debugging of applications..............................................................................

Detaching........................................................................................................

Limitations of gdb interface............................................................................

15

15

17

17

17

5

5.1

5.2

5.2.1

5.2.2

5.2.3

5.2.4

5.3

5.3.1

5.3.2

The DSU backend...........................................................................................

General............................................................................................................

Operation ........................................................................................................

Overview.........................................................................................................

Starting GRMON/DSU using the DSU uart...................................................

Starting GRMON/DSU using a PCI interface (Linux only)...........................

Command line options....................................................................................

Interactive mode .............................................................................................

Commands specific to the DSU backend .......................................................

Using the trace buffer .....................................................................................

18

18

18

18

18

19

19

21

21

22

GAISLER RESEARCH AB

-4-

GRMON User¡¯s Manual

5.3.3

5.4

5.5

5.5.1

5.5.2

Forwarding application console output ..........................................................

MMU support .................................................................................................

GDB interface.................................................................................................

Some gdb support functions ...........................................................................

MMU support .................................................................................................

24

24

24

24

25

6

6.1

6.2

6.2.1

6.2.2

6.2.3

6.2.4

6.2.5

6.3

6.3.1

6.3.2

6.3.3

6.3.4

6.3.5

6.3.6

6.3.7

6.3.8

6.3.9

6.3.10

6.3.11

6.3.12

6.4

6.4.1

6.4.1.1

6.4.1.2

6.4.1.3

6.4.1.4

6.4.2

6.4.2.1

6.4.2.2

6.4.3

6.4.3.1

6.4.3.2

6.4.3.3

6.4.3.4

6.5

The simulator backend....................................................................................

General............................................................................................................

Operation ........................................................................................................

Command line options....................................................................................

Commands specific for the simulator backend...............................................

Backtrace ........................................................................................................

Check-pointing ...............................................................................................

Profiling ..........................................................................................................

Emulation characteristics................................................................................

Timing.............................................................................................................

UARTS ...........................................................................................................

FPU .................................................................................................................

Delayed write to special registers ...................................................................

Idle-loop optimisation.....................................................................................

Processor timing .............................................................................................

Cache memories..............................................................................................

LEON peripherals registers ............................................................................

Interrupt controller..........................................................................................

Power-down mode ..........................................................................................

Memory emulation..........................................................................................

SPARC V8 MUL/DIV/MAC instructions......................................................

Loadable modules...........................................................................................

The simulator backend I/O emulation interface .............................................

simif structure .................................................................................................

ioif structure....................................................................................................

Structure to be provided by I/O device...........................................................

Cygwin specific io_init() ................................................................................

LEON AHB emulation interface ....................................................................

procif structure................................................................................................

Structure to be provided by AHB module ......................................................

Co-processor emulation .................................................................................

FPU/CP interface ............................................................................................

Structure elements ..........................................................................................

Attaching the FPU and CP..............................................................................

Example FPU..................................................................................................

Limitations......................................................................................................

26

26

26

26

28

28

29

29

30

30

30

31

31

31

31

31

31

31

31

32

32

32

32

32

33

34

35

36

36

37

39

39

39

40

41

41

APPENDIX A: HASP ................................................................................................ 42

GAISLER RESEARCH AB

-5-

GRMON User¡¯s Manual

APPENDIX B: GRMON Command description....................................................... 46

GAISLER RESEARCH AB

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download