Abatron bdiWind PowerPC MPC8xx User Manual

Bdm interface for tornado

Advertisement

Quick Links

Wind
bdi
BDM interface for Tornado
PowerPC MPC8xx/MPC5xx
User Manual
Manual Version 1.38 for BDI2000
©1997-2007 by Abatron AG

Advertisement

Table of Contents
loading

Summary of Contents for Abatron bdiWind PowerPC MPC8xx

  • Page 1 Wind BDM interface for Tornado ™ PowerPC MPC8xx/MPC5xx User Manual Manual Version 1.38 for BDI2000 ©1997-2007 by Abatron AG...
  • Page 2: Table Of Contents

    3.5.1 Target connection ....................... 44 3.5.2 VxWorks configuration ....................45 3.6 Target serial I/O via BDI....................... 46 3.7 Telnet Interface ........................47 4 Specifications ..........................49 5 Environmental notice ........................ 50 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 3 User Manual 6 Declaration of Conformity (CE) ....................50 7 Warranty ............................. 51 Appendices A BDI2000 Setup/Update ......................52 B Troubleshooting ........................54 C Maintenance ..........................55 D Trademarks ..........................57 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 4: Introduction

    BDI2000 can be updated by the user with a simple Windows based config- uration program. The BDI2000 supports 1.8 – 5.0 Volts target systems (3.0 – 5.0 Volts target systems with Rev. A/B). © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 5: Bdi Configuration

    FORMAT LOAD AUTO ;<AGENT> load VxWorks code MANUAL or AUTO after reset DEBUGPORT 0x4321 Based on the information in the configuration file, the target is automatically initialized after every re- set. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 6: Installation

    S S S S w w w w i i i i s s s s s s s s M M M M a a a a d d d d e e e e The green LED «TRGT» marked light up when target is powered up For BDI MAIN / TARGET A connector signals see table on next page. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 7 (freezed): BOOL PPC_TargetFreezed(void) { if ((VFLS0 != 1) | (VFLS0 != 1)) return FALSE; read debug port status; if (status == freezed) return TRUE; else return FALSE; © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 8: Changing Target Processor Type

    (Rev. A) or via the POWER connector (Rev. B/C). For more information see chapter 2.2.1 «External Power Supply». To avoid data line conflicts, the BDI2000 must be disconnected from the target system while programming the logic for an other target CPU. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 9: Connecting The Bdi2000 To 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. In order to ensure reliable operation of the BDI2000, keep the power supply cable as short as possible.
  • Page 10: Power Supply From Target System

    POWER TX RX 10 BASE-T TRGT MODE TARGET A TARGET B The green LEDs «BDI» and «TRGT» marked light up when target is powered up and the jumper is inserted correctly © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 11: Status Led «Mode

    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). © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 12: Connecting The Bdi2000 To Host

    S S S S w w w w i i i i s s s s s s s s M M M M a a a a d d d d e e e e RS232 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 13: Ethernet Communication

    When this LED light BLINKS, data is being transmitted through the UTP port of the BDI2000 Receive When this LED light BLINKS, data is being received through the UTP port of the BDI2000 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 14: Installation Of The Configuration Software

    • Create a new directory on your hard disk, for example E:\bdi\ppc • Copy the entire contents of the enclosed diskette into this directory • You may create a new Windows Program Manager entry for the bdiWind configuration program. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 15: Initial Configuration Of The Bdiwind System

    • 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» should be displayed in the Telnet window. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 16: Tftp Server For Windows Nt

    The bdiWind system uses TFTP to access the configuration file and to load the initial VxWorks core. Because there is no TFTP server bundled with Windows NT, Abatron provides a TFTP server appli- cation tftpsrv.exe. This WIN32 console application runs as normal user application (not as a system service).
  • Page 17: Using Bdiwind

    In BDM Gateway mode, the UDP frames are transfered via the target BDM interface. In Serial Gateway mode, the UDP frames are transfered via a serial connection (UART or HDLC) be- tween the BDI2000 and the target (e.g. via a SMC channel). © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 18: Agent Mode

    Get configuration file via TFTP Power OFF Process target init list Load initial VxWorks core via TFTP and set the PC RUN selected? Start loaded VxWorks core Process WDB request Power OFF © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 19 Hardware breakpoints are also supported with Tornado II. There are 4 instruction and 2 data hard- ware breakpoints available. Hardware breakpoints can be set with the Tornado Shell (enter help). The following example sets a hardware breakpoint on writing to the variable "loopCount": bh &loopCount,3 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 20: Configuration File

    ..parameterN ..[part name] identifier parameter1 parameter2 ..parameterN identifier parameter1 parameter2 ..parameterN ..etc. Numeric parameters can be entered as decimal (e.g. 700) or as hexadecimal (0x80000). © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 21: Part [Init]

    Delay for the selected time. A delay may be necessary to let the clock PLL lock again after a new clock rate is selected. value the delay time in milliseconds (1...30000) Example: DELAY 500 ; delay for 0.5 seconds © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 22: Part [Target]

    After reset, the target executes code until stopped by the Telnet "halt" command. Example: STARTUP STOP 3000 ; let the CPU run for 3 seconds © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 23 The base address of the target memory. MEMSIZE value The size of the target memory. POOLBASE value The base address of host controlled target memory. POOLSIZE value The size of host controlled target memory. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 24 Note: You cannot use SIO and VIO at the same time. port The TCP/IP port used for the host communication. baudrate The BDI supports 2400 ... 115200 baud Example: SIO 7 9600 ;TCP port for virtual IO © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 25: Part [Host]

    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-2007 by ABATRON AG Switzerland V 1.38...
  • Page 26: Part [Flash]

    The format of the file and an optional address offset. The optional param- eter "offset" is added to any load address read from the program file. format SREC, BIN, AOUT, ELF or IMAGE Example: FORMAT SREC FORMAT ELF 0x10000 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 27 Example: ERASE 0xff040000 ;erase sector 4 of flash ERASE 0xff060000 ;erase sector 6 of flash ERASE 0xff000000 CHIP ;erase whole chip(s) ERASE 0xff010000 UNLOCK 100 ;unlock, wait 100ms © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 28 * The BDI does not write implicit any value to the UC3FMCRE registers. If small blocks are used, the appropriate value has to be written to the UC3FMCRE registers via the BDI initialization list or via the connected debugger. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 29 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-2007 by ABATRON AG Switzerland V 1.38...
  • Page 30 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-2007 by ABATRON AG Switzerland V 1.38...
  • Page 31 ;Select MPC565 internal CDR3 Flash WORKSPACE 0x007F8000 ;use CALRAM A for workspace FORMAT SREC FILE D:\abatron\bdi360\ppc\pro\mpc565.sss ;The file to program ERASE 0x004000FF ;Erase module A all sectors ERASE 0x004800FF ;Erase module B all sectors © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 32: Part [Regs]

    first written to "addr" and then the register value is access using "data" as address. addr the address of the Address register data the address of the Data register Example: DMM1 0x02200000 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 33 DMM1 0x0950 papar DMM1 0x0952 paodr DMM1 0x0954 padat DMM1 0x0956 Now the defined registers can be accessed by name via the Telnet interface: BDI> rd siumcr BDI>rm padir 0xFF00 © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 34: Bdm Gateway Mode

    Tornado II : From the distribution disk copy: wdbBdi.c ../target/config/comps/src/ -> wdbBdi.cdf ../target/config/comps/vxWorks/ -> The file tornado.add includes the text which must be added to some of the existing tornado source files. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 35: Tornado 1.01 And Tornado Ii

    * bdiInit void* baseAddr /@ the base address of the communication structure @/ bdiInit: /* enter debug mode /******************************************************************************* * bdiCall - enter debug mode * bdiCall(void) bdiCall: /* enter debug mode © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 36: Tornado Ii

    • Copy wdbBdi.c to ../target/config/comps/src/ • Copy wdbBdi.cdf to ../target/config/comps/vxWorks/ • Edit sysALib.s as defined above (use tornado.add) • Use the VxWorks configuration utility to select BDI as the WDB connection © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 37: Tornado 1.01

    The following lines show a possible WDB agent configuration: /* agent mode */ #undef WDB_MODE #define WDB_MODE WDB_MODE_BI /* WDB_MODE_[BI|TASK|EXTERN] */ /* agent communication path */ #undef WDB_COMM_TYPE #define WDB_COMM_TYPE WDB_COMM_BDI © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 38: Bdiwind Udp-Lite Packet Driver

    The BDI detects this change to debug mode and reads the register GPR3. To support this transfer, an assembly routine is added to the module sysALib.c. bdiInit: /* enter debug mode © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 39: Polling For Requests

    Telnet prompt. In this case, restart the target server on the host and attach the debugger to the system. You can now analyze the crashed application (e.g. inspect variables). © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 40: Ppc Interrupt Handling

    Developement Port Nonmaskable Request If this is not appropriate for the application the default initialisation may be change with an entry in the configuration file. WSPR 0xFFE7400F ;DER: set debug enable register © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 41: Agent Mode

    . /* init boot line for BDM debugging */ strcpy(sysBootLine, DEFAULT_BOOT_LINE); This is necessary because there is no Boot-ROM which initializes the boot line variable in RAM. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 42: Target Server Setup

    If you would like to debug code before the VxWorks taskLib has been initialized, enter the GDB com- mand tasking-off to disable fetching of the thread list (Tornado Release Notes 1.0.1 chapter 6.4 GDB). © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 43: Ppc Interrupt Handling

    Developement Port Nonmaskable Request If this is not appropriate for the application the default initialisation may be change with an entry in the configuration file. WSPR 0xFFE7400F ;DER: set debug enable register © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 44: Serial Gateway Mode

    15 - GTW-RX 16 - GROUND Be sure to connect GTW-TX to the target RX pin and GTW-RX to the target TX pin. Maximal input voltage to BDI2000 must not exceed 5.5V © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 45: Vxworks Configuration

    * Only with SCC channel, not with SMC because of CPM performance IMPORTANT: Select WDBRPC (not WDBSERIAL) as the backend because the target server communicates with the BDI2000 via the ethernet connection. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 46: Target Serial I/O Via Bdi

    Once SIO is enabled, connecting with the setup tool to update the firmware will fail. In this case either disable SIO first or disconnect the BDI from the LAN while updating the firmware. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 47: Telnet Interface

    The DUMP command uses TFTP to write a binary image to a host file. Writing via TFTP on a Linux/ Unix system is only possible if the file already exists and has public write access. Use "man tftpd" to get more information about the TFTP server on your host. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 48 IP address of program file host", "PROMPT <string> defines a new prompt string", "CONFIG display or update BDI configuration", "CONFIG <file> [<hostIP> [<bdiIP> [<gateway> [<mask>]]]]", "HELP display command list", "QUIT terminate the Telnet session" © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 49: 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-2007 by ABATRON AG Switzerland V 1.38...
  • Page 50: Environmental Notice

    Wind for Tornado™, BDI2000 (MPC8xx/MPC5xx) 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-2007 by ABATRON AG Switzerland V 1.38...
  • Page 51: 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 52: A Bdi2000 Setup/Update

    This button is only active if there is a newer firmware or logic version present in the execution directory of the bdiWind setup software. Press this button to write the new firmware and/or logic into the BDI2000 flash memory / programmable logic. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 53 • Switch ON the power supply for the BDI again and wait until the LED «MODE» blinks fast DEFAULT • Turn the power supply OFF again • Return the jumper to the «DEFAULT» position • Reassemble the unit as described in Appendix «Maintenance» © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 54: B Troubleshooting

    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) © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...
  • Page 55: C 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-2007 by ABATRON AG Switzerland V 1.38...
  • Page 56 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-2007 by ABATRON AG Switzerland V 1.38...
  • Page 57: D Trademarks

    Wind for Tornado™, BDI2000 (MPC8xx/MPC5xx) User Manual D Trademarks All trademarks are property of their respective holders. © Copyright 1997-2007 by ABATRON AG Switzerland V 1.38...

This manual is also suitable for:

Bdiwind powerpc mpc5xx

Table of Contents