Advertisement

Quick Links

GDB
bdi
JTAG debug interface for GNU Debugger
QorIQ P3/P4/P5
User Manual
Manual Version 1.03 for BDI3000
©1997-2012 by Abatron AG

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the bdiGDB QorIQ P3 and is the answer not in the manual?

Questions and answers

Summary of Contents for Abatron bdiGDB QorIQ P3

  • Page 1 JTAG debug interface for GNU Debugger QorIQ P3/P4/P5 User Manual Manual Version 1.03 for BDI3000 ©1997-2012 by Abatron AG...
  • Page 2: Table Of Contents

    7.1 Hardware ..........................47 7.2 Software ..........................47 7.3 Warranty and Disclaimer ..................... 47 7.4 Limitation of Liability ......................47 Appendices A Troubleshooting ........................48 B Maintenance ..........................49 C Trademarks ..........................49 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 3: Introduction

    JTAG pins of the target CPU and a 10/100Base-T Ethernet connector. The firmware of the BDI3000 can be updated by the user with a simple Linux/Windows configuration program or interac- tively via Telnet/TFTP. The BDI3000 supports 1.2 – 5.0 Volts target systems. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 4: Bdi Configuration

    ;The width of the flash memory bus in bits FILE E:\temp\dump16k.bin FORMAT BIN 0x00300000 [REGS] FILE $regP4080.def Based on the information in the configuration file, the target is automatically initialized after every re- set. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 5: Installation

    (see chapter 2.5). During this process the target cable must be disconnected from the target system. To avoid conflicts between data lines, the BDI3000 must be disconnected from the target sys- tem while programming a new firmware for an other target CPU. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 6 This open collector output of the BDI3000 connects to the target PORESET pin. <reseved> General purpose Input This input to the BDI3000 connects to the target CKSTP_OUT pin. Currently not used. GROUND System Ground © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 7: Connecting The Bdi3000 To Power Supply

    User Manual 2.2 Connecting the BDI3000 to Power Supply The BDI3000 needs to be supplied with the enclosed power supply from Abatron (5VDC). Before use, check if the mains voltage is in accordance with the input voltage printed on power supply.
  • Page 8: Status Led "Mode

    The BDI is ready for use, the firmware is already loaded. The output voltage from the power supply is too low. BLINK The BDI «loader mode» is active (an invalid firmware is loaded or loading firmware is active). © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 9: Connecting The Bdi3000 To Host

    2 - RXD data from host RS232 POWER 3 - TXD data to host 4 - NC 5 - GROUND 3000 6 - NC 7 - NC 8 - NC PC Host 9 - NC RS232 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 10: Ethernet Communication

    The LED blinks when the BDI3000 is receiving or transmitting data. LED 2 Speed When this LED light is ON, 100Mb/s mode is selected (default). (amber) When this LED light is OFF, 10Mb/s mode is selected © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 11: Installation Of The Configuration Software

    Ethernet (Telnet or Setup Tools). If your host is not able to connect to this default IP, then the initial configuration has to be done via the serial connection. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 12: Configuration With A Linux / Unix Host

    $ ./bdisetup -u -p/dev/ttyS0 -b115 -aGDB -tP4080 Connecting to BDI loader Programming firmware with ./b30qp4gd.100 Erasing firmware flash ..Erasing firmware flash passed Programming firmware flash ..Programming firmware flash passed © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 13 : 255.255.255.255 Gateway : 255.255.255.255 Host IP : 151.120.25.112 Config : /bdi3000/mytarget.cfg The Mode LED should go off, and you can try to connect to the BDI via Telnet. $ telnet 151.120.25.102 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 14: Configuration With A Windows Host

    Once connected, the BDI3000 remains in loader mode until it is restarted or this dialog box is closed. Current Press this button to read back the current loaded BDI3000 firmware ver- sion. The current firmware version will be displayed. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 15 Loader via the IP address present in the "BDI IP Address" entry field. If there is no connection established after a time-out, it tries to connect to the default IP (192.168.53.72). © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 16: Configuration Via Telnet / Tftp

    BDI Subnet : 255.255.255.0 BDI Gateway : 255.255.255.255 Config IP : 151.120.25.112 Config File : /bdi3000/mytarget.cfg In case the subnet has changed, reboot before trying to load the firmware LDR>boot loader © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 17 Config File : /bdi3000/mytarget.cfg LDR> To boot now into the firmware use: LDR>boot The Mode LED should go off, and you can try to connect to the BDI again via Telnet. telnet 151.120.25.102 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 18: Testing The Bdi3000 To Host Connection

    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, Abatron provides a TFTP server application tftpsrv.exe. This WIN32 console application runs as normal user application (not as a system ser- vice).
  • Page 19: Using Bdigdb

    Whenever the BDI system is powered-up the following sequence starts: Power On initial configuration valid? activate BDI3000 loader Get configuration file via TFTP Power OFF Reset System and Process target init list Process GDB requests Process Telnet commands Power OFF © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 20: Configuration File

    The "high word" (optional) and "low word" can be entered as decimal or hexadecimal. They are han- dled as two separate values concatenated with an underscore. Examples: 0x0123456789abcdef =>> 0x0123456789abcdef 0x01234567_0x89abcdef =>> 0x0123456789abcdef =>> 0x0000000100000000 =>> 0x0000000000000100 3_0x1234 =>> 0x0000000300001234 0x80000000_0 =>> 0x8000000000000000 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 21: Part [Init]

    Example: WM32 0x02200000 0x01632440 ; SIUMCR WM64 address value Write a double word (64bit) to the selected memory place. address the memory address value the value to write to the target memory Example: WM64 0xFFF00000 0x123456789abcdef0 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 22 Example: EXEC 0_0x3c60aba4 ;load GPR 3 via lui EXEC 1_0x80c00000 1234 ;load GPR 6 via lwz EXEC 2_0xc8c00000 0 ;clear FPR 6 via ldf © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 23 0x10060000_0xff00003f ;1/1: 64_ff000000->0_ff000000 16MB -I-G- RWXRWX MAS2 is a predefined register name but WSPR will also work. WSPR 0x00000064_0x00000000 ;set MAS2 upper word WTLB 0x80000700_0xff00000a 0x10060000_0xff00003f ;1/1: 64_ff000000->0_ff000000 16MB -I-G- RWXRWX © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 24: Part [Target]

    (EDM, DNH and EFT) Example: EDBCR0 EDM DNH EFT ;this is the default EDBCR0 EDM DNH ;do not freeze timers EDBCR0 DNH ;do not halt on debug events © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 25 This is the mode, single step is implemented via the in- struction complete (ICMP) debug event. HWBP In this mode, a hardware breakpoint on the next instruc- tion is used to implement single stepping. Example: STEPMODE HWBP © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 26 Memory access via current core. The optional attr pa- rameter is explained in the Telnet chapter. Example: MEMACCES CORE ; access via core MEMACCES SAP 100 ; access via SAP, 100us delay © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 27 RCWSRC 0x18 ;Hard-Coded RCW 1_1000 RCWOVR index data Override the value of an individual 32-bit RCW. index The RCW index (4 ... 15) data The new RCW value Example: RCWOVR 11 0x00830000 ;RCW bits 352-383 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 28: Part [Host]

    TCP port number (default = 2001) Example: DEBUGPORT 2001 PROMPT string This entry defines a new Telnet prompt. The current prompt can also be changed via the Telnet interface. Example: PROMPT P4080#0> © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 29 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-2012 by ABATRON AG Switzerland V 1.03...
  • Page 30: Part [Flash]

    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-2012 by ABATRON AG Switzerland V 1.03...
  • Page 31 ;erase sector 6 of flash SIMM ERASE 0xFF9c0000 ;erase sector 7 of flash SIMM the above erase list maybe replaces with: ERASE 0xFF900000 0x40000 4 ; erase sector 4 to 7 of flash SIMM © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 32 The flash type selects the appropriate algo- rithm and gives additional information about the used flash. On our web site (www.abatron.ch -> Debugger Support -> GNU Support -> Flash Support) there is a PDF document available that shows the supported parallel NOR flash memories.
  • Page 33 The following example unlocks all 256 sectors of an Intel Strata flash (28F256K3) that is mapped to 0x00000000. In case there are two flash chips to get a 32bit system, double the "step" parameter. BDI> unlock 0x00000000 0x20000 256 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 34: Part [Regs]

    Address register data the address of the Data register Example: DMM1 0x04700000 Remark: The registers msr, cr, pc, pc64, iar, iar64 and fpscr and are predefined. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 35 0x124018 ..CCSR 0x1240E8 fbar CCSR 0x1240EC fpar CCSR 0x1240F0 fbcr CCSR 0x1240F4 Now the defined registers can be accessed by name via the Telnet interface: BDI>rd csrr0 BDI>rm br0 0x00000801 © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 36: Debugging With Gdb

    (gdb) target remote bdi3000:2001 Remote debugging using bdi3000:2001 0x10b2 in start () (gdb) monitor break Breakpoint mode is SOFT (gdb) mon break hard (gdb) mon break Breakpoint mode is HARD (gdb) © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 37: Target Serial I/O Via Bdi

    Once SIO is enabled, connecting with the setup tool to update the firmware will fail. In this case either disable SIO first or disconnect the BDI from the LAN while updating the firmware. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 38: Embedded Linux Mmu Support

    Newer versions of "arch/ppc/kernel/head.S" support the automatic update of the BDI page table in- formation structure. Search "head.S" for "abatron" and you will find the BDI specific extensions. Extract from the configuration file: [INIT] ..
  • Page 39 /* Let PTBASE point to an array of two pointers*/ BDI>mm 0xf8 0xc0057000 /* write address of swapper_pg_dir to first pointer */ BDI>mm 0xfc 0x00000000 /* clear second (user) pointer */ © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 40: Telnet Interface

    The DUMP command uses TFTP to write a binary image to a host file. Writing via TFTP on a Linux/ Unix system is only possible if the file already exists and has public write access. Use "man tftpd" to get more information about the TFTP server on your host. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 41 : CHIP, BLOCK or SECTOR (default is sector)", "ERASE <addr> <step> <count> erase multiple flash sectors", "UNLOCK [<addr> [<delay>]] unlock a flash sector", "UNLOCK <addr> <step> <count> unlock multiple flash sectors", "FLASH <type> <size> <bus> change flash configuration", © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 42 BDI> memacc sap 100 Memory access mode is a global selection. It is not possible to select different modes for different cores. Note: For information about the registers in DCSR space please contact Freescale. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 43: Multi-Core Support

    Be aware that via Telnet you select the e500mc core by its BDI core ID (#n). This BDI core ID is not necessary the core number within the SOC. Assuming there are two P4040 daisy chained, you may use BDI core ID #4 to select core 0 in the second P4040. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 44 Core#7: halted 0xfffff0f8 debug halt P4080#0>cont 0x30 P4080#0>state Core#0: halted 0x7ff74c34 debug halt Core#1: running Core#2: running Core#3: running Core#4: running Core#5: running Core#6: halted 0xfffff0f8 debug halt Core#7: halted 0xfffff0f8 debug halt P4080#0> © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 45: Specifications

    160 x 85 x 35 mm Weight (without cables) 280 g Host Cable length (RS232) 2.5 m Electromagnetic Compatibility CE compliant Restriction of Hazardous Substances RoHS 2002/95/EC compliant Specifications subject to change without notice © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 46: Environmental Notice

    BDI3000 (QorIQ P3/P4/P5) User Manual 5 Environmental notice Disposal of the equipment must be carried out at a designated disposal site. 6 Declaration of Conformity (CE) © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 47: Warranty And Support Terms

    ABATRON will repair or replace the defective hardware. The cost for the shipment to Abatron must be paid by the customer. Failure in handling which leads to defects are not covered under this warranty. The war- ranty is void under any self-made repair operation.
  • Page 48: Appendices

    Network processes do not function (loading the firmware was successful) Possible reasons • The BDI3000 is not connected or not correctly connected to the network (LAN cable or media converter) • An incorrect IP address was entered (BDI3000 configuration) © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...
  • Page 49: B Maintenance

    The BDI needs no special maintenance. Clean the housing with a mild detergent only. Solvents such as gasoline may damage it. C Trademarks All trademarks are property of their respective holders. © Copyright 1997-2012 by ABATRON AG Switzerland V 1.03...

This manual is also suitable for:

Bdigdb qoriq p4Bdigdb qoriq p5

Table of Contents