Abatron bdiWind PowerPC MPC5xx User Manual

Manual is about: BDM interface for Tornado

Summary of bdiWind PowerPC MPC5xx

  • Page 1

    Bdi wind bdm interface for tornado ™ powerpc mpc8xx/mpc5xx user manual manual version 1.38 for bdi2000 ©1997-2007 by abatron ag.

  • Page 2

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 2 © copyright 1997-2007 by abatron ag switzerland v 1.38 1 introduction ................................................................................................................................. 4 1.1 bdi2000.............................

  • Page 3

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 3 © copyright 1997-2007 by abatron ag switzerland v 1.38 6 declaration of conformity (ce) ................................................................................................ 50 7 warranty ...........................................

  • Page 4

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 4 © copyright 1997-2007 by abatron ag switzerland v 1.38 1 introduction bdiwind enhances tornado, the latest generation of development and execution environment for em- bedded and real-time applications, with background debug mode (bdm) debu...

  • Page 5

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 5 © copyright 1997-2007 by abatron ag switzerland v 1.38 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...

  • Page 6

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 6 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 cab...

  • Page 7

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 7 © copyright 1997-2007 by abatron ag switzerland v 1.38 bdi main / target a connector signals: mention of sources used: mpc860ads user’s manual, revision a enhanced debug mode detection: for mpc8xx and mpc555 targets, debug mode (freeze) de...

  • Page 8

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 8 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 proce...

  • Page 9

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 9 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 connec...

  • Page 10

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 10 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 ca...

  • Page 11

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 11 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 th...

  • Page 12

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 12 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 bdiwind system. The host is connected to...

  • Page 13

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 13 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 ethern...

  • Page 14

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 14 © copyright 1997-2007 by abatron ag switzerland v 1.38 2.5 installation of the configuration software on the enclosed diskette you will find the bdi configuration software and the firmware required for the bdi2000. For windows users there...

  • Page 15

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 15 © copyright 1997-2007 by abatron ag switzerland v 1.38 2.6 initial configuration of the bdiwind system before you can use the bdiwind system, an initial setup has to be done (see appendix a). During this setup you define the following ite...

  • Page 16

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 16 © copyright 1997-2007 by abatron ag switzerland v 1.38 2.8 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...

  • Page 17

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 17 © copyright 1997-2007 by abatron ag switzerland v 1.38 3 using bdiwind 3.1 principle of operation to understand the principle of operation, we assume that you are familiarly with the tornado devel- opment environment. Elements of this env...

  • Page 18

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 18 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.1.2 agent mode in this mode, the target agent runs within the bdi. There is no need for any debug software on the target system. After loading the vxworks core (or even any other fu...

  • Page 19

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 19 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 br...

  • Page 20

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 20 © copyright 1997-2007 by abatron ag switzerland v 1.38 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...

  • Page 21

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 21 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 loadi...

  • Page 22

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 22 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.2.2 part [target] the part [target] defines some target specific values. Cputype type this value gives the bdi information about the connected cpu: type the cpu type from the follow...

  • Page 23

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 23 © copyright 1997-2007 by abatron ag switzerland v 1.38 the following item is only used if bdi mode is agent: breakmode mode [op] this parameter defines how breakpoints are implemented. The current mode can also be changed via the telnet i...

  • Page 24

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 24 © copyright 1997-2007 by abatron ag switzerland v 1.38 the following items are only used if bdi mode is gateway: inittime timeout by default, the bdi assumes that the communication base address is transfered within 10 seconds after starti...

  • Page 25

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 25 © copyright 1997-2007 by abatron ag switzerland v 1.38 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....

  • Page 26

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 26 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.2.4 part [flash] the telnet interface supports programming and erasing of flash memories. The bdiwind system has to know which type of flash is used, how the chip(s) are connected t...

  • Page 27

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 27 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 ...

  • Page 28

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 28 © copyright 1997-2007 by abatron ag switzerland v 1.38 mpc555 internal flash: for the mpc555 internal flash, the bdi assumes the following structure of the address: module address the 16 most significant bits of the flash module address. ...

  • Page 29

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 29 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 progr...

  • Page 30

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 30 © copyright 1997-2007 by abatron ag switzerland v 1.38 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...

  • Page 32

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 32 © copyright 1997-2007 by abatron ag switzerland v 1.38 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...

  • Page 33

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 33 © copyright 1997-2007 by abatron ag switzerland v 1.38 example for a register definition (mpc860): entry in the configuration file: [regs] dmm1 0x02200000 ;internal memory map base address file e:\bdi\mpc860\reg860.Def ;the register defin...

  • Page 34

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 34 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.3 bdm gateway mode the bdiwind udp-lite packet driver has to be linked to the initial vxworks core. In order to work with your version of the tornado environment, no tornado files a...

  • Page 35

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 35 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.3.2 tornado 1.01 and tornado ii the bdi udp-lite packed driver needs some assembly support functions. This assembly functions can be added to the file sysalib.S in your bsp director...

  • Page 36

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 36 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.3.3 tornado ii for tornado ii the vxworks configuration utility can be used to select the bdi as the wdb connection. For more information about vxworks configuration, see tornado us...

  • Page 37

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 37 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.3.4 tornado 1.01 change the following source files. Tornado\target\src\config\usrwdb.C: add the following line to the list of header files: #include "drv/wdb/wdbulippktdrv.H" #inclu...

  • Page 38

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 38 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.3.5 bdiwind udp-lite packet driver the bdiwind udp-lite packet driver communicates with the bdi over the debug interface. Communi- cation is established through buffers in the targe...

  • Page 39

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 39 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.3.5.2. Polling for requests because no interrupt can be generated via debug interface, polling is required. To optimize commu- nication performance and cpu load, two vxworks task ar...

  • Page 40

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 40 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.3.6 ppc interrupt handling in gateway mode, only a few ppc interrupts causes an entry into debug mode. Most of the interrupts are handled by the application. By default, the debug e...

  • Page 41

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 41 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.4 agent mode because the target agent runs within bdi, no debug support has to be linked to your vxworks appli- cation. There is also no need for any bdi specific changes in the vxw...

  • Page 42

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 42 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.4.3 target server setup setup the target server as follows: 3.4.4 debugging with gdb as soon as the target comes out of reset, bdi initializes it and loads your vxworks application....

  • Page 43

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 43 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.4.5 ppc interrupt handling in agent mode, almost all ppc interrupts causes an entry into debug mode. By default, the debug enable register (der) is set as follows: debug enable regi...

  • Page 44

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 44 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.5 serial gateway mode this mode can be used, if the time the target is freezed in bdm gateway mode is not acceptable (e.G. Interrupt response time). In order to use this mode, there...

  • Page 45

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 45 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.5.2 vxworks configuration configure vxworks for a serial, fast slip or hdlc wdb connection. You may use the standard serial connection which selects the vxworks slip udp-lite packet...

  • Page 46

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 46 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.6 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 47

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 47 © copyright 1997-2007 by abatron ag switzerland v 1.38 3.7 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 tasks ma...

  • Page 48

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 48 © copyright 1997-2007 by abatron ag switzerland v 1.38 following a list of the available telnet commands: "md [ "mdh [ "mdb [ "dump [] dump target memory to a file", "mm [] modify word(s) (32bit) in target memory", "mmh [] modify half wor...

  • Page 49

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 49 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 p...

  • Page 50

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 50 © copyright 1997-2007 by abatron ag switzerland v 1.38 5 environmental notice disposal of the equipment must be carried out at a designated disposal site. 6 declaration of conformity (ce).

  • Page 51

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 51 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 24 months f...

  • Page 52: Appendices

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 52 © copyright 1997-2007 by abatron ag switzerland v 1.38 appendices a bdi2000 setup/update 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 the ...

  • Page 53

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 53 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 bd...

  • Page 54

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 54 © copyright 1997-2007 by abatron ag switzerland v 1.38 b 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 the targe...

  • Page 55

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 55 © copyright 1997-2007 by abatron ag switzerland v 1.38 c 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 ...

  • Page 56

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 56 © copyright 1997-2007 by abatron ag switzerland v 1.38 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 ...

  • Page 57

    Bdi wind for tornado™, bdi2000 (mpc8xx/mpc5xx) user manual 57 © copyright 1997-2007 by abatron ag switzerland v 1.38 d trademarks all trademarks are property of their respective holders..