bdiGDB for GNU Debugger, BDI2000 (ARM11/Cortex-A8)

User Manual 44

3.4 Telnet Interface

A Telnet server is integrated within the BDI. The Telnet channel is used by the BDI to output error messages and other information. Also some basic debug tasks may be done by using this interface. Enter help at the Telnet command prompt to get a list of the available commands.

Telnet Debug features:

Display and modify memory locations

Display and modify registers

Single step a code sequence

Set hardware breakpoints (for code and data accesses)

Load a code file from any host

Start / Stop program execution

Programming and Erasing Flash memory

During debugging with GDB, the Telnet is mainly used to reboot the target (generate a hardware reset and reload the application code). It may be also useful during the first installation of the bdiGDB sys- tem or in case of special debug needs.

Multiple commands separated by a semicolon can be entered on one line.

Example of a Telnet session:

ARM1136>info

 

Core number

: 0

Core state

: debug mode (ARM)

Debug entry cause

: Vector Catch (RESET)

Current PC

: 0x00000000

Current CPSR

: 0x000001d3 (Supervisor)

ARM1136>rd

 

GPR00: 000000fc f1c72a88 ff5ffdf7 3bb15ae6

GPR04: f87f47f7 3c7c6959 ba398649 ddff6fed

GPR08: fff3a7b1 ff3defdf fafb5fff fb99eb7d

GPR12: bdffedbf 7edfffd7 8ce356cf 00000000

PC : 00000000

CPSR: 000001d3

 

ARM1136>md

0

 

 

00000000

: 3de37365 ddaf8e8b 70a66636 52d11411

es.=....6f.p...R

00000010

: b672ee06 d6a94323 6e73fd29 a8d6e9a1

..r.#C..).sn....

00000020

: 8f0a1aad 6c1a840f e1b1de9d 802e4839

.......l....9H..

00000030

: 9f9c2afa 9b818b86 63fdbab8 f2a63b91

.*.........c.;..

00000040

: 440f75a4 fa7b254e c5efff5b 8f4829a5

.u.DN%{.[....)H.

 

 

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

 

Notes:

The DUMP command uses TFTP to write a binary image to a host file. Writing via TFTP on a Linux/ Unix system is only possible if the file already exists and has public write access. Use "man tftpd" to get more information about the TFTP server on your host.

© Copyright 1997-2007 by ABATRON AG Switzerland

V 1.04

Page 44
Image 44
Albatron Technology ARM11/Cortex-A8 user manual Telnet Interface