background image

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 definition file

The register definition file:

;name

type

addr

size

;-------------------------------------------

;

gpr0

GPR

0

sp

GPR

1

;

pc

SPR

26

; is SRR0

xer

SPR

1

lr

SPR

8

ctr

SPR

9

sprg0

SPR

272

sprg1

SPR

273

sprg2

SPR

274

sprg3

SPR

275

;

;

; DMM1 must be set to the internal memory map base address

;

siumcr

DMM1

0x0000

32

sypcr

DMM1

0x0004

32

;

mstat

DMM1

0x0178

16

padir

DMM1

0x0950

16

papar

DMM1

0x0952

16

paodr

DMM1

0x0954

16

padat

DMM1

0x0956

16

Now the defined registers can be accessed by name via the Telnet interface:

BDI> rd siumcr
BDI>rm padir 0xFF00

Содержание bdiWind PowerPC MPC8xx

Страница 1: ...bdiWind BDM interface for Tornado PowerPC MPC8xx MPC5xx User Manual Manual Version 1 38 for BDI2000 1997 2007 by Abatron AG...

Страница 2: ...17 3 1 Principle of operation 17 3 1 1 Gateway mode 17 3 1 2 Agent mode 18 3 2 Configuration File 20 3 2 1 Part INIT 21 3 2 2 Part TARGET 22 3 2 3 Part HOST 25 3 2 4 Part FLASH 26 3 2 5 Part REGS 32...

Страница 3: ...000 MPC8xx MPC5xx User Manual 3 Copyright 1997 2007 by ABATRON AG Switzerland V 1 38 6 Declaration of Conformity CE 50 7 Warranty 51 Appendices A BDI2000 Setup Update 52 B Troubleshooting 54 C Mainten...

Страница 4: ...better you can use fast Ethernet debugging with target systems without network capability In contrast to ICE debugging bdiWind supports task mode and system mode debugging The following figure shows...

Страница 5: ...x00000003 0x00FFEC04 WUPM 0x0000003C 0x33FFCC07 UPMA exception WUPM 0x0000003D 0xFFFFFFFF WUPM 0x0000003E 0xFFFFFFFF WUPM 0x0000003F 0xFFFFFFFF init memory controller WM32 0x02200104 0xFFE00D34 OR0 2M...

Страница 6: ...ON Target Connector BDI2000 A A A Ab b b ba a a at t t tr r r ro o o on n n n A A A AG G G G S S S Sw w w wi i i is s s ss s s s M M M Ma a a ad d d de e e e Target System MPC 8xx 9 1 10 2 The green L...

Страница 7: ...s w 3 5 GND System Ground 4 DSCK Debug port Serial Clock During asynchronous clock mode the serial data is clocked into the MPC according to the DSCK clock The DSCK serves also a role during soft rese...

Страница 8: ...setup has to be done see Appendix A During this process the target cable must be disconnected from the target system The BDI2000 needs to be supplied with 5 Volts via the BDI OPTION connec tor Rev A o...

Страница 9: ...een 4 75V and 5 25V DC The maximal tolerable supply voltage is 5 25 VDC Any higher voltage or a wrong polarity might destroy the electronics Please switch on the system in the following sequence 1 ext...

Страница 10: ...eration the power supply to the BDI2000 must be between 4 75V and 5 25V DC The maximal tolerable supply voltage is 5 25 VDC Any higher voltage or a wrong polarity might destroy the electronics BDI TRG...

Страница 11: ...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 the BDI2000 is 4 75VDC BLINK The BDI loader mode is activ...

Страница 12: ...low RS232 Connector for PC host 5 2 3 7 8 6 1 4 5 2 3 7 8 6 1 4 GND RD TD RTS CTS DSR DCD DTR GND RD TD RTS CTS DSR DCD DTR BDI2000 A A A Ab b b ba a a at t t tr r r ro o o on n n n A A A AG G G G S S...

Страница 13: ...velopment Environment The following explains the meanings of the built in LED lights LED Name Description LI Link When this LED light is ON data link is successful between the UTP port of the BDI2000...

Страница 14: ...ader file for the BDM UDP lite packet driver bdipkt c The implementation file for the BDM UDP lite packet driver bdiSlip h The header file for the example SLIP UDP lite packet driver bdiSlip c The imp...

