Abatron BDI2000 User manual

bdiGDB
JTAG debug interface for GNU Debugger
PA6T
User Manual
Manual Version 1.00 for BDI2000
©1997-2008 by Abatron AG

bdiGDBfor BDI2000 (PA6T) User Manual 2
© Copyright 1997-2008 by ABATRON AG Switzerland V 1.00
1 Introduction ................................................................................................................................. 3
1.1 BDI2000................................................................................................................................. 3
1.2 BDI Configuration .................................................................................................................. 4
2 Installation ................................................................................................................................... 5
2.1 Connecting the BDI2000 to Target ........................................................................................ 5
2.1.1 Changing Target Processor Type ................................................................................ 7
2.2 Connecting the BDI2000 to Power Supply ............................................................................ 8
2.3 Status LED «MODE»............................................................................................................. 9
2.4 Connecting the BDI2000 to Host ......................................................................................... 10
2.4.1 Serial line communication .......................................................................................... 10
2.4.2 Ethernet communication ............................................................................................ 11
2.5 Initial configuration of the bdiGDB system........................................................................... 12
2.5.1 Configuration with a Linux / Unix host........................................................................ 13
2.5.2 Configuration with a Windows host............................................................................ 15
2.5.3 Recover procedure..................................................................................................... 16
2.6 Testing the BDI2000 to host connection.............................................................................. 17
2.7 TFTP server for Windows....................................................................................................17
3 Using bdiGDB............................................................................................................................ 18
3.1 Principle of operation........................................................................................................... 18
3.2 Configuration File ................................................................................................................ 19
3.2.1 Part [INIT]................................................................................................................... 20
3.2.2 Part [TARGET] ........................................................................................................... 22
3.2.3 Part [HOST]................................................................................................................ 26
3.2.4 Part [FLASH] .............................................................................................................. 28
3.2.5 Part [REGS] ............................................................................................................... 32
3.3 Debugging with GDB ........................................................................................................... 34
3.3.1 Target setup ............................................................................................................... 34
3.3.2 Connecting to the target............................................................................................. 34
3.3.3 GDB monitor command.............................................................................................. 35
3.3.4 Target serial I/O via BDI............................................................................................. 36
3.4 Telnet Interface.................................................................................................................... 37
3.5 Multi-Core Support .............................................................................................................. 39
3.6 Low level JTAG mode ......................................................................................................... 40
4 Specifications............................................................................................................................ 41
5 Environmental notice................................................................................................................ 42
6 Declaration of Conformity (CE)................................................................................................ 42
7 Warranty..................................................................................................................................... 43
Appendices
A Troubleshooting ....................................................................................................................... 44
B Maintenance.............................................................................................................................. 45
C Trademarks ............................................................................................................................... 47

bdiGDBfor BDI2000 (PA6T) User Manual 3
© Copyright 1997-2008 by ABATRON AG Switzerland V 1.00
1 Introduction
bdiGDB enhances the GNU debugger (GDB), with JTAG/COP debugging for P.A. Semi PA6T based
targets. With the built-in Ethernet interface you get a very fast code download speed. No target com-
munication channel (e.g. serial line) is wasted for debugging purposes. Even better, you can use fast
Ethernet debugging with target systems without network capability. The host to BDI communication
uses the standard GDB remote protocol.
An additional Telnet interface is available for special debug tasks (e.g. force a hardware reset,
program flash memory).
The following figure shows how the BDI2000 interface is connected between the host and the target:
1.1 BDI2000
The BDI2000 is the main part of the bdiGDB system. This small box implements the interface be-
tween the JTAG pins of the target CPU and a 10Base-T Ethernet connector. The firmware and the
programmable logic of the BDI2000 can be updated by the user with a simple Windows based con-
figuration program. The BDI2000 supports 1.8 – 5.0 Volts target systems (3.0 – 5.0 Volts target sys-
tems with Rev. B).
GNU Debugger
(GDB)
BDI2000
Tar get Sys tem
COP Interface
Ethernet (10 BASE-T)
PA6T
1682

