Albatron Technology ARM11/Cortex-A8 user manual Telnet Interface

Page 44

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

Image 44
Contents BdiGDB Installation Using bdiGDBIntroduction BDI2000 BDI ConfigurationTroubleshooting Maintenance Trademarks AppendicesIntroduction BDI2000BDI Configuration For BDI Main / Target a connector signals see table on next InstallationConnecting the BDI2000 to Target BDI Main / Target a Connector Signals Jtag Test ResetChanging Target Processor Type For Target B connector signals see table on next Adaptive ClockingBDI Target B Connector Signals Returned Jtag Test ClockPlease switch on the system in the following sequence External power supply Target systemPower Supply from Target System 142Status LED «MODE» Built in LED indicates the following BDI statesRS232 Connector BASE-T Connector Ethernet communicationPC Host Name DescriptionActivating Bootp Installation of the Configuration SoftwareOverview of an installation / configuration process Build the setup tool Load/Update the BDI firmware/logic1 Configuration with a Linux / Unix host Following the steps to bring-up a new BDI2000Check configuration and exit loader mode Transmit the initial configuration parametersfile name without any path For more information about Tftp use man tftpd2 Configuration with a Windows host Ory / programmable logicRecover procedure Reassemble the unit as described in Appendix «Maintenance»Testing the BDI2000 to host connection Tftp server for Windows NTUsing bdiGDB Principle of operationConfiguration File Part Init BdiGDB for GNU Debugger, BDI2000 ARM11/Cortex-A8 Using a startup program to initialize the target system ROM on the target, select ROM as the formatFormat COFF, SREC, AOUT, BIN, ELF or ROM Example Format CoffPart Target Cputype ARM1136None PushpullHalt StopRUN LoadonlySoft HardBreakmode Hard CoreDaisy chained Jtag devices Low level Jtag scan chain configuration Part Host Prompt ARM11 Dump filenamePart Flash BLOCK, CHIP, Unlock Supported Flash Memories AM29BX8 MIRRORX8, I28BX8 STRATAX8, AT49X8Or use the Telnet unlock command Tor. In other words, this is the size of one sector in bytesPart Regs Register definition file Example for a register definitionEntry in the configuration file Debugging with GDB Target setupConnecting to the target GDB monitor command Breakpoint HandlingTarget serial I/O via BDI Target DCC I/O via BDI Telnet Interface Command list DumpCPxx Registers Some examples CP15 ID register CRn = 0, opcode2 =CP15 Cache Type CRn = 0, opcode2 = CP15 Invalidate I cache line CRn = 7, opcode2 = 1, CRm =Multi-Core Support Specifications BASE-TEnvironmental notice Declaration of Conformity CEWarranty Troubleshooting Problemfirmware can not be loaded Possible reasonsMaintenance Unplug the cablesReinstallation Trademarks All trademarks are property of their respective holders