Fujitsu MB86R01 Application Note

Fujitsu MB86R01 Application Note

Jade & greenhills toolchain

Advertisement

Quick Links

Fujitsu Microelectronics Europe
an-mb86r01-trace-rev0-01.doc
Application Note
TRACE
MB86R01 'JADE' & GREENHILLS TOOLCHAIN
APPLICATION NOTE
VERSION 0.01 16.9.2008

Advertisement

Table of Contents
loading

Summary of Contents for Fujitsu MB86R01

  • Page 1 Fujitsu Microelectronics Europe an-mb86r01-trace-rev0-01.doc Application Note TRACE MB86R01 'JADE' & GREENHILLS TOOLCHAIN APPLICATION NOTE VERSION 0.01 16.9.2008...
  • Page 2: Revision History

    Revision History Revision History Date Issue 09/15/2008 0.1 tk First draft an-mb86r01-trace-rev0-01.doc - 2 - © Fujitsu Microelectronics Europe GmbH...
  • Page 3: Warranty And Disclaimer

    Product or parts thereof, if the Product is returned to Fujitsu Microelectronics Europe GmbH in original packing and without further defects resulting from the customer´s use or the transport.
  • Page 4: Table Of Contents

    CONTENTS .......................... 4 1 TRACE OVERVIEW......................5 Trace cell information ....................5 Further information ....................5 2 MB86R01 EVALUATION BOARD TO GHS ADAPTER........... 6 3 TRACE CONNECTION ....................7 4 TRACE STARTUP PROCEDURE..................8 5 TRACE CONFIGURATION ....................9 6 TRACE MEASUREMENT ....................11 System configuration.....................
  • Page 5: Trace Overview

    Chapter 1 Trace Overview 1 Trace Overview The MB86R01 has an integrated ETM9CS Single Macrocell for real-time tracing. With the ETM you can capture instructions and data executed by ARM926EJ-S core without influencing the execution. The trace data helps to find bugs more easily and allows stepping (both forwards and backwards) in the code.
  • Page 6: Mb86R01 Evaluation Board To Ghs Adapter

    However, the GreenHills Super Trace Probe (STP) has a special connector. Therefore an adapter is needed to connect both devices. The adapter board can be ordered from Fujitsu. Furthermore, the schematic and layout are available on request. Figure 1 Adapter Board an-mb86r01-trace-rev0-01.doc...
  • Page 7: Trace Connection

    GHS Super Trace probe. Pin 1 is marked on both boards. The GHS connector is protected against reverse polarity. Figure 2 STP to GHS connection an-mb86r01-trace-rev0-01.doc - 7 -© Fujitsu Microelectronics Europe GmbHError! Reference source not found.
  • Page 8: Trace Startup Procedure

    4. Start the Multi Debugger 5. Connect to the target Note: The ETM clock is now running and the tracing LED is on 6. Reset the target 7. Download the program to the target an-mb86r01-trace-rev0-01.doc - 8 - © Fujitsu Microelectronics Europe GmbH...
  • Page 9: Trace Configuration

    >TraceOptions from the top menu. Then select Target Specific Options to open the Trace options menu. A detailled parameter description can be found in the GHS Debugging book in chapter 19 “Collecting and Using Trace data”. Here is a small summary: an-mb86r01-trace-rev0-01.doc - 9 -© Fujitsu Microelectronics Europe GmbHError! Reference source not found.
  • Page 10 FIFO is close to overflowing. This method is only available with ETMv3.x targets. Suppressing data trace is less effective at preventing the FIFO from overflowing than stalling the CPU, but has no impact. an-mb86r01-trace-rev0-01.doc - 10 - © Fujitsu Microelectronics Europe GmbH...
  • Page 11: Trace Measurement

    /* read and write SRAM */ ulpRegWrite1 = 0x01000000UL; ulpRegWrite2 = 0x01008000UL; i = 0; for( ulpRegWrite1 = 0x01000000UL; ulpRegWrite1 < 0x01008000UL; ulpRegWrite1++,ulpRegWrite2++ ) *ulpRegWrite1 = i++; *ulpRegWrite2 = *ulpRegWrite1; return 0; an-mb86r01-trace-rev0-01.doc - 11 -© Fujitsu Microelectronics Europe GmbHError! Reference source not found.
  • Page 12: Measurement

    Due to this, the trace output is corrupted and it is not possible to reproduce the complete program flow. However if the error is isolated and filters are used, it is possible to trace all data of interest. an-mb86r01-trace-rev0-01.doc - 12 - © Fujitsu Microelectronics Europe GmbH...
  • Page 13: Appendix

    Chapter 7 Appendix 7 Appendix 7.1 Figures Figure 1 Adapter Board......................6 Figure 2 STP to GHS connection ................... 7 an-mb86r01-trace-rev0-01.doc - 13 -© Fujitsu Microelectronics Europe GmbHError! Reference source not found.

Table of Contents