Abatron BDI2000 User Manual

Jtag debug interface for gnu debugger powerpc 7440 / 7450 / 86xx
Hide thumbs Also See for BDI2000:

Advertisement

GDB
bdi
JTAG debug interface for GNU Debugger
PowerPC 7440 / 7450 / 86xx
User Manual
Manual Version 1.13 for BDI2000
©1997-2015 by Abatron AG

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BDI2000 and is the answer not in the manual?

Questions and answers

Summary of Contents for Abatron BDI2000

  • Page 1 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: Table Of Contents

    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 ..................
  • Page 3: Introduction

    Ethernet (10 BASE-T) 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.
  • Page 4: Bdi Configuration

    User Manual 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.
  • Page 5: Installation

    User Manual 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.
  • Page 6 3.0 – 5.0V with Rev. B : This input to the BDI2000 is used to detect if the target is powered up. If there is a current limiting resistor between this pin and the target Vdd, it should be 100 Ohm or less.
  • Page 7: Changing Target Processor Type

    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 process the target cable must be disconnected from the target system.
  • Page 8: Connecting The Bdi2000 To Power Supply

    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 enclosed power cable can be directly connected. In order to ensure reliable operation of the BDI2000, keep the power supply cable as short as possible.
  • Page 9: Status Led «Mode

    MODE LED BDI STATES The BDI is ready for use, the firmware is already loaded. The power supply for the BDI2000 is < 4.75VDC. BLINK The BDI «loader mode» is active (an invalid firmware is loaded or loading firmware is active).
  • Page 10: Connecting The Bdi2000 To Host

    BDI2000 (PowerPC 7440/7450/86xx) User Manual 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 the BDI through the serial interface (COM1...COM4). The communication cable (included) between BDI and Host is a serial cable.
  • Page 11: Ethernet Communication

    User Manual 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.
  • Page 12: Initial Configuration Of The Bdigdb System

    Windows Configuration program b20pwsgd.xxx Firmware for the BDI2000 copjed20.xxx JEDEC file for the BDI2000 (Rev. B) logic device when working with a COP target copjed21.xxx JEDEC file for the BDI2000 (Rev. C) logic device when working with a COP target tftpsrv.exe TFTP server for Windows (WIN32 console application) *.cfg...
  • Page 13: Configuration With A Linux / Unix Host

    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.zip are all sources to build this utility. More information about this utility can be found at the top in the bdisetup.c source file.
  • Page 14 The following parameters are used to configure the BDI: BDI IP Address The IP address for the BDI2000. Ask your network administrator for as- signing an IP address to this BDI2000. Every BDI2000 in your network needs a different IP address.
  • Page 15: Configuration With A Windows Host

    CPU (see Chapter 2.1.1). dialog box «BDI2000 Update/Setup» Before you can use the BDI2000 together with the GNU debugger, you must store the initial config- uration parameters in the BDI2000 flash memory. The following options allow you to do this:...
  • Page 16: Recover Procedure

    User manual. This name is transmitted to the TFTP server when reading the configuration file. Transmit Click on this button to store the configuration in the BDI2000 flash memory. 2.5.3 Recover procedure In rare instances you may not be able to load the firmware in spite of a correctly connected BDI (error of the previous firmware in the flash memory).
  • Page 17: Testing The Bdi2000 To Host Connection

    • If not already done, connect the BDI2000 system to the network. • Power-up the BDI2000. • Start a Telnet client on the host and connect to the BDI2000 (the IP address you entered dur- ing initial configuration). • If everything is okay, a sign on message like «BDI Debugger for Embedded PowerPC» and a list of the available commands should be displayed in the Telnet window.
  • Page 18: Using Bdigdb

    Get configuration file via TFTP Power OFF Process target init list Load program code via TFTP and set the PC RUN selected? Start loaded program code Process GDB request Power OFF © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 19 The following example selects SOFT as the breakpoint mode: BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC hardware breakpoints All the time the application is suspended (i.e. caused by a breakpoint) the target processor remains freezed. © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 20: Configuration File

    The "high word" (optional) and "low word" can be entered as decimal or hexadecimal. They are han- dled as two separate values concatenated with an underscore. Examples: 0x01234567_0x89abcdef =>> 0x0123456789abcdef =>> 0x0000000100000000 =>> 0x0000000000000100 3_0x1234 =>> 0x0000000300001234 0x80000000_0 =>> 0x8000000000000000 © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 21: Part [Init]

    WM32 address value Write a word (32bit) to the selected memory place. address the memory address value the value to write to the target memory Example: WM32 0x02200000 0x01632440 ; SIUMCR © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 22 Example: MMAP 0xFFE00000 0xFFFFFFFF ;Boot ROM © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 23: Part [Target]

    You may change this initial breakpoint address. address the address where to set the startup breakpoint Example: BOOTADDR 0xFFF00120 © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 24 Before the BDI accesses any memory, the caches are flushed and only external memory is accessed. This mode needs a valid workspace for the flush code. Example: DCACHE NOFLUSH ; do not flush caches © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 25 Support". Addresses entered at the Telnet are never translated. Transla- tion can be probed with the Telnet command PHYS. The kernel virtual base address (KERNELBASE) Example: MMU XLAT ;enable address translation © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 26 When this line is present, the BDI forces the QACK pin (pin 2) on the COP connector low. By default this pin is not driven by the BDI. Maybe useful for PPC750 and PPC7400 targets. Example: QACK LOW ; force QACK low via COP connector © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 27 The number of succeeding devices irlen The sum of the length of all succeeding instruction reg- isters (IR). Example: SCANSUCC 2 12 ; two device with an IR length of 8+4 © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 28: Part [Host]

    Program Header, it also loads the rest of the file up to the Section Header Table. The relationship between load address and file offset will be maintained throughout this process. This way, the com- pressed Linux image and a optional RAM disk image will also be loaded. © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 29 If it should not send echoes and let the Telnet client in "line mode", add this entry to the configuration file. mode ECHO (default), NOECHO or LINE Example: TELNET NOECHO ; use old line mode © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 30: Part [Flash]

    "offset" is added to any load address read from the program file. You get the best programming performance when using a binary format (BIN, AOUT, ELF or IMAGE). format SREC, BIN, AOUT, ELF or IMAGE Example: FORMAT BIN 0x10000 © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 31 ;erase sector 6 of flash SIMM ERASE 0xFF9c0000 ;erase sector 7 of flash SIMM the above erase list maybe replaces with: ERASE 0xFF900000 0x40000 4 ; erase sector 4 to 7 of flash SIMM © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 32 0x01000000 Intel 28F032B3 I28BX8 0x400000 Intel 28F640J3A STRATAX8 STRATAX16 0x800000 Intel 28F320C3 I28BX16 0x400000 AT49BV040 AT49 0x080000 AT49BV1614 AT49X8 AT49X16 0x200000 M58BW016BT M58X32 0x200000 SST39VF160 AT49X16 0x200000 Am29LV320M MIRRORX8 MIRRORX16 0x400000 © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 33 The following example unlocks all 256 sectors of an Intel Strata flash (28F256K3) that is mapped to 0x00000000. In case there are two flash chips to get a 32bit system, double the "step" parameter. BDI> unlock 0x00000000 0x20000 256 © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 34: Part [Regs]

    "data" as address. addr the address of the Address register data the address of the Data register Example: DMM1 0x04700000 Remark: The registers msr, cr, iar and acc and are predefined. © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 35 16 SWAP eumbbar IMM1 0x78000080 32 SWAP msar1 IMM1 0x80000080 32 SWAP ..Now the defined registers can be accessed by name via the Telnet interface: BDI> rd lmbar BDI>rm sprg0 0xFF801801 © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 36: Debugging With Gdb

    ... Wait until BDI has resetet the target and reloaded the image (gdb)target remote bdi2000:2001 Note: After loading a program to the target you cannot use the GDB "run" command to start execution. You have to use the GDB "continue" command. © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 37: Breakpoint Handling

    (gdb) target remote bdi2000:2001 Remote debugging using bdi2000:2001 0x10b2 in start () (gdb) monitor break Breakpoint mode is SOFT (gdb) mon break hard (gdb) mon break Breakpoint mode is HARD (gdb) © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 38: Target Serial I/O Via Bdi

    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 channel. For example, you can connect a Telnet session to the appropriate BDI2000 port.
  • Page 39: Embedded Linux Mmu Support

    PTE user pointer (virtual or physical address) Newer versions of "arch/ppc/kernel/head.S" support the automatic update of the BDI page table in- formation structure. Search "head.S" for "abatron" and you will find the BDI specific extensions. Extract from the configuration file: [INIT] ..
  • Page 40 /* Let PTBASE point to an array of two pointers*/ BDI>mm 0xf8 0xc0057000 /* write address of swapper_pg_dir to first pointer */ BDI>mm 0xfc 0x00000000 /* clear second (user) pointer */ © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 41: Telnet Interface

    IABR[TE] is set when the parameter V is present in the BREAK- MODE configuration. Otherwise it is cleared. You can override this default setting with the optional parameter v (virtual, sets TE) or p (physical, clears TE). © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 42 "CONFIG <file> [<hostIP> [<bdiIP> [<gateway> [<mask>]]]]", "HELP display command list", "SAP [0 | 1] enable / disable JTAG memory access via SAP", "BOOT reboot the BDI and reload the configuration", "QUIT terminate the Telnet session" © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 43: Dual-Core Support For Mpc8641D

    MCMPCR in this case. STARTUP RUN HALT The first core is let running while the second core will be enabled via MCMPCR and halted at the reset vector via an IABR breakpoint. © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 44 W1 : 0_0010b000 VD 0010b000 0010b004 0010b008 0010b00c 0010b010 0010b014 0010b018 0010b01c W2 : 0_00111000 V- 00111000 00111004 00111008 0011100c 00111010 00111014 00111018 0011101c W3 : 0_0010d000 VD 0010d000 0010d004 0010d008 0010d00c 0010d010 0010d014 0010d018 0010d01c © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 45: Specifications

    -20 °C ... +65 °C Relative Humidity (noncondensing) <90 %rF Size 190 x 110 x 35 mm Weight (without cables) 420 g Host Cable length (RS232) 2.5 m Specifications subject to change without notice © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 46: Environmental Notice

    BDI2000 (PowerPC 7440/7450/86xx) User Manual 5 Environmental notice Disposal of the equipment must be carried out at a designated disposal site. 6 Declaration of Conformity (CE) © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 47: Warranty

    In no event shall ABATRON be liable for any loss of profit or any other commercial damage, including but not limited to special, incidental, consequential, or other damages.
  • Page 48: Appendices

    Problem Network processes do not function (loading the firmware was successful) Possible reasons • The BDI2000 is not connected or not correctly connected to the network (LAN cable or media converter) • An incorrect IP address was entered (BDI2000 configuration) ©...
  • Page 49: B Maintenance

    2.2 Remove the two screws that hold the front panel TRGT MODE BDI MAIN BDI OPTION 3.1 While holding the casing, remove the front panel and the red elastig sealing casing elastic sealing front panel © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 50 5.4 Mount the two plastic caps that cover the screws 5.5 Plug the cables Observe precautions for handling (Electrostatic sensitive device) Unplug the cables before opening the cover. Use exact fuse replacement (Microfuse MSF 1.6 AF). © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...
  • Page 51: C Trademarks

    BDI2000 (PowerPC 7440/7450/86xx) User Manual C Trademarks All trademarks are property of their respective holders. © Copyright 1997-2015 by ABATRON AG Switzerland V 1.13...

Table of Contents