Home

bdiCW_UserManual_ColdFire

image

Contents

1. Current Newest Current Loader 1 05 TEER Firmware 1 10 1 10 Logic 1 05 1 05 I Synch TCP IP Configuration IP Address 151 120 25 101 Subnet Mask 255 255 255 255 Default Gateway 255 255 255 255 Cancel Ok Transmit Writing setup data passed dialog box BDI2000 Update Setup The following options allow you to check or update the BDI firmware and logic and to set the network parameters 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 session Connect Click on this button to establish a connection with the BDI2000 loader Once connected the BDI2000 remains in loader mode until it is restarted or this dialog box is closed Current Press this button to read back the current loaded BDI2000 software and logic versions The current loader firmware and logic version will be dis played Update 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 Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 2 2000 ColdFire User Manual 15 Synch IP Address Subnet Mask Default Gateway Transmit Because some older V2 C
2. Manufacturer Schurter Fuse Position Reinstallation 5 1 Slide back carefully the print Check that the LEDs align with the holes in the 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 in the front panel and that the position of the sealing is as shown in the figure below casing NS elastic sealing back panel front panel 5 3 Mount the screws do not overtighten it 5 4 Mount the two plastic caps that cover the screws 5 5 Plug the cables A ks Observe precautions for handling Electrostatic sensitive device Unplug the cables before opening the cover Use exact fuse replacement Microfuse MSF 1 6 AF Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 27 C Trademarks All trademarks are property of their respective holders Copyright 1992 2004 by ABATRON AG V 1 04
3. Clock Rate 25000000 Hz Use Breakpoint Logic 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 Startup Startup mode defines how the BDI interacts with the target processor after reset or power up The options RESET STOP or RUN can be selected Breakpoint Breakpoint mode defines how breakpoints are processed The target pro cessor may be frozen FREEZED option or may be set to loop in an ex ception procedure LOOP option while the application software is halted Workspace In all configurations except when Use no target vectors is activated BDI needs some target memory space Enter here the start address of this memory area A maximum of 512 bytes is needed Vector base The BDI needs to know where the vector table is located Enter here the start address of the vector table This address is automatically loaded into the VBR register at startup time The application should not change the VBR unless Use no target vectors is selected 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 CPU
4. Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 2 2000 ColdFire User Manual 70 2 4 Connecting the BDI2000 to the 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 RS232 Connector Target System for PC host PC Host RS232 6 2 RXD data from host 3 TXD data to host 5 GROUND BDI2000 Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 02 2000 ColdFire User Manual 77 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 gt 10 BASE T between your network and the BDI2000 Contact your network administrator if you have questions about the network 10 BASE T Connector 1 TD 2 TD 3 RD TX RX 10 BASE T PC Host L The following explains the meanings of the built in LED lights LED Name LI Link TX Transmit RX Receive Desc
5. Type Select the appropriate CPU type CPU Clock Rate Enter the clock rate which the target CPU runs after BDI has worked through the init list BDI selects the BDM communication speed based on this parameter If this parameter selects a CPU clock rate that is higher than the real clock BDM communication may fail When selecting a clock rate slower than possible BDM communication still works but not as fast as possible Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 2 2000 ColdFire User Manual 18 Use no target vectors Check this switch if the BDI should not use any RAM or vectors in the tar get system This option is only enabled when FREEZED is selected as breakpoint mode This mode is suitable for testing new hardware or de bugging custom exception routines Use Breakpoint Logic This switch defines how instruction breakpoints are implemented When not checked default instruction breakpoints are set as re quested by the debugger Software or Hardware breakpoints When checked the BDI uses always hardware breakpoints This is useful when the attached de bugger does not support hardware break points 4 1 Startup Mode Startup mode defines how the BDI interacts with the target system after a reset or power up sequence 4 1 1 Startup mode RESET In this mode no ROM is required on the target system The necessary initialization is done by the BDI with the programmed init
6. list The following steps are executed by the BDI after system reset or system power up RESET and BKPT are activated on the target system RESET is deactivated and the target system changes to background debug mode e The BDI works through the initialization list and writes to the corresponding addresses Depending on the break mode the necessary vectors are set and help code is written into the RAM on the target system The RESET mode is the standard working mode Other modes are used in special cases i e applications in ROM special requirements on the reset sequence 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 This mode is intended for special requirements on the reset sequence or if for example separate hardware needs to be initialized immediately In this mode the following steps are executed by the BDI after system reset or power up RESET and BKPT are activated on the target system RESET is deactivated and the target system changes to background debug mode e The target CPU is started the target starts at the address fetched when reading the start vec tor at address 0 e The target system is working through the application code After 2 seconds BKPT is activated and the t
7. 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 or via the POWER connector Rev B 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 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 2 2 Connecting the 2012000 to Power Supply 2 2 1 External 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 A For error free operation 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 POWER Connector 1 Vcc 1 Vcc 5V 3 GROUND The green LED BDI marked light up when 5V power is connected to the BDI2000 Please switch on the system in the following sequence 1 gt external power supply 2 gt target system Copyright 1992 2004
8. 0 The 2012000 is a processor system in a small box It implements the interface between the BDM pins of the target CPU and a 10Base T Ethernet RS232 connector BDI2000 is powered by a MC68360 512Kbyte RAM and a flash memory of 1024Kbyte As a result of consistent implementation of lasted technology the BDI2000 is optimally prepared for further enhancements The firmware and the pro grammable logic of the BDI2000 can be updated by the user with a simple Windows based configu ration program The BDI2000 supports 1 8 5 0 Volts target systems 3 0 5 0 Volts target systems with Rev B Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 4 2 Installation 2 1 Connecting the BDI2000 to Target The enclosed cable to the target system is designed for the Motorola recommended 26 pin Berg con nector In case where the target system has an appropriate connector the cable can be directly con nected The pin assignment is in accordance with the Motorola specification A In order to ensure reliable operation of the BDI EMC runtimes etc the target cable length must not exceed 20 cm 8 Target System Target Connector LLLLLLLLL ColdFire 1 Ge SE 5 AAN 5 GROUND 2 26 BESET 7 RESET 8 DSI 9 Vccio 10 DSO 24 CLK_CPU The green LED TRGT marked light up w
9. 012000 and physical documentation to be free of defects in materials and workmanship for a period of 24 months following the date of purchase when used under normal conditions In the event of notification within the warranty period of defects in material or workmanship ABATRON will replace defective diskette cable BDI2000 or documentation The remedy for breach of this warranty shall be limited to replacement and shall not encompass any other damages includ ing 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 limited to implied warranties of merchantability and fitness for particular purposes with respect to defects in the diskette cable BDI2000 and documentation and the program license granted here in including without limitation the operation of the program with respect to any particular application use or purposes 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 Failure in handling which leads to defects are not covered under this warranty The warranty is void under any self made repair operation except exchanging the fuse Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 24 Append
10. BDM interface for CodeWarrior Debugger ColdFire User Manual Manual Version 1 04 for BDI2000 AAR N 1992 2004 ABATRON AG d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 2 DWNT ON E 3 EE 3 dances sl cen cae 4 2 1 Connecting the BDI2000 to ccs chee eases Ges teeters ees tad awl tadecede ated 4 2 1 1 Changing Target Processor Type 6 2 2 Connecting the 2012000 to Power Gupphy EEN 7 2 2 1 External Power Supply EE 7 2 2 2 Power Supply from Target System sciciiestccnsssctdixceasenecaravensenenstvetainneadeeiea neentexenseteoueauecte 8 2 3 Status LED Ea AEE EE AEA EEE ET REEERE 9 2 4 Connecting the 012000 to the HOSt 10 2 4 1 Serial line 00 10 2 4 2 EEGEN 11 25 Installation of the Configuration Software 12 2 6 Configuration as ond ced ates artenatvassataiciadtasnceanaace tat aucae ene ganve gendencasGatascuenttanoaesdeen heute egiasaeienenteeceadeene 13 2 6 1 BDI2000 Setup Update een neers een eee ene ee ee ee 14 2 sac edad cic wk od acted emt es de tee oes E E E erations 16 4 BDI w rking MOdES gegen 17 e E re ET 18 4 1 1 Startup mode ARSE Wiz itecasdececcsshisrucneandnotiainegencution stecxeiaend ageninnidlicnatoutneenaiens 18 24 2 Startup Mode S TOP ageektersteteiee agent 18 4 1 3 Startup mode FIN ciscsactuccateassnactessachanieeatenesaietaancainaadotiatonapdcieas
11. 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 After processing the init list the RAM used to download the application must be accessible Use on line help F1 and the supplied configuration examples on the distribution disk to get more information about the init list Special BDI Configuration Registers In order to change some special configuration parameters of the BDI the WCREG entry in the init list is used Control register numbers greater than 0x8000 are used to set BDI internal registers 8001 This entry in the init list allows to define a delay time in ms the BDI inserts between releas ing the reset line and starting communicating with the target This delay is necessary when a target needs some wake up time after a reset 8002 This entry in the init list allows to define a time in ms the BDI asserts the hardware reset signal By default the reset signal is asserted for about 1ms Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 17 4 BDI working modes BDI Working Mode Identification MCF5206 Evaluation Board m Startup Brezkpomt d Workspace 100000400 Hex Piss gi 00000000 Stop VYectorbase Hex Loo C Run p Loop Level E urent 2 Use no target vectors rp DU Type MCF5206 D
12. arget system changes to background debug mode e The BDI works through the initialization list and writes the corresponding addresses e Depending on the break mode the necessary vectors are set and support code is written into the RAM on the target system Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger BDI2000 ColdFire User Manual 19 4 1 3 Startup mode RUN This mode is used to debug applications which are already stored in ROM The application is started normally and is stopped by the BDI as soon as the debugger connects to the BDI In this mode the following steps are executed by the BDI after system reset or power up RESET and BKPT are activated on the target system RESET is deactivated and the target system changes to background debug mode e The target CPU is started the target starts at the address fetched when reading the start vec tor at address 0 e The target system is executing the application code The application runs until the debugger stops the execution e BKPT is activated on the target system and the target system changes to background debug mode Depending on the break mode the necessary vectors are set and help code is written into the RAM on the target system 4 2 Breakpoint Mode The use of software breakpoints is only possible if the application code is stored in RAM not in ROM on the target system Depending on the selected break
13. by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 8 2 2 2 Power Supply from Target System The BDI2000 needs to be supplied with 5 Volts max 1A via TARGET B connector This mode can only be used when the target system runs with 5V and the pin Vcc Target is able to deliver a current up to 1A 5V For pin description and layout see chapter 2 1 Connecting the BDI2000 to Target Insert the enclosed Jumper as shown in figure below Please ensure that the jumper is inserted correctly For error free operation 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 POWER Connector 1 Vcc BDI2000 5V 2 Vcc Target 5V Jumper The green LEDs BDI and TRGT marked light up when target is powered up and the jumper is inserted correctly Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 9 2 3 Status LED MODE The built in LED indicates the following BDI states MODE LED BDI STATES The BDI is ready for use the firmware is already loaded The power supply for the BDI2000 is lt 4 75VDC The BDI loader mode is active an invalid firmware is loaded or loading firmware is active
14. he 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 DEVELOPMENT SERIAL CLOCK For background debug mode serial shift clock to the MCU BREAKPOINT BKPT is an active low signal that signals a hardware breakpoint for the ColdFire core It is used to force the ColdFire core to enter debug mode TEA TRANSFER ERROR ACKNOWLEDGE currenily not implemented optional Active low open drain signal used to abort a bus cycle This signal may be helpful for ColdFire devices which has no built in bus monitor e g MCF5307 The BDI is able to terminate an invalid memory access Otherwise BDM communication may hang until a reset is applied lt reseved gt lt reseved gt GROUND System Ground RESET RESET Active low open drain signal used to force a system reset CLK_CPU PROCESSOR CLOCK For some cores this clock signal is used to synchonize the BDM signals DSCLK and DSI lt reseved gt GROUND System Ground Pin 14 is only use for some older V2 cores MCF5204 MCF5206 e and MCF5272 For all other cores this signal is not used Copyright 1992 2004 by ABATRON AG V 1 04 d BDM interface for CodeWarrior Debugger 02 2000 ColdFire User Manual 6 2 1 1 Changing Target Processor Type Before you can use the BDI2000 with an other target processor type e g ColdFire lt gt PPC anew setup has to be done
15. hen target is powered up 26 TEA only needed for V2 cores see note The target CPU clock is only needed for older V2 cores MCF5204 MCF5206 e and MCF5272 be cause DSCLK and DSI have to change synchronous with the CPU clock For all other cores BDM communication can be asynchronous to the CPU clock and therefore this signal is not needed A Important note for older target cables The target cables delivered before October 2004 expect the target BDM reference voltage Vccio at pin 25 of the BDM connector For target boards where Vccio is only routed to pin 9 remove the con tact wire from housing pin 25 and insert it into pin 9 Red Cable 2 Ge Copyright 1992 2004 by ABATRON AG V 1 04 d BDM interface for CodeWarrior Debugger 02 2000 ColdFire User Manual 5 BDI TARGET B Connector Signals Describtion DSO DATA SERIAL OUT For background debug mode serial data output from the MCU lt reseved gt DSI DATA SERIAL IN For background debug mode serial data input signal to the MCU lt reseved gt lt reseved gt Vcc Target 1 8 1 This is the target reference voltage It indicates that the target has power and it is also used to create the logic level reference for the input comparators It also controls the output logic levels to the target It is normally fed from Vdd I O on the target board 3 0 5 0 with Rev B This input to the BDI2000 is used to detect if t
16. ices A Troubleshooting Problem The firmware can not be loaded Possible reasons e The BDI is not correctly connected with the target system see chapter 2 e The power supply of the target system is switched off or not in operating range 4 75 VDC 5 25 VDC gt MODE LED is OFF or RED e The built in fuse is damaged gt MODE LED is OFF e The BDI is not correctly connected with the Host see chapter 2 A wrong communication port Com 1 Com 4 is selected Problem No working with the target system loading firmware is ok Possible reasons e Wrong pin assignment BDM JTAG connector of the target system see chapter 2 e Target system initialization is not correctly gt enter an appropriate target initialization list An incorrect IP address was entered BDI2000 configuration BDM JTAG signals from the target system are not correctly short circuit break e The target system is damaged Problem Network processes do not function loading the firmware was successful Possible reasons e 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 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 2 2000 ColdFire User Manual B Maintenance The BDI needs no special maintenance Clean the housing with a mild detergent only Solvents such as gasoli
17. ne 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 To exchange the fuse or to perform special initialization please proceed according to the following steps A ks Observe precautions for handling Electrostatic sensitive device Unplug the cables before opening the cover Use exact fuse replacement Microfuse MSF 1 6 AF 1 1 Unplug the cables Swiss Made BDI2000 AG 2 1 Remove the two plastic caps that cover the screws target front side e g with a small knife 2 2 Remove the two screws that hold the front panel BDI OPTION BDI MAIN BDI TRGT MODE 3 1 While holding the casing remove the front panel and the red elastig sealing casing NS elastic sealing front panel Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger BDI2000 ColdFire User Manual 26 4 1 While holding the casing slide carefully the print in position as shown in figure below mag Jumper settings o We e DEFAULT INIT MODE Fuse Position Rev B C 0 Ger A 0 Pull out carefully the fuse and replace it Type Microfuse MSF 1 6
18. oldFire cores e g MCF5272 need synchro nous signals at the BDM interface the BDI uses a different logic for this cores Check this box only if your target is a MCF5204 MCF5206 MCF5206e or MCF5272 The BDI automatically selects the correct JE DEC file Make sure that there is the correct logic loaded for the target CPU you are using Enter the IP address for the BDI2000 Use the following format xxx xxx xxx xxxe g 151 120 25 101 Ask your network administrator for assigning an IP address to this BDI2000 Every BDI2000 in your network needs a different IP address Enter the subnet mask of the network where the BDI is connected to Use the following format xxx xxx xXxX XXxX g 255 255 255 0 A subnet mask of 255 255 255 255 disables the gateway feature Ask your network administrator for the correct subnet mask Enter the IP address of the default gateway Ask your network administra tor for the correct gateway IP address If the gateway feature is disabled you may enter 255 255 255 255 or any other value Click on this button to store the network configuration in the BDI2000 flash memory 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 Before carrying out the following procedure check the possibilities in Appendix Troubleshooting In case you do not have any success with the tips there do the following Switch OFF the po
19. point mode breakpoint and single step func tions are implemented total differently 4 2 1 Breakpoint Mode FREEZED In this mode breakpoints are implemented by replacing application code with the HALT instruction All the time the application is halted i e caused by a breakpoint the target processor remains freezed Single step is implemented by setting the appropriate bits SSM IPI in the Debug Configuration Sta tus register and starting the CPU Interrupts are ignored and debug mode is reentered after executing exact one instruction 4 2 2 Breakpoint Mode LOOP In this mode breakpoints are implemented by replacing application code with a ILLEGAL instruction A stopped application loops within an exception procedure The target processor is never freezed The priority level used when looping in the exception procedure can be defined using the option Loop Level If you want to stop the hole application use Loop Level 7 If only the current task should be stopped use Loop Level CURRENT Single step is implemented by setting the Trace bit in the processor status register So a single step steps always over the current instruction If interrupts are pending they are served first without stop ping the target processor The Loop mode is suitable when debugging real time applications which can not be freezed because external interrupt must be handled even when an application task is stopped at a breakpoint Copyright 1992 2004 b
20. rap the exceptions STOP FREEZED 4 needed to trap the exceptions RUN FREEZED 4 needed to trap the exceptions RESET LOOP 512 used for standard exception procedure and the initial Supervisor stack STOP LOOP 256 used for standard exception procedure RUN LOOP 256 used for standard exception procedure Vectors in RUN mode When RUN mode is selected only the vectors 0 the first time 24 are initialized when the application is halted for Copyright 1992 2004 by ABATRON AG V 1 04 d Li BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 22 5 Specifications Operating Voltage Limiting Power Supply Current RS232 Interface Baud Rates Data Bits Parity Bits Stop Bits Network Interface Serial Transfer Rate between BDI and Target Supported target voltage Operating Temperature Storage Temperature Relative Humidity noncondensing Size Weight without cables Host Cable length RS232 Specifications subject to change without notice 5 VDC 0 25 V typ 500 mA max 1000 mA 9 600 19 200 38400 0 8 none 1 10 BASE T up to 16 Mbit s 1 8 5 0 V 3 0 5 0 V with Rev B 5 60 C 20 65 C lt 90 rF 190 110 35 mm 420g 2 5m Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 2 2000 ColdFire User Manual 23 6 Warranty ABATRON Switzerland warrants the physical diskette cable 5
21. ription Target System ColdFire BDI2000 Ethernet 10 BASE T When this LED light is ON data link is successful between the UTP port of the BDI2000 and the hub to which it is connected When this LED light BLINKS data is being transmitted through the UTP port of the BDI2000 When this LED light BLINKS data is being received through the UTP port of the BDI2000 Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 12 2 5 Installation of the Configuration Software On the enclosed diskette you will find the BDI configuration software and the firmware required for the BDI Copy all these files to a directory on your hard disk The following files are on the diskette b20mcf exe Configuration program b20mcf hlp Helpfile for the configuration program b20mcf cnt Help contents file b20mcffw xxx Firmware for BDI2000 for ColdFire targets cf2jed20 xxx JEDEC file for the BDI2000 Rev B logic device for old V2 cores cf2jed21 xxx JEDEC file for the BDI2000 Rev C logic device for old V2 cores cf8jed20 xxx JEDEC file for the BDI2000 Rev B logic device cf8jed21 xxx JEDEC file for the BDI2000 Rev C logic device bdiifc32 dll BDI Interface DLL bdi Configuration Examples Example of an installation process Copy the entire contents of the enclosed diskette into a directory on the hard disk e You may create a new shortcut
22. to the b20mcf exe configuration program Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 2 2000 ColdFire User Manual 13 2 6 Configuration Before you can use the BDI together with the debugger the BDI must be configured Use the SETUP menu and follow the steps listed below Load or update the firmware logic store IP address gt Firmware Set the communication parameters between Host and BDI gt Communication e Setup an initialization list for the target processor lt 7 Select the working mode gt Mode e Transmit the configuration to the BDI gt Mode Transmit For information about the dialogs and menus use the help system F1 Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 14 2 6 1 BDI2000 Setup Update 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 The following dialogbox is used to check or update the BDI firmware and logic and to set the network parameters Connect 8012000 Loader Chanel Baudrate SN 0 C GM c 900 MAC 000001951112 COM2 19200 C COM3 C 38400 C COM4 57600 Ge 8012000 Firmware Logic
23. wer supply for the BDI and open the unit as described in Appendix Maintenance e Place the jumper in the INIT MODE position Connect the power cable or target cable if the BDI is powered from target system y e Switch ON the power supply for the BDI again and wait until the 6 LED MODE blinks fast om INIT MODE Mile al o e Turn the power supply OFF again A DEFAULT Return the jumper to the DEFAULT position e Reassemble the unit as described in Appendix Maintenance Copyright 1992 2004 by ABATRON AG V 1 04 d ldi BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 16 3 Init List Startup Init List Type Address Value Comment NOP WCREG OxCOF 0210000001 MBAR SIM registers at 0210000000 WCREG 4 0420000001 SRAMBAF Internal SRAM at 0x20000000 WM8 0210000003 080 SIMR enable bus monitor while freezed WMD 0x10000041 34 SYPCR enable bus monitor 1024 cycles WMD O0x100000CB 000 PAR Pin Assignment Register PST DDATA not need WM8 0x10000014 0x85 ICR1 WMD 010000015 0x88 ICR2 WM8 010000016 Ox8E ICR3 WMD 010000017 0x12 ICR4 WMD 0x10000018 0x95 ICRS Latha D ANNNNAG NAAA IDFC New dialog box Startup Init List In order to prepare the target for debugging you can define an Initialization List This list is stored in the
24. y ABATRON AG V 1 04 d ldi BDM interface for Code Warrior Debugger 2 2000 ColdFire User Manual 0 The following diagram shows the used universal exception procedure for ColdFire targets May be this helps you to understand how BDI works in LOOP mode Target BDI2000 Vectortable save all register write loop level to status register gt cleared Test and clear semaphore read stackframe pointer Lee ea set restart flag set BDI2000 firmware store A7 The application loops here when stopped Also if interrupts are enabled Loop Level lt 7 tasks with lower priority will get no CPU time because the stopped task consumes it all restart flag set Flushing the cache is not done for flush devices with unified caches instruction cache restore all registers RTE The ColdFire is never freezed because it is possible to access target memory via the BDM interface while the CPU is running Copyright 1992 2004 by ABATRON AG V 1 04 d BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 27 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 e Remark RESET FREEZED 4 needed to t
25. yotorseueaadnaieiandtatecias 19 4 2 Breakpoint MOJE 19 42 1 Breakp int M d FREEZED eebe a aE E E E Ea 19 4 2 2 Breakpoint Mode LOOP 19 co ea eR a aR ee ee eee ee ees 21 5 SSIS CHIC E 22 6 Watranty osisssa aaraa aaea aa aaan Na Ka Vaaa Taaa ees 23 Appendices A Troubles 24 25 11600706 B C eene EE 27 Copyright 1992 2004 by ABATRON AG V 1 04 d bd BDM interface for CodeWarrior Debugger BDIZ000 ColdFire User Manual 3 1 Introduction Target System Target System ColdFire ColdFire BDM Interface BDM Interface PC Host RS232 Ethernet 10 BASE T L The 012000 adds Background Debug Mode features to the CodeWarrior debugger environment from Metrowerks With the BDI2000 you control and monitor the microcontroller solely through the stable on chip debugging services You won t waste time and target resources with a software ROM monitor and you eliminate the cabling problems typical of ICE s This combination runs even when the target system crashes and allows developers to continue investigating the cause of the crash A 45232 interface with a maximum of 115 kBaud and a 10Base T Ethernet interface is available for the host interface The configuration software is used to update the firmware and to configure the BDI2000 so it works with the CodeWarrior debugger 1 1

Download Pdf Manuals

image

Related Search

Related Contents

  Cisco 48-Port Gigabit Switch: WebView  P61_Manual_PT - 3B Scientific  LG P925 Product manual  Embedded Systems - Chess - Center for Hybrid and Embedded  Model Ei206D BATTERY POWERED CARBON  Antari ICE-100 取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file