Страница 15: ...configuration program consult the online help Remark Don t forget to press Transmit after you entered the configuration values Activating BOOTP The BDI can get the network configuration and the name o...

Страница 16: ...quest from the client are granted This is the normal working mode The bdiWind system needs only read access to the configuration and VxWorks files The parameter p enables protocol output to the consol...

Страница 17: ...nning on the host and the Target Agent running on the target This mode supports anything the original WindRiver target agent supports task specific breakpoints dynamically loading of new moduls and so...

Страница 18: ...l to get an initial VxWorks code running or in the final state of a development when no debug support is linked into the application This mode also supports the PowerPC built in breakpoint logic It s...

Страница 19: ...l only the system context is supported Following a list of unsupported WDB requests and WDB requests with restrictions bkendModeSet Only WDB_MODE_EXTERN is accepted bkendMemFill Supported but large me...

Страница 20: ...read by the BDI after every power on The syntax of this file is as follows comment part name identifier parameter1 parameter2 parameterN comment identifier parameter1 parameter2 parameterN part name...

Страница 21: ...to the selected memory place address the memory address value the value to write to the target memory Example WM8 0xFFFFFA21 0x04 SYPCR watchdog disable WM16 address value Write a half word 16bit to...

Страница 22: ...ore No debugging via BDM GATEWAY After loading and starting the VxWorks core The BDI es tablishes a communication channel between the target server on the host and the target agent on the target The s...

Страница 23: ...ction step is implemented Use thealternate step mode HWBP if the default step mode MSR SE bit causes problems TRACE This is the default mode Single step is implemented by setting the SE bit in MSR HWB...

Страница 24: ...from the host via a Telnet session The port parameter defines the TCP port used for this BDI to host communication You may choose any port ex cept 0 and the default Telnet port 23 On the host open a...

Страница 25: ...utomatically after every reset mode AUTO MANUAL Example LOAD MANUAL START address The address where to start the VxWorks core If this value is not defined and the core is not in ROM the address is tak...

Страница 26: ...flash this parameter is not used size the size of one flash chip in bytes Example CHIPSIZE 0x80000 BUSWIDTH width Enter the width of the memory bus that leads to the flash chips Do not en ter the widt...

Страница 27: ...ake erasing of multiple flash sectors easier you can enter an erase list All entries in the erase list will be processed if you enter ERASE at the Telnet prompt without any parameter This list is also...

Страница 28: ...cture of the address module address The 16 most significant bits of the flash module address C The censor bit If this bit is set the censor information is erased sbb The bit mask to select the small b...

Страница 29: ...AMD and AT49 algorithm support chip erase Block erase is only supported with the AT49 algorithm If the algorithm does not support the selected mode sector erase is performed If the chip does not suppo...

Страница 30: ...bits of an Intel J3 Strata flash takes up to 0 7 seconds If unlock is used without any parameter all sectors in the erase list with the UNLOCK option are processed To clear all lock bits of an Intel J...

Страница 31: ...r 6 of flash SIMM ERASE 0x029C0000 erase sector 7 of flash SIMM MPC555 internal flash INIT WSPR 638 0x00000802 IMMR InternalRegs to 0x00400000 Flash enabled TARGET CPUTYPE MPC500 CPU type MPC800 MPC50...

Страница 32: ...racters type The register type GPR General purpose register SPR Special purpose register MM Absolute direct memory mapped register DMM1 DMM4 Relative direct memory mapped register IMM1 IMM4 Indirect m...

Страница 33: ...ile The register definition file name type addr size gpr0 GPR 0 sp GPR 1 pc SPR 26 is SRR0 xer SPR 1 lr SPR 8 ctr SPR 9 sprg0 SPR 272 sprg1 SPR 273 sprg2 SPR 274 sprg3 SPR 275 DMM1 must be set to the...

Страница 34: ...are Create a new directory in tornado target config e g myTarget From an existing BSP directory e g tornado target config ads860 copy the following files into the new created directory or build them f...

Страница 35: ...tornado target config myTarget sysALib s Add the following lines to the list of exported symbols externals globl _usrInit system initialization routine globl bdiInit bdi communication setup globl bdiC...

