- DL manuals
- Abatron
- Recording Equipment
- BDI2000
- User Manual
Abatron BDI2000 User Manual - page 11
bdi
GDB
for BDI2000 (PowerPC 7440/7450/86xx)
User Manual
11
© Copyright 1997-2015 by ABATRON AG Switzerland
V 1.13
2.4.2 Ethernet communication
The BDI2000 has a built-in 10 BASE-T Ethernet interface (see figure below). Connect an UTP (Un-
shilded Twisted Pair) cable to the BD2000. For thin Ethernet coaxial networks you can connect a
commercially available media converter (BNC-->10 BASE-T) between your network and the
BDI2000. Contact your network administrator if you have questions about the network.
The following explains the meanings of the built-in LED lights:
LED
Name
Description
LI
Link
When this LED light is ON, data link is successful between the UTP
port of the BDI2000 and the hub to which it is connected.
TX
Transmit
When this LED light BLINKS, data is being transmitted through the UTP
port of the BDI2000
RX
Receive
When this LED light BLINKS, data is being received through the UTP
port of the BDI2000
10 BASE-T
PC / Unix
Host
Target System
Ethernet (10 BASE-T)
1 - TD+
2 - TD-
3 - RD+
4 - NC
5 - NC
6 - RD-
7 - NC
8 - NC
Connector
BDI
2000
RS232
POWER
LI TX RX
10 BASE-T
1
8
PPC
Summary of BDI2000
Page 1
Bdi gdb jtag debug interface for gnu debugger powerpc 7440 / 7450 / 86xx user manual manual version 1.13 for bdi2000 ©1997-2015 by abatron ag.
Page 2
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 2 © copyright 1997-2015 by abatron ag switzerland v 1.13 1 introduction ................................................................................................................................. 3 1.1 bdi2000...............................
Page 3
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 3 © copyright 1997-2015 by abatron ag switzerland v 1.13 1 introduction bdigdb enhances the gnu debugger (gdb), with jtag/cop debugging for powerpc 7440/7450/ 86xx based targets. With the built-in ethernet interface you get a very fast code do...
Page 4
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 4 © copyright 1997-2015 by abatron ag switzerland v 1.13 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 t...
Page 5
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 5 © copyright 1997-2015 by abatron ag switzerland v 1.13 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 ...
Page 6
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 6 © copyright 1997-2015 by abatron ag switzerland v 1.13 bdi target b connector signals: pin name describtion 1 tdo jtag test data out this input to the bdi2000 connects to the target tdo pin. 2 qack qack this output of the bdi2000 connects to...
Page 7
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 7 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.1.1 changing target processor type before you can use the bdi2000 with an other target processor type (e.G. Cpu32 ppc), a new setup has to be done (see chapter 2.5). During this proces...
Page 8
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 8 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.2 connecting the bdi2000 to power supply the bdi2000 needs to be supplied with 5 volts (max. 1a) via the power connector. The available power supply from abatron (option) or the enclos...
Page 9
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 9 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.3 status led «mode» the built in led indicates the following bdi states: mode led bdi states off the bdi is ready for use, the firmware is already loaded. On the power supply for the b...
Page 10
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 10 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.4 connecting the bdi2000 to host 2.4.1 serial line communication serial line communication is only used for the initial configuration of the bdigdb system. The host is connected to th...
Page 11
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 11 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.4.2 ethernet communication the bdi2000 has a built-in 10 base-t ethernet interface (see figure below). Connect an utp (un- shilded twisted pair) cable to the bd2000. For thin ethernet...
Page 12
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 12 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.5 initial configuration of the bdigdb system on the enclosed diskette you will find the bdi configuration software and the firmware / logic required for the bdi2000. For windows users...
Page 13
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 13 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.5.1 configuration with a linux / unix host the firmware / logic update and the initial configuration of the bdi2000 is done with a command line utility. In the zip archive bdisetup.Zi...
Page 14
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 14 © copyright 1997-2015 by abatron ag switzerland v 1.13 4. Transmit the initial configuration parameters: with "bdisetup -c" the configuration parameters are written to the flash memory within the bdi. The following parameters are used to co...
Page 15
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 15 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.5.2 configuration with a windows host first make sure that the bdi is properly connected (see chapter 2.1 to 2.4). To avoid data line conflicts, the bdi2000 must be disconnected from ...
Page 16
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 16 © copyright 1997-2015 by abatron ag switzerland v 1.13 bdi ip address enter the ip address for the bdi2000. Use the following format: xxx.Xxx.Xxx.Xxx e.G.151.120.25.101 ask your network administrator for assigning an ip address to this bdi2...
Page 17
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 17 © copyright 1997-2015 by abatron ag switzerland v 1.13 2.6 testing the bdi2000 to host connection after the initial setup is done, you can test the communication between the host and the bdi2000. There is no need for a target configuration ...
Page 18
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 18 © copyright 1997-2015 by abatron ag switzerland v 1.13 3 using bdigdb 3.1 principle of operation the firmware within the bdi handles the gdb request and accesses the target memory or registers via the jtag interface. There is no need for an...
Page 19
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 19 © copyright 1997-2015 by abatron ag switzerland v 1.13 breakpoints: there are two breakpoint modes supported. One of them (soft) is implemented by replacing appli- cation code with a trap instruction. The other (hard) uses the built in brea...
Page 20
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 20 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.2 configuration file the configuration file is automatically read by the bdi after every power on. The syntax of this file is as follows: ; comment [part name] identifier parameter1 p...
Page 21
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 21 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.2.1 part [init] the part [init] defines a list of commands which should be executed every time the target comes out of reset. The commands are used to get the target ready for loading...
Page 22
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 22 © copyright 1997-2015 by abatron ag switzerland v 1.13 wm64 address value write a double word (64bit) to the selected memory place. This entry is mainly used to unlock flash blocks. The pattern written is generated by du- plicating the valu...
Page 23
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 23 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.2.2 part [target] the part [target] defines some target specific values. For mpc86xx, do not use parameters marked with a *. Cputype type [*noburstread] this value gives the bdi infor...
Page 24
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 24 © copyright 1997-2015 by abatron ag switzerland v 1.13 workspace address the bdi needs a workspace of 256 bytes in target ram for code sequenc- es to flush the data cache and to access l3 private memory. See also dcache and l3pm configurati...
Page 25
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 25 © copyright 1997-2015 by abatron ag switzerland v 1.13 powerup delay when the bdi detects target power-up, hreset is forced immediately. This way no code from a boot rom is executed after power-up. The value entered in this configuration li...
Page 26
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 26 © copyright 1997-2015 by abatron ag switzerland v 1.13 ptbase addr this parameter defines the physical memory address where the bdi looks for the virtual address of the array with the two page table pointers. For more information see also c...
Page 27
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 27 © copyright 1997-2015 by abatron ag switzerland v 1.13 daisy chained jtag devices: the bdi can also handle systems with multiple devices connected to the jtag scan chain. In order to put the other devices into bypass mode and to count for t...
Page 28
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 28 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.2.3 part [host] the part [host] defines some host specific values. Ip ipaddress the ip address of the host. Ipaddress the ip address in the form xxx.Xxx.Xxx.Xxx example: ip 151.120.25...
Page 29
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 29 © copyright 1997-2015 by abatron ag switzerland v 1.13 debugport port [reconnect] the tcp port gdb uses to access the target. If the reconnect param- eter is present, an open tcp/ip connection (telnet/gdb) will be closed if there is a conne...
Page 30
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 30 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.2.4 part [flash] the telnet interface supports programming and erasing of flash memories. The bdigdb system has to know which type of flash is used, how the chip(s) are connected to t...
Page 31
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 31 © copyright 1997-2015 by abatron ag switzerland v 1.13 workspace address if a workspace is defined, the bdi uses a faster programming algorithm that runs out of ram on the target system. Otherwise, the algorithm is pro- cessed within the bd...
Page 32
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 32 © copyright 1997-2015 by abatron ag switzerland v 1.13 supported flash memories: there are currently 3 standard flash algorithm supported. The amd, intel and atmel at49 algorithm. Almost all currently available flash memories can be program...
Page 33
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 33 © copyright 1997-2015 by abatron ag switzerland v 1.13 note: some intel flash chips (e.G. 28f800c3, 28f160c3, 28f320c3) power-up with all blocks in locked state. In order to erase/program those flash chips, use the init list to unlock the a...
Page 34
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 34 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.2.5 part [regs] in order to make it easier to access target registers via the telnet interface, the bdi can read in a register definition file. In this file, the user defines a name f...
Page 35
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 35 © copyright 1997-2015 by abatron ag switzerland v 1.13 example for a register definition (mpc107): entry in the configuration file: [regs] dmm1 0xfc000000 ;embedded utility memory base address imm1 0xfec00000 0xfee00000 ;configuration regis...
Page 36
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 36 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.3 debugging with gdb because the target agent runs within bdi, no debug support has to be linked to your application. There is also no need for any bdi specific changes in the applica...
Page 37
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 37 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.3.3 breakpoint handling gdb versions before v5.0: gdb inserts breakpoints by replacing code via simple memory read / write commands. There is no command like "set breakpoint" defined ...
Page 38
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 38 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.3.5 target serial i/o via bdi a rs232 port of the target can be connected to the rs232 port of the bdi2000. This way it is possible to access the target’s serial i/o via a tcp/ip chan...
Page 39
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 39 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.3.6 embedded linux mmu support the bdigdb system supports linux kernel debugging when mmu is on. The mmu configuration pa- rameter enables this mode of operation. In this mode, all ad...
Page 40
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 40 © copyright 1997-2015 by abatron ag switzerland v 1.13 to debug the linux kernel when mmu is enabled you may use the following load and startup se- quence: • load the compressed linux image • set a hardware breakpoint with the telnet at a p...
Page 41
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 41 © copyright 1997-2015 by abatron ag switzerland v 1.13 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 c...
Page 42
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 42 © copyright 1997-2015 by abatron ag switzerland v 1.13 the telnet commands: "phys "md [ "mdd [ "mdh [ "mdb [ "dump [] dump target memory to a file", "mm [] modify word(s) (32bit) in target memory", "mmd [] modify double word(s) (64bit) in t...
Page 43
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 43 © copyright 1997-2015 by abatron ag switzerland v 1.13 3.5 dual-core support for mpc8641d the bdigdb system supports concurrent debugging of the two e600 cores present in the mpc8641d. For every core you can start its own gdb session. The p...
Page 44
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 44 © copyright 1997-2015 by abatron ag switzerland v 1.13 note about memory accesses via jtag: on mpc86xx targets, memory accesses are done via the so called "system access port" (sap). The sap is like an additional bus master. You can access ...
Page 45
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 45 © copyright 1997-2015 by abatron ag switzerland v 1.13 4 specifications operating voltage limiting 5 vdc ± 0.25 v power supply current typ. 500 ma max. 1000 ma rs232 interface: baud rates 9’600,19’200, 38’400, 57’600,115’200 data bits 8 par...
Page 46
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 46 © copyright 1997-2015 by abatron ag switzerland v 1.13 5 environmental notice disposal of the equipment must be carried out at a designated disposal site. 6 declaration of conformity (ce).
Page 47
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 47 © copyright 1997-2015 by abatron ag switzerland v 1.13 7 warranty abatron switzerland warrants the physical diskette, cable, bdi2000 and physical documentation to be free of defects in materials and workmanship for a period of 36 months fol...
Page 48: Appendices
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 48 © copyright 1997-2015 by abatron ag switzerland v 1.13 appendices a troubleshooting problem the firmware can not be loaded. Possible reasons • the bdi is not correctly connected with the target system (see chapter 2). • the power supply of ...
Page 49
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 49 © copyright 1997-2015 by abatron ag switzerland v 1.13 b maintenance the bdi needs no special maintenance. Clean the housing with a mild detergent only. Solvents such as gasoline may damage it. If the bdi is connected correctly and it is st...
Page 50
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 50 © copyright 1997-2015 by abatron ag switzerland v 1.13 observe precautions for handling (electrostatic sensitive device) unplug the cables before opening the cover. Use exact fuse replacement (microfuse msf 1.6 af). 4 5 4.1 while holding th...
Page 51
Bdi gdb for bdi2000 (powerpc 7440/7450/86xx) user manual 51 © copyright 1997-2015 by abatron ag switzerland v 1.13 c trademarks all trademarks are property of their respective holders..