bdi
GDB
for BDI3000 (QorIQ P3/P4/P5)
User Manual
40
© Copyright 1997-2012 by ABATRON AG Switzerland
V 1.03
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 commands can be executed.
Telnet Debug features:
• Display and modify memory locations
• Display and modify general and special purpose registers
• Single step a code sequence
• Set hardware breakpoints
• 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 re-
set and reload the application code). It may be also useful during the first installation of the bdiGDB
system or in case of special debug needs.
Example of a Telnet session:
P4080#0>info
Target CPU : P4080 Core#0
Core state : halted
Debug entry cause : device event
Current PC : 0xfffffffc
Current CR : 0x00000000
Current MSR : 0x00000000
Current LR : 0x00000000
Current CCSRBAR : 0x0_fe000000
P4080#0>rd
GPR00: c11bc002 06278553 80028188 aba40000
GPR04: 609db195 ad1944b2 deadbeef 002883a6
GPR08: 20119520 2032dc90 94110404 29038003
GPR12: 9422cf8e 0c105000 613b00b0 4e0d4548
GPR16: 0f15d163 3820d4a3 806b42d8 4c005402
GPR20: b0010949 846310d8 c0d53502 4c41d854
GPR24: c0602409 4443cd98 a8911575 e0021810
GPR28: 200842c0 c890cc15 2c2390ce 604bc0c1
CR : 00000000 MSR: 00000000
P4080#0>md 0
0_00000000 : deadbeef deadbeef deadbeef deadbeef ................
0_00000010 : deadbeef deadbeef deadbeef deadbeef ................
0_00000020 : deadbeef deadbeef deadbeef deadbeef ................
0_00000030 : deadbeef deadbeef deadbeef deadbeef ................
0_00000040 : deadbeef deadbeef deadbeef deadbeef ................
......
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.