Страница 36: ...connection For more information about VxWorks configuration see Tornado User s Guide chapter Projects Summary for Tornado II Copy wdbBdiPktDrv c to the BSP directory Copy wdbBdiPktDrv h to the BSP dir...

Страница 37: ...wdbDrvIf endif WDB_COMM_TYPE WDB_COMM_BDI Install the agents communication interface and RPC transport handle tornado target config all configAll h Add the following line to the list of communication...

Страница 38: ...etween the BDI and the target CPU is only possible while the target CPU is frozen In this state no interrupts are processed To transfer a complete IP frame the target CPU is frozen during a time of up...

Страница 39: ...Task should have a priority equal to the target agent It waits with time out at the semaphore Then it checks the rx count field and sends the packet to the target agent if one is avail able Time out w...

Страница 40: ...errupt 2 CHSTPE enabled Check Stop 3 MCIE Machine Check Interrupt 4 5 6 EXTIE External Interrupts 7 ALIE Alignment Interrupt 8 PRIE Program Interrupt 9 FPUVIE Floating Point Unavailable Interrupt 10 D...

Страница 41: ...ic initializations like setting the timer rate are best located in the routine sysHwInit 3 4 2 Configure VxWorks Tornado 1 01 Use the VxWorks file config h to scale your VxWorks core Undefine INCLUDE_...

Страница 42: ...ch system at the GDB prompt do not use the Attach menu entry because the task list cannot be read at this time If not already suspended this stops the exe cution of application code and the target CPU...

Страница 43: ...enabled Maschine Check Interrupt 4 5 6 EXTIE External Interrupts 7 ALIE enabled Alignment Interrupt 8 PRIE enabled Program Interrupt 9 FPUVIE enabled Floating Point Unavailable Interrupt 10 DECIE Decr...

Страница 44: ...has to be connected be tween the BDI2000 and the target The cable length should not exceed 50 cm 20 Be sure to connect GTW TX to the target RX pin and GTW RX to the target TX pin Maximal input voltag...

Страница 45: ...your_bsp wdbFslipPktDrv c bdiHdlc h target config your_bsp wdbHdlcPktDrv h bdiHdlc c target config your_bsp wdbHdlcPktDrv c wdbFslip c target config comps src wdbHdlc c target config comps src wdbBdi...

Страница 46: ...uting The baudrate can be se lected with in the configuration file see SIO parameter The framing is fix 8 data 1 stop no parity The BDI asserts RTS and DTR when a TCP connection is established TARGET...

Страница 47: ...es Load a code file from any host Start Stop program execution Programming and Erasing Flash memory During normal debugging with Tornado there is no need for connecting to the Telnet server The Telnet...

Страница 48: ...ck buffer BOOT reset the BDI and reload the configuration RESET HALT RUN time reset the target system change startup mode BREAK SOFT HARD display or set current breakpoint mode GO pc set PC and start...

Страница 49: ...19 200 38 400 57 600 115 200 Data Bits 8 Parity Bits none Stop Bits 1 Network Interface 10 BASE T Serial Transfer Rate between BDI and Target up to 16 Mbit s Supported target voltage 1 8 5 0 V 3 0 5 0...

Страница 50: ...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 Declarati...

Страница 51: ...ng but not limited loss of profit special incidental consequential or other similar claims ABATRON Switzerland specifically disclaims all other warranties expressed or implied including but not limite...

Страница 52: ...u to do this Channel Select the communication port where the BDI2000 is connected during this setup session Baudrate Select the baudrate used to communicate with the BDI2000 loader during this setup s...

Страница 53: ...00 after every start up Configuration file Enter the full path and name of the configuration file e g D tornado target config bdi ads860bdi cnf For information about the syntax of the configuration fi...

Страница 54: ...ion port Com 1 Com 4 is selected Problem No working with the target system loading firmware is ok Possible reasons Wrong pin assignment BDM JTAG connector of the target system see chapter 2 Target sys...

Страница 55: ...n please proceed according to the following steps Observe precautions for handling Electrostatic sensitive device Unplug the cables before opening the cover Use exact fuse replacement Microfuse MSF 1...

Страница 56: ...align with the holes in the front panel elastic sealing Reinstallation back panel 5 2 Push carefully the front panel and the red elastig sealing on the casing Check that the LEDs align with the holes...

Страница 57: ...bdiWindfor 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...

Отзывы: