Abatron BDI2000 User Manual

Abatron BDI2000 User Manual

Jtag debug interface for gnu debugger
Hide thumbs Also See for BDI2000:

Advertisement

GDB
bdi
JTAG debug interface for GNU Debugger
PA6T

User Manual

Manual Version 1.00 for BDI2000
©1997-2008 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

Subscribe to Our Youtube Channel

Summary of Contents for Abatron BDI2000

  • Page 1: User Manual

    JTAG debug interface for GNU Debugger PA6T User Manual Manual Version 1.00 for BDI2000 ©1997-2008 by Abatron AG...
  • Page 2 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 (PA6T) 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

    2.5 Initial configuration of the bdiGDB system On the enclosed CD you will find the BDI configuration software and the firmware / logic required for the BDI2000. For Windows users there is also a TFTP server included. The following files are on the CD.
  • 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 19: 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: 0x0123456789abcdef =>> 0x0123456789abcdef 0x01234567_0x89abcdef =>> 0x0123456789abcdef =>> 0x0000000100000000 =>> 0x0000000000000100 3_0x1234 =>> 0x0000000300001234 0x80000000_0 =>> 0x8000000000000000 © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 20: Part [Init]

    Example: WM32 0xe0008100 0x00700000 SWAP ;l2c_l2ccfg_gen WM64 addr data Write a double word (64bit) to the selected memory place. addr the memory address data the value used to generate the pattern Example: WM64 0xfd000000 0x0123456789abcdef © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 21 CFG32 addr data [SWAP] Write a word (32bit) to the selected memory place via TBUS. addr the memory address data the value to write to the target memory Example: CFG32 0xe0018290 0x2b270303 SWAP ;pwr_pwrvid © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 22: Part [Target]

    PA6T Example: CPUTYPE PA6T JTAGCLOCK value With this value you can select the JTAG clock rate the BDI2000 uses when communication with the target CPU. value 0 = 16.6 MHz, 1 = 8.3 MHz, 2 = 4.1 MHz Example: CLOCK 1 ;...
  • Page 23 This is the default mode. The single step feature of the PA6T debug interface is used for single stepping.. HWBP In this mode, one or two hardware breakpoints are used to implement single stepping. Example: STEPMODE HWBP © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 24 16 bytes in target RAM. This because the current release of the BDI firmware uses stuffed stvx/lvx instructions to access the VR’s. Enter the base address of this RAM area. address the address of the RAM area Example: WORKSPACE 0x00000080 © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 25 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 26: Part [Host]

    TCP port number (default = 2001) Example: DEBUGPORT 2001 PROMPT string This entry defines a new Telnet prompt. The current prompt can also be changed via the Telnet interface. Example: PROMPT PA6T> © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 27 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 28: 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 29 ;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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 30 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 31 The BDI also supports programming the SPI boot flash via the processors "bit-bang" interface. Ask for current supported SPI flash devices. ;SPI boot flash SST25VF016B WORKSPACE 0xfd001000 ;workspace in L2C RAM CHIPTYPE SPI1682 FILE E:\temp\pa6tboot.bin FORMAT BIN 0xfff00000 ERASE 0xfff00000 CHIP ;erase all blocks © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 32: 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, pc and fpscr and are predefined. © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 33 32 SWAP lpcelo 0xfcff0404 32 SWAP lpcehi 0xfcff0408 32 SWAP ..Now the defined registers can be accessed by name via the Telnet interface: BDI> rd asid BDI> rm sprg0 0xFF801801 © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 34: 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 35: Gdb Monitor Command

    (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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 36: Target Serial I/O Via Bdi

    3.3.4 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 37: 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 38 "CONFIG display or update BDI configuration", "CONFIG <file> [<hostIP> [<bdiIP> [<gateway> [<mask>]]]]", "HELP display command list", "JTAG switch to JTAG command mode", "QUIT terminate the Telnet session" © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 39: Multi-Core Support

    Multi-Core related Telnet commands: "SELECT <core> change the current core", "GO <n> <n> [<n>[<n>]] start multiple cores in requested order", "HALT [<n>[<n>[<n>[<n>]]]] force core(s) to debug mode (n = core number)", © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 40: Low Level Jtag Mode

    Using this special JTAG mode is not necessary during normal debugging. It helps to investigate JTAG connection problems or to dump some scan chain for special problem analysis. The following example dumps the SYS_DEBUG scan chain: PA6T#0>jtag JTAG>scan 0x31 119 7018000000020d200000100c52d96d JTAG>exit PA6T#0> © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...
  • Page 41: 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 42: Environmental Notice

    BDI2000 (PA6T) 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 43: 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 44: A Troubleshooting

    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 45: 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 46 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-2008 by ABATRON AG Switzerland V 1.00...
  • Page 47: C Trademarks

    BDI2000 (PA6T) User Manual C Trademarks All trademarks are property of their respective holders. © Copyright 1997-2008 by ABATRON AG Switzerland V 1.00...

This manual is also suitable for:

Pa6t

Table of Contents