bdiGDBfor BDI2000 (PA6T) User Manual 4
© Copyright 1997-2008 by ABATRON AG Switzerland V 1.00
1.2 BDI Configuration
As an initial setup, the IP address of the BDI2000, the IP address of the host with the configuration
file and the name of the configuration file is stored within the flash of the BDI2000.
Every time the BDI2000 is powered on, it reads the configuration file via TFTP.
Following an example of a typical configuration file:
;bdiGDB configuration file for PA6T-1682
;---------------------------------------
;
;
[INIT]
;
; Test the EXEC init list entry, load r3 with a pattern
;EXEC 0x7c7a4aa6 0x123456789abcdef0 ; mfspr r3,HSRR0
;
[TARGET]
CPUTYPE PA6T ;the CPU type
;CPUTYPE PA6T 32BIT ;the CPU type, 32-bit GDB protocol
JTAGCLOCK 1 ;use 16 MHz JTAG clock
POWERUP 2000 ;start delay after power-up detected in ms
RESET HARD 1000 ;assert reset pin for 1 second
WAKEUP 200 ;give reset time to complete
;STARTUP RUN ;let the CPU run
STARTUP STOP 8000 ;let boot code setup the system
;STARTUP HALT ;halt at boot vector
BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoint
;STEPMODE JTAG ;JTAG or HWBP, HWPB uses a hardware breakpoint
STEPMODE HWBP ;JTAG or HWBP, HWPB uses a hardware breakpoint
;
CATCH MCHK HDEC DEC EXT ILLG PRIV FPUN VXUN SC ALNG ; catch some exceptions
;
[HOST]
IP 151.120.25.112
FILE E:\temp\dump1024k.bin
FORMAT BIN 0x00010000
PROMPT PA6T>
[FLASH]
; only to test execution of target code
WORKSPACE 0x0001000 ;workspace in SDRAM
CHIPTYPE AM29BX16 ;Flash type
CHIPSIZE 0x00800000 ;The size of one flash chip in bytes
BUSWIDTH 16 ;The width of the flash memory bus in bits
FILE E:\temp\dump16k.bin
FORMAT BIN 0x00100000
[REGS]
FILE $regPA6T.def
Based on the information in the configuration file, the target is automatically initialized after every re-
set.

bdiGDBfor BDI2000 (PA6T) User Manual 5
© Copyright 1997-2008 by ABATRON AG Switzerland V 1.00
2 Installation
2.1 Connecting the BDI2000 to Target
The cable to the target system is a 16 pin flat ribbon cable. In case where the target system has an
appropriate connector, the cable can be directly connected. The pin assignment is in accordance with
the PowerPC COP connector specification.
In order to ensure reliable operation of the BDI (EMC, runtimes, etc.) the target cable length must not
exceed 20 cm (8").
For BDI TARGET B connector signals see table on next page.
!
COP/JTAG Connector
BDI2000
Target Syste m
PA6T 1 15
16
2
The green LED «TRGT» marked light up when target is powered up
BDI TRGT MODE TARGET A TARGET B
15 1
16 2
1 - TDO
2 - NC
3 - TDI
4 - TRST
5 - NC
6 - Vcc Target
7 - TCK
8 - NC
9 - TMS
10 - NC
11 - NC
12 - GROUND
13 - RESET
14 - NC (key)
15 - NC
16 - GROUND
Other manuals for BDI2000
10
This manual suits for next models
1
Table of contents
Other Abatron Recording Equipment manuals

Abatron
Abatron BDI2000 User manual

Abatron
Abatron bdiGDB QorIQ P3 User manual

Abatron
Abatron BDI2000 User manual

Abatron
Abatron BDI2000 Installation and operation manual

Abatron
Abatron bdiGDB User manual

Abatron
Abatron bdiAccess BDI1000 User manual

Abatron
Abatron BDI3000 User manual

Abatron
Abatron bdiAccess BDI1000 User manual