Abatron BDI2000 User Manual

Bdm interface for hi-wave debugger, cpu16/32
Hide thumbs Also See for BDI2000:

Advertisement

HCI
bdi
BDM interface for HI-WAVE™ Debugger
CPU16/32
User Manual
Manual Version 1.11 for BDI2000
© 1992-2001 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 BDM interface for HI-WAVE™ Debugger CPU16/32 User Manual Manual Version 1.11 for BDI2000 © 1992-2001 ABATRON AG...
  • Page 2: Table Of Contents

    2 Installation ........................... 4 2.1 Connecting the BDI2000 to Target..................4 2.1.1 Changing Target Processor Type ................. 6 2.2 Connecting the BDI2000 to Power Supply................7 2.2.1 External Power Supply ....................7 2.2.2 Power Supply from Target System ................8 2.3 Status LED «MODE»......................
  • Page 3: Introduction

    A RS232 interface with a maximum of 115 kBaud and a 10Base-T Ethernet interface is available for the host interface. The bdiHCI setup software is used to update the firmware and to configure the BDI2000 so it works with the HI-WAVE debugger.
  • Page 4: Installation

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 2 Installation 2.1 Connecting the BDI2000 to Target The cable to the target system is a ten 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 Motorola specification.
  • Page 5 3.0 – 5.0V with Rev. A/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 6: 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 Appendix A). During this process the target cable must be disconnected from the target system.
  • Page 7: Connecting The Bdi2000 To Power Supply

    2.2 Connecting the BDI2000 to Power Supply 2.2.1 External Power Supply The BDI2000 needs to be supplied with 5 Volts (max. 1A) via the BDI OPTION connector (Rev. A) or via POWER connector (Rev. B/C). The available power supply from Abatron (option) or the enclosed power cable can be directly connected.
  • Page 8: Power Supply From Target System

    2.2.2 Power Supply from Target System The BDI2000 needs to be supplied with 5 Volts (max. 1A) via BDI MAIN target connector (Rev. A) or via TARGET A connector (Rev. B/C). This mode can only be used when the target system runs with 5V and the pin «Vcc Target»...
  • 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

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 2.4 Connecting the BDI2000 to Host 2.4.1 Serial line communication The host is connected to the BDI through the serial interface (COM1...COM4). The communication cable between BDI and Host is a serial cable (RXD / TXD are crossed). There is the same connector pinout for the BDI and for the Host side (Refer to Figure below).
  • 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: Installation Of The Configuration Software

    Help contents file b20c32fw.xxx Firmware for BDI2000 for CPU16 and CPU32 targets c32jed20.xxx JEDEC file for the BDI2000 (Rev. A/B) logic device programming c32jed21.xxx JEDEC file for the BDI2000 (Rev. C) logic device programming bdidll16.dll BDI Data Link Layer DLL (16bit version) for HI-CROSS bdidll32.dll...
  • Page 13: Configuration

    First make sure that the BDI is properly connected (see Chapter 2.1 to 2.4). The BDI must be con- nected via RS232 to the Windows host. To avoid data line conflicts, the BDI2000 must be disconnected from the target system while programming the logic for an other target CPU (see Chapter 2.1.1).
  • Page 14 This button is only active if there is a newer firmware or logic version present in the execution directory of the BDI setup software. Press this button to write the new firmware and/or logic into the BDI2000 flash mem- ory / programmable logic.
  • Page 15: Init List

    In order to prepare the target for debugging, you can define an Initialization List. This list is stored in the Flash memory of the BDI2000 and worked through every time the target comes out of reset. Use it to get the target operational after a reset. The memory system is usually initialized through this list.
  • Page 16: Bdi Working Modes

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 4 BDI working modes dialog box «BDI Working Mode» With this dialog box you can define how the BDI interacts with the target system. Identification Enter a text to identify this setup. This text can be read by the debugger with the appropriate Command.
  • Page 17: Startup Mode

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual Loop Level Selects the priority level (interrupt priority mask) the application uses when halted in LOOP mode. A level of 7 disables all interrupts when the application is halted. The value CURRENT(default) means, the application loops with the level currently active at the point where it is stopped.
  • Page 18: Startup Mode Stop

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 4.1.2 Startup Mode STOP In this mode the initialization code is in a ROM on the target system. The code in this ROM handles base initialization and sets the stackpointer. At the end of the code, the initialization program enters an endless loop until it is interrupted by the BDI.
  • Page 19: Breakpoint Mode Freezed

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 4.2.1 Breakpoint Mode FREEZED In this mode breakpoints are implemented by replacing application code with the BGND instruction. All the time the application is halted (i.e. caused by a breakpoint) the target processor remains freezed.
  • Page 20 BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual The following diagram shows the used universal exception procedure for CPU32 targets. May be this helps you to understand how BDI works in LOOP mode. Target BDI2000 Vectortable: Entry save all register...
  • Page 21: Workspace

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 4.3 Workspace Depending on the working mode, the BDI needs some RAM in the target system. The following table shows how much RAM is used in the different modes. Mode CPU32...
  • Page 22: Terminal Data

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 4.4 Terminal Data The HI-CROSS terminal function is supported. The parameter «Terminal data» defines the start of a RAM area used for a communications data structure. Terminal data The base address of a structure in RAM used to exchange terminal input/ output characters.
  • Page 23: Working With Hi-Wave

    5 Working with HI-WAVE 5.1 Setup There are three environment variables concerning the interface between HI-WAVE and the BDI2000. The first one (BDI_LINK) defines the communication channel used. The second one (BDI_COMPRESS) defines if data compression should be used when downloading via an asynchro- nous communication channel (e.g.
  • Page 24: External Break Inputs

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 6 External Break Inputs The BDI has external break inputs which allows to stop the target CPU based on an external event. There are an ENABLE and two BREAK inputs. A break event is stored in an internal register and asserts the BKPT pin of the target CPU until it changes to background debug mode.
  • Page 25 False Cabeling (Version A only): If you use the external break functions and if your BDI2000 is powered via the BDI OPTION connec- tor (external power supply mode), you can use the enclosed «BDI Option Cable». © Copyright 1992-2001 by ABATRON AG...
  • Page 26: Specifications

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 7 Specifications 7.1 BDI2000 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 Parity Bits...
  • Page 27: Environmental Notice

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 8 Environmental notice Disposal of the equipment must be carried out at a designated disposal site. 9 Declaration of Conformity (CE) © Copyright 1992-2001 by ABATRON AG V 1.11...
  • Page 28: 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 29: 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 30: B Maintenance

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual B Maintenance B 1 BDI2000 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 still not responding, then the built in fuse might be damaged (in cases where the device was used with wrong supply voltage or wrong polarity).
  • Page 31 BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual 4.1 While holding the casing, slide carefully the print in position as shown in figure below Jumper settings DEFAULT INIT MODE Fuse Position Rev. B/C Fuse Position Rev. A Pull-out carefully the fuse and replace it Type: Microfuse MSF 1.6AF...
  • Page 32: C Trademarks

    BDM interface for HI-WAVE™ Debugger, BDI2000 (CPU16/32) User Manual C Trademarks All trademarks are property of their respective holders. © Copyright 1992-2001 by ABATRON AG V 1.11...

Table of Contents