Home
bdiGDB User Manual
Contents
1. 4 Ww rs 2 1 Remove the two plastic caps that cover the screws on target front side e g with a small knife 2 2 Remove the two screws that hold the front panel BDI TRGT MODE BDI MAIN BDI OPTION 3 1 While holding the casing remove the front panel and the red elastig sealing casing NS elastic sealing front panel Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 54 4 1 While holding the casing slide carefully the print in position as shown in figure below 4a Jumper settings me o m P DEFAULT INIT MODE 4 Fuse Position Fuse Position Version B e Version A e x Pull out carefully the fuse and replace it Type Microfuse MSF 1 6AF Manufacturer Schurter 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 My elastic sealing front panel back panel 5 3 Mount the screws do not overtighten
2. TARGETA The green LED TRGT marked light up when target is powered up BDI MAIN TARGET A Connector Signals Name Describtion System Ground Serial Wire Clock SWDIO Serial Wire Debug Data Input Output SWO SWV Serial Wire Output Viewer optional trace data output 3 4 This open collector output of the BDI2000 can be used to hard reset the target system 9 Vcc Target 1 8 5 0V 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 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 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 10 2 2 Connecting the BDI2000 to 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 mu
3. 3 3 2 Connecting to the target As soon as the target comes out of reset BDI initializes it and loads your application code If RUN is selected the application is immediately started otherwise only the target PC is set BDI now waits for GDB request from the debugger running on the host After starting the debugger it must be connected to the remote target This can be done with the fol lowing command at the GDB prompt gdb target remote bdi2000 2001 bdi2000 This stands for an IP address The HOST file must have an appropriate entry You may also use an IP address in the form XXX XXX XXX XXX 2001 This is the TCP port used to communicate with the BDI If not already suspended this stops the execution of application code and the target CPU changes to background debug mode Remember every time the application is suspended the target CPU is freezed During this time no hardware interrupts will be processed Note For convenience the GDB detach command triggers a target reset sequence in the BDI JAD sas gdb detach Wait until BDI has resetet the target and reloaded the image gdb target remote bdi2000 2001 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 39 3 3 3 Breakpoint Handling There are two breakpoint modes supported One of them SOFT is implemented by replacing appli cation code with a HLT instruction The other HARD uses the built
4. FORMAT ELF 0x10000 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 BDI The workspace is used for a 1kByte data buffer and to store the algorithm code There must be at least 2kBytes of RAM avail able for this purpose address the address of the RAM area Example WORKSPACE 0x00000000 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 38 ERASE addr increment count mode wait The flash memory may be individually erased or unlocked via the Telnet interface In order to make 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 used if you enter UNLOCK at the Telnet without any parameters With the in crement and count option you can erase multiple equal sized sectors with one entry in the erase list address Address of the flash sector block or chip to erase increment If present the address offset to the next flash sector count If present the number of equal sized sectors to erase mode BLOCK CHIP UNLOCK Without this optional parameter the BDI executes a sec tor erase If supported by the chip you can also specify a block or chip erase If UNLOCK is defined this entry is also part of the unlock list T
5. MDAXI lt addr gt lt cnt gt MMAXI lt addr gt lt value gt display Debug Port DP register display Access Port AP register display core debug register modify Debug Port DP register modify Access Port AP register modify core debug register display APB memory modify APB memory display AHB memory 32 bit modify AHB memory 32 bit display AXI memory 64 bit modify AKI memory 64 bit Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 45 Additional info about some Telnet commands rdsys rmsys The number for accessing system registers via rdsys or rmsys has to be built as follows o opl CRn CRm gpz A low bit of op0 For examples look at the provided register definition files dcps This command allows to change the processor state in debug mode With dcps x you can increase the exception level A dcps without any parameter executes a DRPS instruction that restores the processor to the exception level and mode recorded in the current SPSR_ELn Before executing the DRPS instruction the BDI loads the current SPSR_ELn with the locally stored CPSR value exec This allows to execute a single instruction in debug mode The registers rO and r1 are loaded with the provided values before the instruction is executed Then the registers rO and r1 are read back and displayed Be a
6. type The register type GPR General purpose register SYS System register MM Absolute direct memory mapped register PMM Like MM but with disabled MMU during the access DMM1 DMM4_ Relative direct memory mapped register APB APB memory mapped register DBG External debug register addr The address offset or number of the register size The size 8 16 32 of the register default is 32 The following entries are supported in the REGS part of the configuration file FILE filename The name of the register definition file This name is used to access the file via TFTP The file is loaded once during BDI startup filename the filename including the full path Example FILE C bdi regs reg40400 def DMMn base This defines the base address of direct memory mapped registers This base address is added to the individual offset of the register base the base address Example DMM1 0x01000 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 37 Example for a register definition Entry in the configuration file REGS FILE SregARMV8 EL2 def The register definition file System Register Numbers H o opl CRn CRm op2 7 low bit of op0 name type addr size System Registers 4 midr_ell SYS 0x8000 ctr_el0 SYS Oxb002 mpidr_ell SYS 0x800a 64 revidr_ell SYS 0x800c dczid_el0 SYS Oxb00e 4 External Debug Register
7. A N Ethernet 10 BASE T The configuration parameter SIO is used to enable this serial I O routing The BDI asserts RTS and DTR when a TCP connection is established BDI2000 TARGET SIO 7 9600 Enable SIO via TCP port 7 at 9600 baud Warning 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 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 41 3 3 6 Target DCC I O via BDI It is possible to route a TCP IP port to the ARM s debug communciation channel DCC This way the application running on the target can output messages via DCC that are displayed for example in a Telnet window The BDI routes every byte received via DCC to the connected TCP IP channel and vice versa Below some simple functions you can link to your application in order to implement IO via DCC define MDCCSR_TX_FULL define MDCCSR_RX_FULL 4 1 lt lt 29 lt lt 30 H j static unsigned int read_dtr void unsigned int c asm__ mrs x0 dbgdtrrx_el0 n r c return c static void write_dtr unsigned int c asm__ msr dbgdtrtx_el0 x0 n r c static unsigned int read_mdccsr void unsigned int ret asm mrs x0 mdccsr_
8. AG Switzerland lt lt Connector 1 Vcc Target 20 3 TRST lt ____ 4pin EmbeddedICE 5 TDI Connector 1 Vcc Target 7 TMS 2 GROUND 8 GROUND 3 TRST 9 TCK 4 GROUND 10 GROUND 5 TDI 7 TMS 13 TDO 9 TCK 15 RESET 11 TDO 12 RESET V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 7 BDI MAIN TARGET A Connector Signals reserved This pin is currently not used JTAG Test Reset This open drain push pull output of the BDI2000 resets the JTAG TAP controller on the target Default driver type is open drain G System Ground ND TCK JTAG Test Clock This output of the BDI2000 connects to the target TCK line TMS JTAG Test Mode Select This output of the BDI2000 connects to the target TMS line RESET This open collector output of the BDI2000 is used to reset the target system TD JTAG Test Data In This output of the BDI2000 connects to the target TDI line Vcc Target 1 8 5 0V 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 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 TDO JTAG Test Data Out This
9. BDI configuration software and the firmware required for the BDI2000 For Windows users there is also a simple TFTP server included The following files are on the CD gdbav821 zip ZIP achive with the JTAG Mode firmware gdbsv821 zip ZIP archive with the Serial Wire Mode firmware The following files are in the ZIP archives b20av8gd exe b20sv8gd exe Windows configuration program b20av8gd xxx b20sv8gd xxx Firmware for the BDI2000 armjed20 xxx swdjed20 xxx JEDEC file for the BDI2000 Rev A B logic device armjed21 xxx swdjed21 xxx JEDEC file for the BDI2000 Rev C logic device tftpsrv exe TFTP server for Windows WIN32 console application cfg Configuration files def Register definition files bdisetup zip ZIP Archive with the Setup Tool sources for Linux UNIX hosts Overview of an installation configuration process e Create a new directory on your hard disk e Copy the entire contents of the enclosed CD into this directory e Linux only extract the setup tool sources and build the setup tool e Use the setup tool to load update the BDI firmware logic Note A new BDI has no firmware logic loaded e Use the setup tool to transmit the initial configuration parameters IP address of the BDI IP address of the host with the configuration file Name of the configuration file This file is accessed via TFTP Optional network parameters subnet mask default gateway Activating BOOTP The BDI can get the network
10. BDI2000 software and logic versions The current loader firmware and logic version will be displayed Update This button is only active if there is a newer firmware or logic version pres ent in the execution directory of the bdiGDB setup software Press this but ton to write the new firmware and or logic into the BDI2000 flash memory programmable logic Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 18 BDI IP Address Subnet Mask Default Gateway Config Host IP Address Configuration file Transmit Enter the IP address for the BDI2000 Use the following format XXX XXX XXX XXX 9 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 xxxe 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 Enter the IP address of the host with the configuration file The configura tion file is automatically read by the BDI after every start up via TFTP If the host IP is 255 255 255
11. TARGET core 1 has entered debug mode TARGET core 2 has entered debug mode TARGET core 3 has entered debug mode TARGET core 4 has entered debug mode TARGET core 5 has entered debug mode TARGET core 6 has entered debug mode TARGET core 7 has entered debug mode XGENE 0 gt stat Core 0 halted 0x00000043eff65900 Breakpoint Core 1 halted 0x000000000000022c EDBGRQ signal Core 2 halted 0x000000000000022c EDBGRQ signal Core 3 halted 0x000000000000022c EDBGRO signal Core 4 halted 0x000000000000022c EDBGRQ signal Core 5 halted 0x000000000000022c EDBGRO signal Core 6 halted 0x000000000000022c EDBGRQ signal Core 7 halted 0x000000000000022c EDBGRO signal Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 48 Multi Core Restart via GDB continue Then core specific parameter CTI allows to define a group of cores that should be restarted when GDB sends the continue command to the BDI This has the same effect as the Telnet cont com mand Via the cgroup option you define what the BDI does in response to the GDB continue com mand e f there is no CGROUP defined then the core is restarted as usual e If the CGROUP core mask defines only the actual core then this core is prepared for restart but the final step to actually restart is made pending To actually restart it a continue com mand from t
12. configuration and the name of the configuration file also via BOOTP For this simple enter 0 0 0 0 as the BDI s IP address see following chapters If present the subnet mask and the default gateway router is taken from the BOOTP vendor specific field as defined in RFC 1533 With the Linux setup tool simply use the default parameters for the c option root LINUX_1 bdisetup bdisetup c p dev ttyS0O b57 The MAC address is derived from the serial number as follows MAC 00 0C 01 xx xx xx repace the xx xx xx with the 6 left digits of the serial number Example SN 93123457 gt gt 00 0C 01 93 12 34 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 15 2 5 1 Configuration with a Linux Unix host The firmware logic update and the initial configuration of the BDI2000 is done with a command line utility In the ZIP Archive bdisetup zip are all sources to build this utility More information about this utility can be found at the top in the bdisetup c source file There is also a make file included Starting the tool without any parameter displays information about the syntax and parameters A 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 Following the steps to bring up a new BDI2000 1 Build the setup tool The setup tool is delivered only as sour
13. download speed No target communication channel e g serial line is wasted for debugging purposes Even better you can use fast Ethernet debugging with target systems without network capability The host to BDI communication uses the standard GDB remote protocol An additional Telnet interface is available for special debug tasks e g force a hardware reset program flash memory The following figure shows how the BDI2000 interface is connected between the host and the target Target System Unix PC Host BDI2z000 GNU Debugger GDB Ethernet 10 BASE T 1 1 BDI2000 The BDI2000 is the main part of the bdiGDB system This small box implements the interface be tween the JTAG pins of the target CPU and a 10Base T ethernet connector The firmware and the programable logic of the BDI2000 can be updated by the user with a simple Windows Linux 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 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 5 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 the flash of the BDI2000 Every time the BDI2000 is powered on it reads the configuration file via TFTP Following an exam
14. host First make sure that the BDI is properly connected see Chapter 2 1 to 2 4 A 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 BDI2000 Update Setup r Connect BDI2000 Loader Channel SN 95111242 C Port COM2 MAC 000001951112 Speed 115200 7 r BDI2000 Firmware Logic Current Newest Current Loader 1 05 Erase Firmware 1 02 1 02 Logic 1 06 1 06 Update r Configuration BDI IP Address 151 120 25 101 Subnet Mask 255 255 255 255 Default Gateway 255 255 255 255 Config Host IP Address 151 120 25 119 Configuration file E cygwin home bdidemo arm 1 arm1 136 cfg Cancel Ok Transmit Writing setup data passed dialog box BDI2000 Update Setup Before you can use the BDI2000 together with the GNU debugger you must store the initial config uration parameters in the BDI2000 flash memory The following options allow you 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 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
15. in breakpoint logic If HARD is selected only up to n breakpoints can be active at the same time The following example selects SOFT as the breakpoint mode BREAKMODE SOFT SOFT or HARD HARD uses hardware breakpoints The BDI supports only a GDB version that uses a Z Packet to set breakpoints GDB Version 5 0 or newer GDB tells the BDI to set clear breakpoints with this special protocol unit The BDI will re spond to this request by replacing code in memory with the HLT instruction or by setting the appro priate hardware breakpoint 3 3 4 GDB monitor command The BDI supports the GDB V5 x monitor command Telnet commands are executed and the Telnet output is returned to GDB gdb target remote bdi2000 2001 Remote debugging using bdi2000 2001 0x10b2 in start gdb monitor md 0 1 00000000 Oxe59ff018 442503144 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 40 3 3 5 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 channel For example you can connect a Telnet session to the appropriate BDI2000 port Connecting GDB to a GDB server stub running on the target should also be possible Target System RS232 Connector 1 CD 2 RXD 3 TXD 4 DTR 5 GROUND 6 DSR 7 RTS 8 CTS 9 RI XXX BDI Output
16. the configuration file the target is automatically initialized after every re set Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 ldi for GNU Debugger BDI2000 ARMv8 User Manual 6 2 Installation 2 1 Connecting the BDI2000 to Target The enclosed cables to the target system are designed for the ARM Development Boards In case where the target system has the same connector layout the cable can be directly connected 14 pin EmbeddedICE or 20 pin Multi ICE exceed 20 cm 8 Target System A In order to ensure reliable operation of the BDI EMC runtimes etc the target cable length must not gt 1 SSDS 13 KENEN CERNu 14 BDI MAIN 10 2 The green LED TRGT marked light up when target is powered up Target System LLLLLLL 13 AT 4441411177 20 pin Multi ICE 14 19 Connector T 1 Vcc Target j EEHEHE ENE 7 TRST 2 20 Ae 14 pin EmbeddedICE 5 TDI Connector 1 Vcc Target 7 TMS 2 GROUND 8 GROUND 3 TRST 9 TCK 4 GROUND 10 GROUND 5 TDI 7 TMS 13 TDO 9 TCK 15 RESET 11 TDO 12 RESET LLLLLLLLEL 1 19 20 pin Multi ICE Jaa a a aaa nuun TARGET A 1 6600 ee 10 2 The green LED TRGT marked light up when target is powered up Copyright 1997 2015 by ABATRON
17. 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 e An incorrect IP address was entered BDI2000 configuration e 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 e An incorrect IP address was entered BDI2000 configuration Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 53 B 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 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
18. 255 then the setup tool stores the configura tion read from the file into the BDI internal flash memory In this case no TFTP server is necessary Enter the full path and name of the configuration file This file is read by the setup tool or via TFTP Click on this button to store the configuration in the BDI2000 flash memory 2 5 3 Recover procedure 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 e Switch OFF the power supply for the BDI and open the unit as described in Appendix Maintenance e Place the jumper in the INIT MODE position e 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 untilthe a LED MODE blinks fast 7 o E INIT MODE Mie e Turn the power supply OFF again f DEFAULT e Return the jumper to the DEFAULT position e Reassemble the unit as described in Appendix Maintenance Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 19 2 6 Testing the BDI2000 to host connectio
19. BATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 34 Supported standard parallel NOR Flash Memories There are different flash algorithm supported Almost all currently available parallel NOR flash mem ories can be programmed with one of these algorithm The flash type selects the appropriate algo rithm and gives additional information about the used flash On our web site www abatron ch gt Debugger Support gt GNU Support gt Flash Support there is a PDF document available that shows the supported parallel NOR flash memories Some newer Spansion MirrorBit flashes cannot be programmed with the MIRRORX 16 algorithm be cause of the used unlock address offset Use S29M32X16 for these flashes The AMD and AT49 algorithm are almost the same The only difference is that the AT49 algorithm does not check for the AMD status bit 5 Exceeded Timing Limits Only the 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 support the selected mode erasing will fail The erase command sequence is different only in the 6th write cycle Depending on the selected mode the following data is written in this cycle see also flash data sheets 0x10 for chip erase 0x30 for sector erase 0x50 for block erase To speed up programming of Intel Strata Flash and AMD MirrorBit F
20. E 0 gt info Core number 0 Core state debug AArch64 EL2 Debug entry cause External Debug Request Current PC 0x000000001d00c2a4 Current CPSR Ox800003c9 EL2h XGENE 0 gt md 0x1d000000 1d000000 d503201f d503201f d503201f d503201f 1d000010 d503201f d503201f d503201f d503201f 1d000020 d503201f d503201f d503201f d503201f p 1 we S 1d000030 d503201fF d503201f d503201 f LTVfEFELD 6 sae dee ee ewes 1d000040 d53800a0 d51c00a0 dS5dlccO1lf d2810005 8 XGENE 0 gt ti Core number 0 Core state debug AArch64 EL2 Debug entry cause Single Step Current PC 0x000000001d00c2a8 Current CPSR 0x800003c9 EL2h XGENE 0 gt Notes 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 2015 by ABATRON AG Switzerland V 1 01 ldi for GNU Debugger BDI2000 ARMv8 User Manual 43 3 4 1 Command list MD lt address gt lt count gt display target memory as word 32bit MDH lt address gt lt count gt display target memory as half word 16bit MDB lt address gt lt count gt display target memory as byte 8bit DUMP lt addr gt lt size gt lt file gt dump target memory
21. FF_ Boot ROM Delay for the selected time value the delay time in milliseconds 1 30000 Example DELAY 500 delay for 0 5 seconds This entry allows to change the JTAG clock frequency during processing of the init list But the final JTAG clock after processing the init list is taken from the CLOCK entry in the TARGET section This entry maybe of in terest to speed up JTAG clock as soon as possible after PLL setup value see CLOCK parameter in TARGET section Example CLOCK 2 switch to 8 MHz JTAG clock This entry causes the processor to execute one instruction The data is loaded to GPRn before the instruction is executed n the GPR number default is 0 opcode the opcode of the instruction data the data loaded to GPRn default is 0 Example EXEC 0xd508751f IC invalidate all Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 24 3 2 2 Part TARGET The part TARGET defines some target specific values CPUTYPE type index addr This value gives the BDI information about the connected CPU type The CPU type from the following list CORTEX A50 X GENE THUNDERX index Defines which core debug component to select 0 7 addr Specifies the APB address of the core debug compo nent There is no ROM table search in this case Example CPUTYPE X GENE Oxfc010000 X Gene CPU 0 CTI addr cgroup This entry allows to override the default base address of t
22. ITATION ANY WARRANTIES OF MERCHANTABILITY FITNESS FORA PARTICULAR PURPOSE TITLE AND NON INFRINGEMENT 7 4 Limitation of Liability IN NO EVENT SHALL ABATRON OR ITS SUPPLIERS BE LIABLE TO YOU FOR ANY DAMAGES INCLUDING WITHOUT LIMITATION ANY SPECIAL INDIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE HARDWARE AND OR SOFTWARE INCLUDING WITHOUT LIMITATION LOSS OF PROFITS BUSINESS DATA GOODWILL OR ANTICIPATED SAVINGS EVEN IF ADVISED OF THE POSSIBILITY OF THOSE DAMAGES The hardware and software product with all its parts copyrights and any other rights remain in pos session of ABATRON Any dispute which may arise in connection with the present agreement shall be submitted to Swiss Law in the Court of Zug Switzerland to which both parties hereby assign com petence Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 52 Appendices 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 e A wrong communication port Com 1 Com 4 is selected Problem No
23. N comment core identifier parameterl parameter2 parameterN part name core identifier parameterl parameter2 parameterN core identifier parameterl parameter2 parameterN etc Numeric parameters can be entered as decimal e g 700 or as hexadecimal 0x80000 The core is optional If not present the BDI assume core 0 See also chapter Multi Core Support Note about how to enter 64bit values The syntax for 64 bit parameters is lt high word gt _ lt low word gt Hex values may also be entered as Oxnnnnnnnnnnnnnnnn The high word optional and low word can be entered as decimal or hexadecimal They are han died as two separate values concatenated with an underscore Examples 0x0123456789abcdef gt gt 0x0123456789abcdef 0x01234567_0x89abcdef gt gt 0x0123456789abcdef io gt gt 0x0000000100000000 256 gt gt 0x0000000000000100 3_0x1234 gt gt 0x0000000300001234 0x80000000_0 gt gt 0x8000000000000000 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 22 3 2 1 Part INIT The part INIT defines a list of commands which are be executed every time the target comes out of reset except in STARTUP RUN mode The commands are used to get the processor ready WGPR register value Write value to the selected general purpose register register the register number 0 31 value the value to write into the register Example
24. N AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 29 Low level JTAG scan chain configuration Sometimes it is necessary to configure the test access port TAP of the target before the ARM debug interface is visible and accessible in the usual way The BDI supports this configuration in a very ge neric way via the SCANINIT and SCANPOST configuration commands Both accept a string that de fines the JTAG sequences to execute The following example shows how to use these commands Configure ICEPick module to make ARM926 TAP visible SCANINIT t1l1 w1000 t0 w1000 toggle TRST SCANINIT 16 07 d8 89 16 02 connect and select router SCANINIT d32 81000082 set IP control SCANINIT d32 a018206f configure TAPO SCANINIT d32 a018216f cl15 enable TAPO clock 5 times in RTI SCANINIT i10 ffff 7scan bypass f Between SCANINIT and SCANPOST the ARM ICEBreaker is configured and the DBGRQ bit in the ARM debug control register is set 4 SCANPOST 110 002f IP router ARM bypass SCANPOST d33 0102000106 IP control SysReset SCANPOST i110 ffff scan bypass The following low level JTAG commands are supported in the string Use between commands I lt n gt lt b2b1b0 gt write IR bO is first scanned not for SWD D lt n gt lt b2b1b0 gt write DR bO is first scanned not for SWD n the number of bits 1 256 bx a data byte two hex
25. NG BANA NGA NEKE Waa ENG 13 2 5 Installation of the Configuration Software sessseseea ae ee een anane anaa anana anana anana nenene 14 2 5 1 Configuration with a Linux Unik host asasaran eea srnaleeslsiwstacuntaratvennaaatentiamsasene 15 2 5 2 Configuration with a Windows host sesa ereeeee eaaa nen anae e anna anaa a nenen a anaa n eee 17 2 5 3 Recover procedure there seatcencapeccatautbane tuttun Atut aaa RR KRA KN KN anana eaaa 18 2 6 Testing the BDI2000 to host connection saa aaa eaaa eaaa eaaa aana nenen nana aaa anana 19 2 7 TFTP server for Windows see ear aana naen a aana aana anana anana anana nana nana nana eee 19 5 Using bdIGDB ear np gen aga ae nega agi da agun NE aaa nun Oe ROP kaga aaa angan anganan Ku aaa aana 20 3 1 Principle of operatio asas asia ENG ANGGEN NENGNA GAN KAGAN ENGGA NAKENANG NANA E NK NGANAN ANGEN ANK NGENE NGE agawa ken 20 3 2 Configuration File seser anecedaaticteeusaccrenceiieusid alae nae Gadceademaceernted wate wiateanncanaeee 21 32 1 Part INIT rasanan aaa naa En Gaga Ba Ga ad ga ANG Aan E a a gg Ba A aa a saeka a aa a a na NG 22 3 2 2 Pan TARGET rras i Ta asaba ek Bg aa agahan A aa Ega aka a a aba aa aan a kanga ak 24 3 2 3 Part HOST anana aaa ka gana Ngan Da E E a ANG a a aa NGGAE DE E I EEN KN NGE NG 30 3 224 Part FLASH sarasing ea aini ea a e aan BE eg Ga SEA Bada e aia WE deg EA E ka BN E arga era
26. RMv8 User Manual 28 RM8 address xor RM16 address xor RM32 address xor WMX and or WAIT mask equal MMAP start end DELAY value CLOCK value EXEC n_ opcode data Read a byte 8bit from the selected memory place Read a half word 16bit from the selected memory place Read a word 32bit from the selected memory place address the memory address xor optional XOR pattern applied to the read value Example RM32 0x00000000 Writes back a modified read value The address and size is the same as used by RM8 RM16 or RM32 This allows simple bit manipulations and the AND pattern applied to the read value or the OR pattern applied to the read value Example RM32 0x200000000 0x10101010 read and XOR WMX OxffOO0ffO0 0x00000003 AND OR and write back Waits until memory amp mask equal The last RM8 RM16 or RM32 entry defines the address and the size for the following WAIT mask the bit mask used before comparing equal the value to compare against Example RM16 0x2000000a WAIT 0kK000f0ff 0x00001034 wait until equal Because a memory access to an invalid memory space via JTAG leads to a deadlock this entry can be used to define up to 32 valid memory ranges If at least one memory range is defined the BDI checks against this range s and avoids accessing of not mapped memory ranges start the start address of a valid memory range end the end address of this memory range Example MMAP OxFFE00000 OxFFFFFF
27. RON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 51 7 Abatron Warranty and Support Terms 7 1 Hardware ABATRON Switzerland warrants that the Hardware shall be free from defects in material and work manship for a period of 3 years following the date of purchase when used under normal conditions Failure in handling which leads to defects or any self made repair attempts are not covered under this warranty In the event of notification within the warranty period of defects in material or workman ship ABATRON will repair or replace the defective hardware The customer must contact the distrib utor or Abatron for a RMA number prior to returning 7 2 Software License Against payment of a license fee the client receives a usage license for this software product which is not exclusive and cannot be transferred Copies The client is entitled to make copies according to the number of licenses purchased Copies exceeding this number are allowed for storage purposes as a replacement for defective storage mediums Update and Support The agreement includes free software maintenance update and support for one year from date of purchase After this period the client may purchase software maintenance for an additional year 7 3 Warranty and Disclaimer ABATRON AND ITS SUPPLIERS HEREBY DISCLAIMS AND EXCLUDES TO THE EXTENT PERMITTED BY APPLICABLE LAW ALL WARRANTIES EXPRESS OR IMPLIED INCLUDING WITHOUT LIM
28. WGPR 0 5 WREG name value Write value to the selected register memory by name name the case sensitive register name from the reg def file value the value to write to the register memory Example WREG sp Ox1d00fffO WSYS register value Write value to the selected system register register the register number see chapter Telnet interface value the value to write into the register Example WSYS 0x8200 set EL1 Translation Base 0 WM68 address value Write a byte 8bit to the selected memory place address the memory address value the value to write to the target memory Example WM8 0x1d000000 0x01 WM16 address value Write a half word 16bit to the selected memory place address the memory address value the value to write to the target memory Example WM16 0x1d000000 0x0002 WM32 address value Write a word 32bit to the selected memory place address the memory address value the value to write to the target memory Example WM32 0x1d000000 0x12345678 WAPB address value Write a word 32bit to the APB memory address the APB memory address value the value to write to the APB memory Example WAPB Oxfc010400 0x1d000100 DBGBVRO_EL1 WDBG offset value Write a word 32bit to an external debug register offset the offset to the external debug register value the value to write to the register Example WDBG 0x400 0x1d000100 DBGBVRO_EL1 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 A
29. XI access port The current mode can also be changed via the Telnet interface The optional wait parameter allows to define a time the BDI waits before it expects that a value is ready or written This allows to optimize download performance The wait time is 8 x wait TCK s in Run Test Idle state The hprot option allows to define the CSW 81 24 bits in the AHB AXI AP The following modes are supported CORE The CORE default mode requires that the core is halt ed and makes use of the memory management unit MMU and cache AHB or AXI The AHB AXI access mode can access memory even when the core is running but bypasses MMU and cache Note The BDI automatically handles the AHB to AKI mapping for X Gene Example MEMACCES CORE 5 40 TCK s access delay MEMACCES AHB 4 access via AHB 32 TCK delay When this line is present a TCP IP channel is routed to the BDI s RS232 connector The port parameter defines the TCP port used for this BDI to host communication You may choose any port except 0 and the default Telnet port 23 On the host open a Telnet session using this port Now you should see the UART output in this Telnet session You can use the normal Telnet connection to the BDI in parallel they work completely in dependent Also input to the UART is implemented 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 When this line is presen
30. XX XXX Example IP 151 120 25 100 FILE filename The default name of the file that is loaded into RAM using the Telnet load command This name is used to access the file via TFTP If the filename starts with a this is replace with the path of the configuration file name filename the filename including the full path or for relative path Example FILE F gnu demo arm test elf FILE test elf FORMAT format offset The format of the image file and an optional load address offset If the im age is already stored in ROM on the target select ROM as the format The optional parameter offset is added to any load address read from the im age file format SREC BIN ELF or ROM Example FORMAT ELF FORMAT ELF 0x10000 LOAD mode In Agent mode this parameters defines if the code is loaded automatically after every reset mode AUTO MANUAL Example LOAD MANUAL START address The address where to start the program file If this value is not defined and the core is not in ROM the address is taken from the code file If this value is not defined and the core is already in ROM the PC will not be set before starting the target This means the program starts at the normal reset ad dress 0x00000000 address the address where to start the program file Example START 0x10000 DEBUGPORT port RECONNECT The TCP port GDB uses to access the target If the RECONNECT param eter is present an open TCP IP connection Telnet GDB will be closed if t
31. alt command The init list is not processed in this mode WAIT Sets the debug request bit in the target Once the target is released from reset it will enter debug mode IDLE In this mode the BDI does not access the target core until it is attached via the Telnet attach command This is useful for cores that are not accessible after reset Only after the attach the BDI starts communicating with the debug logic of this target core Example STARTUP STOP 3000 let the CPU run for 3 seconds WAKEUP time This entry in the init list allows to define a delay time in ms the BDI inserts between releasing the reset line and starting communicating with the tar get This delay is necessary when a target needs some wake up time after a reset time the delay time in milliseconds Example WAKEUP 3000 insert 3sec wake up time Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 26 BDIMODE mode param This parameter selects the BDI debugging mode The following modes are supported LOADONLY Loads and starts the application code No debugging via JTAG interface AGENT The debug agent runs within the BDI default mode This mode accepts a second parameter If RUN is entered as a second parameter the loaded ap plication will be started immediately otherwise only the PC is set and BDI waits for GDB requests If QUIET is entered as a second parameter the BDI no longer po
32. ang Wan 32 9 2 5 Par REGS sasana ia a Kana KA aaa aa aa NE agak bana aaa aga pena aga Laa ja an ag Nan KAE 36 3 3 Debugging with GDB saanane Reet ce meer nies eee eee ee er nennen 38 3 3 1 Target setup cet ela tee ctctendce gpe tec ididataeunecencecotumtanite at4c cescttdendage An nane eee ena 38 3 3 2 Connecting to the ANG EN ss an shttacig sweden de ates Secdetein ste tebenda andes ientlieeneee 38 3 3 3 Breakpoint Handling iced canes esbeccactehetncdedenctdeceataenstestleeeicnendsivesushcaetacrendeedencetedesdonekiael 39 3 3 4 GDB monitor command aaa aana aane telagdeensecetdecesledcpeesctieidasenevaniaeteteadeedtiees 39 3 3 5 Target serial MO via BDI ae eaanee eaaa ee anana een a anana nana aana a AAN ana nana aane nana 40 3 3 6 Tafget DCC VO Via BD sasasi ia Kaki ag a NE NGENE AKA Na Kg Ga Nn A iga a KE a EEN ANGENAN 41 3 4 Telnet nterface eeeesnannen anaa anana nenen ANANA NAGARA NAN N NAN N NANA NANA N AKAN ANGGONE NK ee 42 3 41 Command ISU si raa asa aaa sana kaa E aa AGA a aa ab a E Kae na 43 3 5 Multi Core Support saanane aana ee eer aana naa eee ee et ete ee nn 46 4 Specifitalions sas ss sanane ENAKAN NGE NNGENNGNG NANG niaranra aeaaea Aaaa KAGAN NENGGE GAENE NE ANG NGG NEKENG KAGEN 49 5 Environmental notiCe sssssss6s556 55 saa 506 NENG NANENGG NENG NERNNGNE SN GNANGGGAGNG NENG NNNENNGGNGNNNNNNNGENGNGENENGENNNGNASGSGGGE 50 6 Declaration of Confo
33. ation file Enter the full path and name of the configuration file This file is read by the setup tool or via TFTP Keep in mind that TFTP has it s own root direc tory usual tftpboot root LINUX_1 bdisetup bdisetup c p dev ttyS0O b57 gt 1151 120 25 101 gt hl51 120 25 118 N gt feval7t cnf Connecting to BDI loader Writing network configuration Writing init list and mode Configuration passed 5 Check configuration and exit loader mode The BDI is in loader mode when there is no valid firmware loaded or you connect to it with the setup tool While in loader mode the Mode LED is flashing The BDI will not respond to network requests while in loader mode To exit loader mode the bdisetup v s can be used You may also power off the BDI wait some time 1min and power on it again to exit loader mode root LINUX_1 bdisetup bdisetup v p dev ttyS0O b57 s BDI Type BDI2000 Rev C SN 92152150 Loader 2 V1 5 0 5 Firmware V1 00 bdiGDB for ARMV8 Logic V1 02 ARM MAC 00 Oc 01 92 15 21 IP Addr 151 120 25 101 Subnet 2 255 2595 255 255 Gateway 255 255 255 255 Host IP 151 120 25 118 Config eval7t cnf The Mode LED should go off and you can try to connect to the BDI via Telnet root LINUX_1 bdisetup telnet 151 120 25 101 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 17 2 5 2 Configuration with a Windows
34. ay information about all cores SELECT lt core gt Change the current Telnet core CONT lt cores gt Restart one or multiple cores lt cores gt core bit map Example cont 0x000d restart core 0 2 3 HALT lt cores gt Force one or multiple cores to debug mode If there is no lt cores gt param eter the currently selected core is forced to debug mode lt cores gt core bit map Example halt OxOOff halt 8 cores 0 7 If a group of cores is restarted with the cont command then all cores in the group are started syn chronously and CTI and CTM is setup so that all cores in this group halt when one of it halts If there is a core bit map entered for the halt command then all cores in the bit map are halted syn chronously Example where all cores halt when core 0 halts on a breakpoint XGENE 0 gt sta t ct Core 0 halted 0x00000043eff65900 EDBGROQ signal Core 1 halted 0x000000000000022c EDBGRO signal Core 2 halted 0x000000000000022c EDBGRQ signal Core 3 halted 0x000000000000022c EDBGRO signal Core 4 halted 0x000000000000022c EDBGRO signal Core 5 halted 0x000000000000022c EDBGRQ signal Core 6 halted 0x000000000000022c EDBGRQ signal Core 7 halted 0x000000000000022c EDBGRQ signal XGENE 0 gt bi 0x00000043eff65900 Breakpoint identification is 0 XGENE 0 gt cont Oxff TARGET core 0 has entered debug mode
35. ce files This allows to build the tool on any Linux Unix host To build the tool simply start the make utility root LINUX_1 bdisetup make ee 02 c 0o bdisetup o bdisetup c cc 02 c o bdicnf o bdicnf c cc 0z 0 o bdidll o bdidll c cc s bdisetup o bdicnf o bdidll o o bdisetup 2 Check the serial connection to the BDI With bdisetup v you may check the serial connection to the BDI The BDI will respond with infor mation about the current loaded firmware and network configuration Note Login as root otherwise you probably have no access to the serial port root LINUX_1 bdisetup bdisetup v p dev ttyS0O b57 BDI Type BDI2000 Rev C SN 92152150 Loader V1 05 Firmware unknown Logic unknown MAC 00 Oc 01 92 15 21 TP Addr 255 255 255 255 Subnet 255 255 255 259 Gateway 255 255 255 255 Host IP 255 255 255 255 Config 2 PPPPPPPPPPPP2227 3 Load Update the BDI firmware logic With bdisetup u the firmware is loaded and the CPLD within the BDI2000 is programmed This con figures the BDI for the target you are using Based on the parameters a and t the tool selects the correct firmware logic files If the firmware logic files are in the same directory as the setup tool there is no need to enter a d parameter root LINUX_1 bdisetup bdisetup u p dev ttyS0O b57 aGDB tARMV8 Connecting to BDI loader Erasing CPLD Programming firmware with b20av8gd 100 Programm
36. cores gt core bit map TI lt pc gt single step an instruction HALT lt cores gt force core s to debug mode lt cores gt core bit map BI lt addr gt set instruction breakpoint CI lt id gt clear instruction breakpoint s BD R W lt addr gt set data watchpoint 32bit access BDH R W lt addr gt set data watchpoint 16bit access BDB R W lt addr gt set data watchpoint 8bit access BDM R W lt addr gt lt mask gt set data watchpoint with address mask OD lt id gt clear data watchpoint s INTDIS disable target interrupts while running INTENA nabl target interrupts while running default INFO display information about the current state STATE display information about all cores Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 44 The Telnet commands cont LOAD lt offset gt lt file gt lt format gt load program file to target memory VERIFY lt offset gt lt file gt lt format gt verify a program file to target memory PROG lt offset gt lt file gt lt format gt program flash memory lt format gt SREC BIN or ELF ERASE lt address gt lt mode gt erase a flash memory sector chip or block di lt mode gt ERASE lt addr gt lt step gt lt count gt UNLOCK lt addr gt lt delay gt UNLOCK lt addr gt lt step gt lt count gt FLASH l
37. ctor to erase or unlock step This value is added to the last used address in order to get to the next sec tor In other words this is the size of one sector in bytes count The number of sectors to erase or unlock 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 gt unlock 0x00000000 0x20000 256 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 36 3 2 5 Part REGS In order to make it easier to access target registers via the Telnet interface the BDI can read ina register definition file In this file the user defines a name for the register and how the BDI should access it e g as memory mapped memory mapped with offset The name of the register defi nition file and information for different registers type has to be defined in the configuration file The register name type address offset number and size are defined in a separate register definition file This way you can create one register definition file for a specific target processor that can be used for all possible positions of the internal memory map You only have to change one entry in the configuration file An entry in the register definition file has the following syntax name type addr size name The name of the register max 15 characters
38. digits W lt n gt wait for n decimal micro seconds Tl assert TRST not for SWD TO release TRST not for SWD R1 assert RESE RO release RESET CH lt n gt clock TCK n decimal times with TMS high not for SWD CL lt n gt clock TCK n decimal times with TMS low not for SWD M lt addr gt lt data gt write the 32 bit data value to addr in AHB memory space A lt addr gt lt data gt write the 32 bit data value to addr in APB memory space P lt addr gt lt value gt write 32 bit to Access Port register The following diagram shows the parts of the standard reset sequence that are replaced with the SCAN string Only the appropriate part of the reset sequence is replaced If only a SCANINIT string is defined then the standard post sequence is still executed If reset mode hard Assert reset Toggle TRST If reset mode hard Delay for reset time Execute SCANINIT string Check if Bypass register s present Read and display ID code Check if debug module is accessible If startup reset catch reset exception If reset mode hard Release reset Wait until reset is really release Execute SCANPOST string Delay for wake up time Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 30 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 X
39. el0 n r ret return ret void write_dcc_char unsigned int c while read_mdccsr amp MDCCSR_TX_FULL write_dtr c unsigned int read_dcc_char void while read_mdccsr amp MDCCSR_RX_FULL return read_dtr void write_dcc_string const char s while s write_dcc_char st Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 42 3 4 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 may be done by using this interface Enter help at the Telnet command prompt to get a list of the available commands Telnet Debug features e Display and modify memory locations e Display and modify registers e Single step a code sequence e Set hardware breakpoints for code and data accesses e Load a code file from any host e Start Stop program execution e Programming and Erasing Flash memory During debugging with GDB the Telnet is mainly used to reboot the target generate a hardware re set and reload the application code It may be also useful during the first installation of the bdiGDB system or in case of special debug needs Multiple commands separated by a semicolon can be entered on one line Example of a Telnet session XGEN
40. er type OPENDRAIN PUSHPULL i CoreID 0 parameters active core after reset 0 CPUTYPE X GENE Oxfc010000 X Gene CPU 0 0 STARTUP HALT halt as soon as possible 0 ENDIAN LITTLE memory model LITTLE BIG 0 VECTOR CATCH RST OSU TDA Reset and OS unlock catch Trap SW access 0 BREAKMODE SOF SOFT or HARD 0 MEMACCESS CORE 10 memory access via Core 80 TCK s access delay CoreID 1 parameters 1 CPUTYPE X GENE 0xfc110000 X Gene CPU 1 1 STARTUP RUN 1 ENDIAN LITTLE 1 BREAKMODE HARD 1 MEMACCESS CORE 10 CoreID 2 parameters 2 CPUTYPE X GENE O0xfc210000 X Gene CPU 2 2 STARTUP RUN 2 ENDIAN LITTLE 2 BREAKMODE HARD 2 EMACCESS CORE 10 i CoreID 3 parameters 3 CPUTYPE X GENE Oxfc310000 X Gene CPU 3 3 STARTUP RUN 3 ENDIAN LITTLE 3 BREAKMODE HARD 3 MEMACCESS CORE 10 i HOST 0 PROMPT XGENE 0 gt 1 PROMPT XGENE 1 gt 2 PROMPT XGENE 2 gt 3 PROMPT XGENE 3 gt 0 DEBUGPOR 2800 1 DEBUGPOR 2801 2 DEBUGPOR 2802 3 DEBUGPOR 2803 Note Be aware that via Telnet you select the core by its BDI core ID n This BDI core ID is not necessary the core number within the SOC Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 47 Multi Core related Telnet commands STATE Displ
41. ference 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 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 JTAG Test Clock This output of the BDI2000 connects to the target TCK line JTAG Test Reset This open drain push pull output of the BDI2000 resets the JTAG TAP controller on the target Default driver type is open drain TMS JTAG Test Mode Select This output of the BDI2000 connects to the target TMS line C System Ground System Reset This open drain output of the BDI2000 is used to reset the target system reseved reseved GROUND System Ground Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 9 2 1 1 Serial Wire Debug The BDI2000 supports also the Serial Wire Debug Port SW DP In order to use SW DP a different firmware logic has to be loaded into the BDI2000 included on the CD Also a special target cable is available on request p n 90054 Rev A B C grey Vi SWO SWV grey C SWCLK Dk SWDIO Target Sysiem REMEH Reset Vcc Target kl Ground
42. he CTI compo nent and optionally to define the core group parameter addr Defines the APB address of the Cross Trigger Interface CTI component Default is debug base 0x10000 cgroup This is a bitmap of selected cores It gives the BDI infor mation about how to restart multiple cores in response to a GDB continue command See chapter Multi Core Support Example 0 CTI Oxfc020000 Oxff CTI base core group master 1 CTI Oxfc120000 0x02 CTI base core group slave 2 CTI Oxfc220000 0x04 CTI base core group slave CLOCK main init SLOW With this value s you can select the JTAG clock rate the BDI2000 uses when communicating with the target processor The main entry is used after processing the initialization list The init value is used after target reset until the initialization list is processed If there is no init value de fined the main value is used all the times Adaptive clocking is only supported with BDI2000 Rev B C and needs a special target connector cable Add also SLOW if the CPU clock frequency may fall below 6 MHz during adaptive clocking main init Example The clock frequency in Hertz or an index value from the following table 0 Adaptive 1 16 MHz 6 200 kHz 2 8 MHz 7 100 kHz 3 4 MHz 8 50 kHz 4 1 MHz 9 20 kHz 5 500 kHz 10 10 kHz CLOCK 2 16 MHz JTAG clock CLOCK 8000000 8 MHz JTAG clock Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugge
43. he master GDB session see next or the Telnet cont command is necessary e If the CGROUP core mask includes other cores beside the actual one then all cores in the mask are prepared for restart if not already done and finally the whole core group is restarted at the same time and CTI and CTM is setup so that all cores in this group halt when one of it halts This supports two different debug scenarios where the first one is actually a special case of the sec ond one e Debug only one core via GDB but make sure that always all cores are either halted or running For this only one CGROUP for the debugged core is necessary The core mask defines all the cores e Debug multiple cores not necessary all cores with different GDB sessions Here one core will be let s say the master core with the attached master GDB session Always continue all other GDB session cores before entering the continue command in the master GDB ses sion For the master core define the CGROUP mask with all cores For other cores set only the bit in the core mask that represents the core itself Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 49 4 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 Te
44. here is a connect request from the same host same IP address port the TCP port number default 2001 Example DEBUGPORT 2001 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 31 PROMPT string This entry defines a new Telnet prompt The current prompt can also be changed via the Telnet interface Example PROMPT XGENE 0 gt DUMP filename The default file name used for the DUMP command from a Telnet session filename the filename including the full path Example DUMP dump bin TELNET mode By default the BDI sends echoes for the received characters and supports command history and line editing 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 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 32 3 2 4 Part FLASH The Telnet interface supports programming and erasing of flash memories The bdiGDB system has to know which type of flash is used how the chip s are connected to the CPU and which sectors to erase in case the ERASE command is entered without any parameter CHIPTYPE type CHIPSIZE size BUSWIDTH width FILE filename FORMAT format offset WORKSPACE address This parameter defines the type of flash used It is used to select the cor rect prog
45. his unlock list is processed if the Telnet UNLOCK command is entered without any parameters Note Chip erase does not work for large chips because the BDI time outs after 3 minutes Use block erase wait The wait time in ms is only used for the unlock mode Af ter starting the flash unlock the BDI waits until it pro cesses the next entry Example ERASE Oxff040000 erase sector 4 of flash ERASE Oxff060000 erase sector 6 of flash ERASE Oxff000000 CHIP erase whole chip s ERASE Oxff010000 UNLOCK 100 unlock wait 100ms ERASE Oxff000000 0x10000 7 erase 7 sectors Example for the ARM PID7T board AM29F010 in U12 FLASH WORKSPACE 0x00000000 Workspace in target RAM for faster programming algorithm CHIPTYPE AM2 9F Flash type CHIPSIZE 0x20000 The size of one flash chip in bytes BUSWIDTH 8 The width of the flash memory bus in bits 8 16 32 FILE C gdb pid7t bootrom hex The file to program ERASE 0x04000000 erase sector 0 of flash SI ERASE 0x04004000 erase sector 1 of flash SI ERASE 0x04008000 erase sector 2 of flash SI ERASE 0x0400C000 erase sector 3 of flash SI ERASE 0x04010000 erase sector 4 of flash SI ERASE 0x04014000 erase sector 5 of flash SI ERASE 0x04018000 erase sector 6 of flash SI ERASE 0x0401C000 erase sector 7 of flash SI the above erase list maybe replaced with ERASE 0x04000000 04000 8 erase 8 sectors Copyright 1997 2015 by A
46. ing CPLD with armjed21 102 Note for Serial Wire Mode use tARMSV8 instead of tARMV8 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 16 4 Transmit the initial configuration parameters With bdisetup c the configuration parameters are written to the flash memory within the BDI The following parameters are used to configure the BDI BDI IP Address The IP address for the BDI2000 Ask your network administrator for as signing an IP address to this BDI2000 Every BDI2000 in your network needs a different IP address Subnet Mask The subnet mask of the network where the BDI is connected to A subnet mask of 255 255 255 255 disables the gateway feature Ask your network administrator for the correct subnet mask If the BDI and the host are in the same subnet it is not necessary to enter a subnet mask Default Gateway 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 Config Host IP Address Enter the IP address of the host with the configuration file The configura tion file is automatically read by the BDI after every start up via TFTP If the host IP is 255 255 255 255 then the setup tool stores the configura tion read from the file into the BDI internal flash memory In this case no TFTP server is necessary Configur
47. input to the BDI2000 connects to the target TDO line For TARGET B connector signals see table on next page The BDI2000 works also with targets which have no dedicated TRST pin For this kind of targets the BDI cannot force the target to debug mode immediately after reset The target always begins execu tion of application code until the BDI has finished programming the Debug Control Register Note For targets with a 10 pin or 20 pin Cortex Debug Connector Samtec 0 05 micro header a special adapter is available This Cortex Adapter can be ordered separately from Abatron p n 90085 Warning Before you can use the BDI3000 with an other target processor type e g PPC lt gt ARM a new setup has to be done see chapter 2 5 During this process the target cable must be disconnected from the target system A To avoid data line conflicts the BDI3000 must be disconnected from the target system while programming a new firmware for an other target CPU Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 8 BDI TARGET B Connector Signals JTAG Test Data Out This input to the BDI2000 connects to the target TDO line reserved JTAG Test Data In This output of the BDI2000 connects to the target TDI line reserved RTCK Returned JTAG Test Clock This input to the BDI2000 connects to the target RTCK line Pin Vcc Target 1 8 5 0V This is the target re
48. 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 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 55 C Trademarks All trademarks are property of their respective holders Copyright 1997 2015 by ABATRON AG Switzerland V 1 01
49. kb 139kb 149kb 160kb 174kb 189kb 208kb 232kb 260kb 298kb 347kb 417kb 520kb Example SWO 8023 260000 map ASCII SWO to odd port 8023 SWO 8020 260000 map raw SWO to even port 8020 Daisy chained JTAG devices For ARM targets the BDI can also handle systems with multiple devices connected to the JTAG scan chain In order to put the other devices into BYPASS mode and to count for the additional bypass registers the BDI needs some information about the scan chain layout Enter the number count and total instruction register irlen length of the devices present before the ARM chip Predecessor En ter the appropriate information also for the devices following the ARM chip Successor SCANPRED countirlen This value gives the BDI information about JTAG devices present before the ARM chip in the JTAG scan chain count The number of preceding devices irlen The sum of the length of all preceding instruction regis ters IR Example SCANPRED 1 8 one device with an IR length of 8 SCANSUCC count irlen This value gives the BDI information about JTAG devices present after the ARM chip in the JTAG scan chain count The number of succeeding devices irlen The sum of the length of all succeeding instruction reg isters IR Example SCANSUCC 2 12 two device with an IR length of 8 4 Note For Serial Wire Mode the following parameters are not relevant have no function TRST SCANPRED SCANSUCC Copyright 1997 2015 by ABATRO
50. lash an additional algorithm is implemented that makes use of the write buffer The Strata algorithm needs a workspace otherwise the standard Intel algorithm is used Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 35 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 appropriate blocks WM16 OxFFFOO000 0x0060 unlock block 0 WM16 OxFFF00000 0x00D0 WM16 OxFFF10000 0x0060 unlock block 1 WM16 OxFFF10000 0x00D0 WM16 OxFFFOO000 OxFFFF select read mod or use the Telnet unlock command UNLOCK lt addr gt lt delay gt addr This is the address of the sector block to unlock delay A delay time in milliseconds the BDI waits after sending the unlock com mand to the flash For example clearing all lock 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 J3 Strata flash use for example BDI gt unlock OxFFO00000 1000 To erase or unlock multiple continuos flash sectors blocks of the same size the following Telnet commands can be used ERASE lt addr gt lt step gt lt count gt UNLOCK lt addr gt lt step gt lt count gt addr This is the address of the first se
51. ldi JTAG debug interface for GNU Debugger ARMI User Manual Manual Version 1 01 for BDI2000 abatr on 1997 2015 by Abatron AG ldi for GNU Debugger BDI2000 ARMv8 User Manual 2 1 introduction jssiseeetsccetssaiescnccnsseansasacansenesasansexanatasctnassaiaceninanemensansaataeansedsaseainanananaecicuadsiaacasaiseeniaians 4 i1 BDI2000 eisein a E a aa a aba aa AE a gan EA a gak rr aaa 4 1 2 BDI GCONNGYULAtON cect ee ae ieran an kaag aan akang naja rea dence cals aa AS a gaga kak ea ROAR ERRES 5 2 installation sssssssasis exstasancenatiecsestwsinsncsasauntsacseadaceatansesciesnidenazanneciassasintansaunesakssaansansaaessabsanteanaeioieas 6 2 1 Connecting the BDI2000 to Target aeaenee aane nana a eaaa a aana a anana aaa anana iesccteerageoadl oad 6 2 1 1 Serial Wire Debug aaa aaen eaaa anana a nean a anaa anana aan ANNA A ANNA A ARKA Kanaan Kenaa nane uence 9 2 2 Connecting the BDI2000 to Power Supply anana eaaa aana a aana aa anana aana aaa nean a anna a anane 10 2 3 Status LED MIMO DEW iscadesic scanae cencecesnas cotuadesdiaiearetenansonee totus needs whcacemaniesinmiadnentaRecaneeean 11 24 Connecting the BDI2000 to HOS karisakan ag pinan kaa Ng TG aa BANG AKA KA Ka ak aa KN Aa a AKEN EN aaa 12 2 4 1 Serial line COMMUNICATION ssseea eaaa eaaa nean aaa aa KNA ease eeeaeeeeeeeeaaeeeeeesaaeeeenaes 12 2 4 2 Ethernet COMMUNICATION sisan aaa ANANGENG ANANE ENGGAN TE EN NGGE a
52. lls the debug status register The target is not influenced in any way while it is running But in this mode the BDI cannot detect any debug mode entry Example BDIMODE AGENT RUN ENDIAN format This entry defines the endiannes of the memory system format The endiannes of the target memory LITTLE default BIG Example ENDIAN LITTLE VECTOR CATCH list When this line is present the BDI catches some events Reset catch OS unlock catch and SW access to debug register trap can individually en abled An empty list enables all of them list Example List of events to catch RST Reset catch OSU OS unlock catch TDA Trap access to debug registers VECTOR CATCH catch all events VECTOR CATCH RST __ catch only reset event BREAKMODE mode This parameter defines how the BDI handles normal breakpoints set via GDB break command The Telnet bi command always sets a hardware breakpoint SOFT HARD Example This is the default mode Breakpoints are set by replac ing code with a HLT instruction In this mode the breakpoint hardware is used The num ber of available breakpoints depends on the target BREAKMODE HARD Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 27 MEMACCES mode wait hprot SIO port baudrate DCC port This parameter defines how memory is accessed Either via the ARM core by executing Id and st instructions or via the AHB A
53. mperature Relative Humidity noncondensing Size Weight without cables Host Cable length RS232 5 VDC 0 25 V typ 500 mA max 1000 mA 9 600 19 200 38 400 57 600 115 200 8 none 4 10 BASE T up to 16 Mbit s 1 8 5 0 V 3 0 5 0 V with Rev A B 5 C 60 C 20 C 65 C lt 90 rF 190 x 110 x 35 mm 420g 2 5m Specifications subject to change without notice Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 50 5 Environmental notice Disposal of the equipment must be carried out at a designated disposal site 6 Declaration of Conformity CE q DECLARATION OF CONFORMITY This declaration is valid for following product Type of device BDM JTAG Interface Product name BDI2000 The signing authorities state that the above mentioned equipment meets the requirements for emission and immunity according to EMC Directive 89 336 EEC The evaluation procedure of conformity was assured according to the following standards EN 50081 2 EN 50082 2 This declaration of conformity is based on the test report no QNL E853 05 8 a of QUINEL Zug accredited according to EN 45001 Manufacturer ABATRON AG St ckenstrasse 4 CH 6221 Rickenbach Authority LOC EY uu Max Vock Ruedi Dummermuth Marketing Director Technical Director Rickenbach May 30 1998 Copyright 1997 2015 by ABAT
54. n After the initial setup is done you can test the communication between the host and the BDI2000 There is no need for a target configuration file and no TFTP server is needed on the host e If not already done connect the bdiGDB system to the network e Power up the BDI2000 e Start a Telnet client on the host and connect to the BDI2000 the IP address you entered dur ing initial configuration e If everything is okay a sign on message like BDI Debugger for ARM should be displayed in the Telnet window 2 7 TFTP server for Windows The bdiGDB system uses TFTP to access the configuration file and to load the application program 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 Command line syntax tftpsrv p w dRootDirectory Without any parameter the server starts in read only mode This means only read access request from the client are granted This is the normal working mode The bdiGDB system needs only read access to the configuration and program files The parameter p enables protocol output to the console window Try it The parameter w enables write accesses to the host file system The parameter d allows to define a root directory tftpsrv p Starts the TFTP server and enables protocol output tftpsrv p w Starts the TFTP server enables protocol outpu
55. or for PC host 2 RXD data from host 3 TXD data to host Host RS232 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 13 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 Target System 10 BASE T Connector 1 TD 2 TD 3 RD LI TX RX 10 BASE T BDI2000 PC Unix Host Ethernet 10 BASE T C 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 and the hub to which it is connected TX Transmit When this LED light BLINKS data is being transmitted through the UTP port of the BDI2000 RX Receive When this LED light BLINKS data is being received through the UTP port of the BDI2000 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 14 2 5 Installation of the Configuration Software On the enclosed CD you will find the
56. ple of a typical configuration file bdiGDB configuration for ARMv8 based X Gene processor i i INIT empty init list TARGET POWERUP 3000 start delay after power up detected in ms CLOCK 8000000 JTAG clock 8 MHz TRST OPENDRAIN TRST driver type OPENDRAIN PUSHPULL i CoreID 0 parameters active core after reset 0 CPUTYPE X GENE Oxfc010000 X Gene CPU 0 0 STARTUP HALT halt as soon as possible 0 ENDIAN LITTLE memory model LITTLE BIG 0 VECTOR CATCH RST OSU TDA Reset and OS unlock catch Trap SW access 0 BREAKMODE SOF SOFT or HARD 0 MEMACCESS CORE 10 memory access via Core 80 TCK s access delay CoreID 1 parameters 1 CPUTYPE X GENE Oxfc110000 X Gene CPU 1 1 STARTUP RUN 1 ENDIAN LITTLE 1 BREAKMODE HARD 1 MEMACCESS CORE 10 CorelID 2 parameters 2 CPUTYPE X GENE Oxfc210000 X Gene CPU 2 2 STARTUP RUN 2 ENDIAN LITTLE 2 BREAKMODE HARD 2 EMACCESS CORE 10 CorelID 3 parameters 3 CPUTYPE X GENE O0xfc310000 X Gene CPU 3 3 STARTUP RUN 3 ENDIAN LITTLE 3 BREAKMODE HARD 3 MEMACCESS CORE 10 d f HOST 0 PROMPT XGENE 0 gt 1 PROMPT XGENE 1 gt 2 PROMPT XGENE 2 gt 3 PROMPT XGENE 3 gt REGS FILE regARMV8 EL2 def Based on the information in
57. r BDI2000 ARMv8 User Manual 25 TRST type Normally the BDI uses an open drain driver for the TRST signal This is in accordance with the ARM recommendation For boards where TRST is simply pulled low with a weak resistor TRST will always be asserted and JTAG debugging is impossible In that case the TRST driver type can be changed to push pull Then the BDI actively drives also high level type OPENDRAIN default PUSHPULL Example TRST PUSHPULL Drive TRST also high RESET type time pwr Normally the BDI drives the reset line during a reset sequence If reset type is NONE or SOFT the BDI does not assert a hardware reset If reset type SOFT is supported depends on the connected target type NONE default SOFT soft reset via a debug register HARD time The time in milliseconds the BDI assert the reset signal pwr A different reset type can be defined for the initial power up reset NONE SOFT HARD Example RESET SOFT reset ARM core via RCSR RESET HARD 1000 assert RESET for 1 second STARTUP mode runtime This parameter selects the target startup mode The following modes are supported HALT This default mode tries to forces the target to debug mode immediately out of reset STOP In this mode the BDI lets the target execute code for runtime milliseconds after reset This mode is useful when boot code should initialize the target system RUN After reset the target executes code until stopped by the Telnet h
58. ramming algorithm format AM29F AM29BX8 AM29BX16 I28BX8 I28BX16 AT49 AT49X8 AT49X16 STRATAX8 STRATAX16 MIRROR MIRRORX8 MIRRORX16 29M32X16 S29GLSX16 S29VSRX16 M58X32 AM29DX16 AM29DX32 Example CHIPTYPE AM29F The size of one flash chip in bytes e g AM29F010 0x20000 This value is used to calculate the starting address of the current flash memory bank size the size of one flash chip in bytes Example CHIPSIZE 0x80000 Enter the width of the memory bus that leads to the flash chips Do not en ter the width of the flash chip itself The parameter CHIPTYPE carries the information about the number of data lines connected to one flash chip For example enter 16 if you are using two AM29F 010 to build a 16bit flash memory bank with the width of the flash memory bus in bits 8 16 32 Example BUSWIDTH 16 The default name of the file that is programmed into flash using the Telnet prog command This name is used to access the file via TFTP If the file name starts with a this is replace with the path of the configuration file name This name may be overridden interactively at the Telnet interface filename the filename including the full path or for relative path Example FILE F gnu arm bootrom hex FILE bootrom hex 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 or ELF Example FORMAT SREC
59. rmity CE s0nesssananennnaewena nane nan anana n anawang naN Anan ENG NAN nannamamma 50 7 Abatron Warranty and Support TermS aaasesanaeeara nane aann nana nana wanan awanan anana nana wen anae nana nannneene 51 Tel HardWare i sasa aaa kasan gan aaa anan EN a Bak gae e ai aa Ba KANG E RAN KANG ENG D eh gan EU gk Ge ENE E KEN KG 51 7 2 ONAN AN cet cease na ea aaa aga KA EAE ga aaa ga aa a ag as gen eg a a ae ea 51 7 3 Warranty and Disclaimer asesasaseene eaaa anana eaaa aana a anana anana nana aa nane aan aana eaaa 51 TA Limitationmot Labilty asas aa a ag a aa aa Nak aaa Ea SEA aaa Ne SAN setae Ga eae 51 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 3 7 4 Appendices A Troubleshooting sicssssissccssiacssewassenaniadantnnwesiaasantananatanniraindensanadonseesranseainanesenisasaieasanatannadeineanandse 52 B Malntenance sssssssssasesss58 46 6 ag 0 NK BANGGA NENENG GANG NGNGNGGNGNNGGANGGGNG GN NAGANNANGNGNA NANANG NGGEN GNNNGGG NEG GNGGGGGG NG GNGEGG 53 C Trademarks ass isan idane anaa agan eaaa aaa a ahaaa ngana gaga nanya Na Nada aaa aasa naga kana Naba sangga aaa Naga 55 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 4 1 Introduction bdiGDB enhances the GNU debugger GDB with JTAG debugging for ARMVv8 based targets With the built in Ethernet interface you get a very fast
60. s dbg_edesr DBG 0x00020 32 dbg_edecr DBG 0x00024 32 dbg_edwar DBG 0x00030 64 dbg_edscr DBG 0x00088 32 4 ri Cross trigger Interface Registers i cti_control DBG 0x10000 32 cti_intack DBG 0x10010 32 cti_appset DBG 0x10014 32 cti_appclear DBG 0x10018 32 cti_apppulse DBG 0x1001C 32 cti_inen0 DBG 0x10020 32 cti_inen1 DBG 0x10024 32 cti_outen0 DBG 0x100A0 32 cti_outenl DBG 0x100A4 32 cti_triginsta DBG 0x10130 32 cti_trigoutsta DBG 0x10134 32 cti_chinsta DBG 0x10138 32 cti_choutsta DBG 0x1013C 32 cti_gate DBG 0x10140 32 cti_asicctl DBG 0x10144 32 me Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 38 3 3 Debugging with GDB Because the target agent runs within BDI no debug support has to be linked to your application There is also no need for any BDI specific changes in the application sources Your application must be fully linked because no dynamic loading is supported 3 3 1 Target setup Target initialization may be done at two places First with the BDI configuration file second within the application The setup in the configuration file must at least enable access to the target memory where the application will be loaded Disable the watchdog and setting the CPU clock rate should also be done with the BDI configuration file Application specific initializations like setting the timer rate are best located in the application startup sequence
61. st 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 GND 3 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 e 1 gt external power supply e 2 gt target system Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 11 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 BLINK The BDI loader mode is active an invalid firmware is loaded or loading firmware is active Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 12 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 bdiGDB system The host is connected to the BDI through the serial interface COM1 COM4 The communication cable included between BDI and Host is a serial cable There is the same connector pinout for the BDI and for the Host side Refer to Figure below Target System 5 GROUND l BDI2000 RS232 Connect
62. t a TCP IP channel is routed to the ARM debug communication channel DCC The port parameter defines the TCP port used for this BDI to host communication You may choose any port except O and the default Telnet port 23 On the host open a Telnet session us ing this port Now you should see the DCC output in this Telnet session You can use the normal Telnet connection to the BDI in parallel they work completely independent Also input to DCC is implemented port The TCP IP port used for the host communication Example DCC 7 TCP port for DCC I O Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 28 SWO port baudrate Only supported in Serial Wire Mode When this line is present a TCP IP channel is routed to the Serial Wire Output SWO SWV The port parameter defines the TCP port used for this BDI to host communication You may choose any port except 0 and the default Telnet port 23 If an even port number is used raw mode the BDI sends all data received via SWO in hexadecimal format to the host For an odd port number ASCII mode the bytes received in the range 4 to 127 are directly forwared to the host all other bytes are discard ed On the host open a Telnet session using this port Now you should see the Serial Wire Output in this Telnet session port The TCP IP port used for the host communication baudrate The BDI2000 supports 2400 115200 baud and 122kb 130
63. t and write accesses are allowed tftpsrv dC tftp Starts the TFTP server and allows only access to files in C tftp and its subdirectories As file name use relative names For example bdi mpc750 cfg accesses C tftp bdi mpc750 cfg You may enter the TFTP server into the Startup group so the server is started every time you logon Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 20 3 Using bdiGDB 3 1 Principle of operation The firmware within the BDI handles the GDB request and accesses the target memory or registers via the JTAG interface There is no need for any debug software on the target system After loading the code via TFTP debugging can begin at the very first assembler statement Whenever the BDI system is powered up the following sequence starts initial configuration valid no activate BDI2000 loader Get configuration file via TFTP Reset System and Power OFF Process target init list Process GDB requests Process Telnet commands Power OFF Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 21 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 core identifier parameterl parameter2 parameter
64. t type gt lt size gt lt bus gt FENA lt addr gt lt size gt FDIS DELAY lt ms gt E CHIP BLOCK or SECTOR default is sector erase multiple flash sectors unlock a flash sector unlock multiple flash sectors change flash configuration enable autoamtic programming to flash memory disable autoamtic programming to flash memory delay for a number of milliseconds MEMACC CORE AHB lt hprot gt select memory access mode SELECT lt core gt ATTACH lt core gt DETACH lt core gt HOST lt ip gt PROMPT lt string gt QUERY lt core gt change the current core connect to a core disconnect from a core change IP address of program file host defines a new prompt string display target configuration CONFIG display or update BDI configuration CONFIG lt file gt lt hostIP gt lt bdiIP gt lt gateway gt lt mask gt HELP display command list BOOT loader reboot the BDI and reload the configuration QUIT terminate the Telnet session Low level access to CoreSight debug system RDP lt addr gt RAP lt addr gt RDBG lt addr gt lt cnt gt WDP lt addr gt lt value gt WAP lt addr gt lt value gt WDBG lt addr gt lt value gt MDAPB lt addr gt lt cnt gt MMAPB lt addr gt lt value gt MDAHB lt addr gt lt cnt gt MMAHB lt addr gt lt value gt
65. to a file M lt addr gt lt value gt lt cnt gt modify word s 32bit in target memory MMH lt addr gt lt value gt lt cnt gt modify half word s 16bit in target memory MMB lt addr gt lt value gt lt cnt gt modify byte s 8bit in target memory MT lt addr gt lt count gt memory test MC lt address gt lt count gt calculates a checksum over a memory range MV verifies the last calculated checksum RD lt name gt display general purpose or user defined register RDUMP lt file gt dump all user defined register to a file RDALL display all ARM registers RDSYS lt number gt display system register RDFP display floating point register RDVR display vector registers RI lt nbr gt lt name gt lt value gt modify general purpose or user defined register RMSYS lt number gt lt value gt modify system register RMFP lt number gt lt value gt modify floating point register RMVR lt nbr gt lt val val val val gt modify vector register four 32bit values MMU ENABLE DISABLE enable disable MMU via control register DCPS 1 2 3 debug change restore processor state EXEC lt inst gt lt r0 gt lt r1 gt execute an instruction lt inst gt numeric coding or ICIALLU or ICIVAU or DCCVAU RESET HALT RUN time reset the target system change startup mode GO lt pc gt set PC and start current core CONT lt cores gt restart multiple cores lt
66. ware that not all instructions can be executed in Debug state The following example reads a 64 bit value from 0x1d000000 via Idr x1 x0 8 XGENE 0 gt exec 0xf8408401 0x1d000000 r0 0x000000001d000008 rl 0xd503201 14000010 For some cache maintenance instructions a name can be entered instead of the numeric opcode XGENE 0 gt exec iciallu XGENE 0 gt exec icivau 0x000000001d00c2a8 XGENE 0 gt exec dccvau 0x000000001d0e9f68 Copyright 1997 2015 by ABATRON AG Switzerland V 1 01 4 bhi for GNU Debugger BDI2000 ARMv8 User Manual 46 3 5 Multi Core Support The bdiGDB system supports concurrent debugging of up to 8 cores Via Telnet you can switch be tween the cores with the command select lt 0 7 gt In the configuration file simply begin the line with the appropriate core number If there is no n in front of a line the BDI assumes core 0 Up to 8 cores can be prepared for GDB debugging To select a core for GDB debugging define an approriate debug port number Only core 0 has a default debug port of 2001 assigned For every selected core you can start its own individual GDB session The following example defines 4 cores for debugging For a complete example look at the configu ration examples TARGET POWERUP 3000 start delay after power up detected in ms CLOCK 8000000 JTAG clock 8 MHz TRST OPENDRAIN TRST driv
Download Pdf Manuals
Related Search
Related Contents
Acta #35 Junio 11, 2012 aawestchesterny.org User Manual - OV Solutions 73-3 RON-7.qxd User Manual Written by Bob Simmerman Special thanks to Air Conditioner PDFファイル Bedienhandbuch R&S FSH3 Manual de usuario del ICC WARRANTY - Stay Well Shop Copyright © All rights reserved.
Failed to retrieve file