TRACE APPLICATION NOTE VERSION MB86R0X 'JADE' SERIES DEVICES & GREENHILLS TOOLCHAIN. Fujitsu Microelectronics Europe Application Note

Similar documents
Fujitsu Semiconductor Europe User Manual. FSEUGCC-UM_SK-86R12-CPU01_Rev1.1 EMERALD-P CPU MODULE SK-86R12-CPU01 USERGUIDE

F²MC-8L FAMILY MB89201 SERIES FLASH PROGRAMMING 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

GRAPHICS CONTROLLERS SPRITE ENGINE PERFORMANCE MB88F332 'INDIGO' MB88F333 'INDIGO-L' APPLICATION NOTE GRAPHICS COMPETENCE CENTER

Fujitsu Microelectronics Europe Application Note MCU-AN E-V12 F²MC-16FX FAMILY 16-BIT MICROCONTROLLER ALL SERIES CLOCK OUTPUT APPLICATION NOTE

MB90F3XX/F4XX/F5XX/F8XX/F9XX

F²MC-16FX FAMILY ALL SERIES FLASH SECURITY 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

16-Bit Emulator Setup for MB2141 and MB

F²MC-8FX FAMILY MB951XX SERIES SYNCHRONOUS FLASH PROGRAMMING 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F²MC-8FX FAMILY MB95100 SERIES EMULATOR HW SETUP 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

FR FAMILY FR60 FAMILY ISR DOUBLE EXECUTION 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

EMULATOR SETUP MB BIT COMPACT-ICE

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 FR FAMILY 32-BIT MICROCONTROLLER MB91460 REAL TIME CLOCK APPLICATION NOTE

F²MC-16LX FAMILY MB90XXX RELOCATED INTERRUPT VECTOR TABLE 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

CPU369-Module Documentation. Fujitsu Microelectronics Europe GmbH Am Siebenstein Dreieich-Buchschlag, Germany

F²MC-16LX FAMILY MB90F897 DUAL OPERATION FLASH 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Application Note. Startup DevKit16. History 19 th June 00 TKa V1.0 started 20 th June 00 TKa V1.1 Some minor text corrections

F2MC MB90385 series Evaluation Board Documentation. Revision Date Comment V New document

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 F²MC-FR FAMILY 32-BIT MICROCONTROLLER MB91460 RELOAD TIMER APPLICATION NOTE

Emulator Setup Instructions for MB91360

The Bootconcept. of Fujitsu s MB91360 Devices

APIX AUTOMOTIVE SHELL SW-EMULATION USE CASE

Errata Sheet MB86296 Coral PA

EMULATOR SYSTEM MB

Application Note. EMC Design Guide. F 2 MC-8L Family. History 04 th Jul 02 NFL V1.0 new version

The following document contains information on Cypress products.

FR FAMILY MB91460 SERIES MB91461 EMULATION 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

FAQ list for MB86290 Cremson

Software Porting Access Library V02 to V03

JASMINE- Subboard Documentation. Fujitsu Microelectronics Europe GmbH Am Siebenstein Dreieich-Buchschlag, Germany

GRAPHICS CONTROLLERS DEVICE SETUP AND FUJITSU DEVELOPER SUITE

F²MC-16FX FAMILY ALL SERIES STANDBY MODES & POWER MANAGEMENT 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Application Note. Connecting standard LCD modules to. the MB90670/5 series. History 01 th Feb. 97 MM V1.0 started 28 th June 00 TKa V1.

SPI COMMUNICATION TO/FROM SERIAL EEPROM

Fujitsu Semiconductor Europe Application Note. an-mb86r12-apixprbs-rev0-20 MB86R12 EMERALD-P REV 0.2 APIX PRBS APPLICATION NOTE

MB88F334 Indigo2 MB88F335 Indigo2-S MB88F336 Indigo2-N

Fujitsu Semiconductor Europe User Manual. FSEUGCC-UM_SK-88F336-01_Rev1.0 INDIGO2-N STARTERKIT SK-88F USER MANUAL

Application Note APIX PRBS

Tutorial. How to use Keil µvision with Spansion templates Spansion Inc.

SC2000 Smart Kit Selection Checklist

GRAPHICS CONTROLLERS APIX PCB-DESIGN GUIDELINE

FR FAMILY SK MAIN V1.2 EVALUATION BOARD USER GUIDE. Fujitsu Microelectronics Europe User Guide FMEMCU-UG

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 FR FAMILY 32-BIT MICROCONTROLLER MB91460 EDSU/MPU APPLICATION NOTE

Fujitsu Microelectronics Europe Application Note MCU-AN E-V13 FR FAMILY 32-BIT MICROCONTROLLER MB91460 SWB MONITOR DEBUGGER APPLICATION NOTE

STARTERKIT SK-86R03 'JADE-L' USERS GUIDE

MB86297A Carmine PCB Design Guide

GRAPHICS CONTROLLERS

Errata Sheet MB86298 'Ruby'

F²MC-16FX FAMILY MB96340 KEY MATRIX INTERFACE USING I/O PORT 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F²MC-16LX/FRLITE FAMILY COMPARISON OF MB90340 AND MB91270 SERIES MCU

End User License Agreement

F²MC-8L/16LX/FR FAMILY ALL SERIES GALEP-4 8/16/32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F²MC-8L/16LX/16FX/FR FAMILY

Fujitsu Microelectronics Europe User Guide FMEMCU-SG MB88121 SERIES MB91460 SERIES EVALUATION BOARD SK-91F467-FLEXRAY SOFTWARE GUIDE

1.2. MCU64 Board User Guide. Development tools for 16LX Family FUJITSU MICROELECTRONICS EUROPE. Version

Fujitsu Semiconductor Europe User Manual. FSEUGCC-UM_MB86R11_Rev1.4 EMERALD-L EVALUATION BASE BOARD SK-86R11-BASE USERGUIDE

Fujitsu Microelectronics Europe Application Note MCU-AN E-V12 FR FAMILY 32-BIT MICROCONTROLLER MB91265 SERIES 16-BIT MAC UNIT APPLICATION NOTE

FME FR FLASHPROGRAMMER

PATGuard Time Manager 2

FR30 example interface to external Flash Memory

PCMCIA Flash Card User Guide

AhnLab Software License Agreement

Hardware Documentation

FlukeView. Users Manual. Software for ScopeMeter Test Tools

GRAPHICS CONTROLLERS

TN0132 Technical note

Manual NEWBASE WebShot 1.4. Copyright by NEWBASE GmbH, Hamburg, Germany

Secure Com Port Redirector User Guide

User Manual. Atlona HDMI CAT5 Receiver to be used with AT-HD19SS or AT-HD50SS [Long Range] AT-HDRS

Release Information. Revision History. Version: build 018 Release Date: 23 rd November 2011

SonicWALL CDP 2.1 Agent Tool User's Guide

Atlona 1 by 4 HDMI Distribution Amplifier

P O W E R S U P P L Y M A N U A L

LAMP CONTROL AND MONITOR WITH PPG AND ADC

IPNexus Server Secure Instant Messaging & Integrated Collaboration

AN10955 Full-duplex software UART for LPC111x and LPC13xx

VAR-EXT-CB8 Datasheet Camera Extension Board for VAR-DT8MCustomBoard & SPEAR-MX8CustomBoard V 1.x

Ludlum Lumic Data Logger Software Manual Version 1.1.xx

GPRS Data Logger. [AC Power & UPS] Version 6. Setup Software Guide GS828H / H2 / HX. [Windows XP/Vista/7] Revision [Ver. 3.1.

ssj1708 User s Manual Version 1.3 Revised February 2nd, 2009 Created by the J1708 Experts

EASON TECHNOLOGY. IO8 & IO24 Break-Out Module

FR FAMILY MB91460 SERIES FLASH PROGRAMMING 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

AN LPC82x Touch Solution Quick Start Guide. Document information. Keywords

Trimble S6 and SPS700 Total Station Firmware

If the firmware version indicated is earlier than the "Version 1.06", please update the unit s firmware.

CIKA DEVKIT35P Quick Start Guide

Multipoint Temperature NET Data Logger

Shimadzu LabSolutions Connector Plugin

CX Recorder. User Guide. Version 1.0 February 8, Copyright 2010 SENSR LLC. All Rights Reserved. R V1.0

How to use the NTAG I²C plus for bidirectional communication. Rev June

Customer Support: For more information or support, please visit or at Product Release Information...

AN NTAG I²C plus memory configuration options. Application note COMPANY PUBLIC. Rev June Document information

Using LPC11Axx EEPROM (with IAP)

Smart Card Bridge to Full-Speed USB, SPI, and UART Interfaces

SensView User Guide. Version 1.0 February 8, Copyright 2010 SENSR LLC. All Rights Reserved. R V1.0

EVB-USB82640 Evaluation Board Revision A User Manual

EDBG. Description. Programmers and Debuggers USER GUIDE

Upgrading BMDM and BMRG Software and MPM, BDS and DCM Firmware

FAQ list for Coral. Fujitsu Microelectronics Europe GmbH

over HDBaseT w/poe, IR & RS-232C

Piccola Smart Box Member of Modul MAS family

Transcription:

Fujitsu Microelectronics Europe Application Note an-mb86r0x-trace-rev0-02.doc TRACE MB86R0X 'JADE' SERIES DEVICES & GREENHILLS TOOLCHAIN APPLICATION NOTE VERSION 0.02 21.05.2010

Revision History Revision History Date 09/15/2008 0.1 tk First draft 05/21/2010 RS232 setting added Issue an-mb86r0x-trace-rev0-01.doc - 2 - Fujitsu Semiconductor Europe GmbH

Warranty and Disclaimer Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Semiconductor Europe GmbH restricts its warranties and its liability for all products delivered free of charge (eg. software include or header files, application examples, target boards, evaluation boards, engineering samples of IC s etc.), its performance and any consequential damages, on the use of the Product in accordance with (i) the terms of the License Agreement and the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials. In addition, to the maximum extent permitted by applicable law, Fujitsu Semiconductor Europe GmbH disclaims all warranties and liabilities for the performance of the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling. Note, all these products are intended and must only be used in an evaluation laboratory environment. 1. Fujitsu Semiconductor Europe GmbH warrants that the Product will perform substantially in accordance with the accompanying written materials for a period of 90 days form the date of receipt by the customer. Concerning the hardware components of the Product, Fujitsu Semiconductor Europe GmbH warrants that the Product will be free from defects in material and workmanship under use and service as specified in the accompanying written materials for a duration of 1 year from the date of receipt by the customer. 2. Should a Product turn out to be defect, Fujitsu Semiconductor Europe GmbH s entire liability and the customer s exclusive remedy shall be, at Fujitsu Semiconductor Europe GmbH s sole discretion, either return of the purchase price and the license fee, or replacement of the Product or parts thereof, if the Product is returned to Fujitsu Semiconductor Europe GmbH in original packing and without further defects resulting from the customer s use or the transport. However, this warranty is excluded if the defect has resulted from an accident not attributable to Fujitsu Semiconductor Europe GmbH, or abuse or misapplication attributable to the customer or any other third party not relating to Fujitsu Semiconductor Europe GmbH. 3. To the maximum extent permitted by applicable law Fujitsu Semiconductor Europe GmbH disclaims all other warranties, whether expressed or implied, in particular, but not limited to, warranties of merchantability and fitness for a particular purpose for which the Product is not designated. 4. To the maximum extent permitted by applicable law, Fujitsu Semiconductor Europe GmbH s and its suppliers liability is restricted to intention and gross negligence. NO LIABILITY FOR CONSEQUENTIAL DAMAGES To the maximum extent permitted by applicable law, in no event shall Fujitsu Semiconductor Europe GmbH and its suppliers be liable for any damages whatsoever (including but without limitation, consequential and/or indirect damages for personal injury, assets of substantial value, loss of profits, interruption of business operation, loss of information, or any other monetary or pecuniary loss) arising from the use of the Product. Should one of the above stipulations be or become invalid and/or unenforceable, the remaining stipulations shall stay in full effect an-mb86r0x-trace-rev0-01.doc - 3 - Fujitsu Semiconductor Europe GmbH

Contents Contents REVISION HISTORY... 2 WARRANTY AND DISCLAIMER... 3 CONTENTS... 4 1 TRACE OVERVIEW... 5 1.1 Trace cell information... 5 1.2 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 6.1 System configuration... 11 6.2 Test program... 11 6.3 Measurement... 12 6.4 Interpretation... 12 7 APPENDIX... 13 7.1 Figures... 13 an-mb86r0x-trace-rev0-01.doc - 4 - Fujitsu Semiconductor Europe GmbH

Chapter 1 Trace Overview 1 Trace Overview The MB86R0x devices have 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. 1.1 Trace cell information ETM name Architecture version Data width FIFO size CoreSight ETM9 ETMv3.2 4 Bit 60 bytes 1.2 Further information Further information can be found on the ARM website http://www.arm.com/documentation/trace_debug/index.html The following documents are about the ETM cell: CoreSight ETM9 r0p0 Technical Reference Manual (DDI0315A) ETM9 Revision r2p2 Technical Reference Manual (DDI0157F) Embedded Trace Macrocell Architecture Specification (IHI0014N) CoreSight System Design Guide (DGI0012A) CoreSight ETM9 Benchmarking (PR127-PRDC-006870 2.1, not publically available, requires an NDA with ARM) an-mb86r0x-trace-rev0-01.doc - 5 - Fujitsu Semiconductor Europe GmbH

Chapter 2 MB86R01 Evaluation Board to GHS adapter 2 MB86R01 Evaluation Board to GHS adapter The Jade Evaluation Board is populated with a 20 pin JTAG and a separate 10 pin Trace connector. 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-mb86r0x-trace-rev0-01.doc - 6 - Fujitsu Semiconductor Europe GmbH

Chapter 3 Trace Connection 3 Trace Connection The following figure shows the connection between the Jade Evaluation Board, the adapter board and the 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-mb86r0x-trace-rev0-01.doc - 7 - Fujitsu Semiconductor Europe GmbH

Chapter 4 Trace startup procedure 4 Trace startup procedure The following steps are necessary to configure and enable the trace functionality: 1. Establish a serial connection between the STP hardware and the PC. 2. Start a terminal program on your PC. The baud rate is 9600, 8 bit data, no parity and 1 stop bit. 3. Power up Super Trace Probe (STP) 4. Power up the Jade Evaluation Board 5. Configure STP (must only be done when you start the STP for the first time) set etm_version 3 Note: clock <= 6 Mhz 6. Start the Multi Debugger 7. Connect to the target Note: The ETM clock is now running and the tracing LED is on 8. Reset the target 9. Download the program to the target an-mb86r0x-trace-rev0-01.doc - 8 - Fujitsu Semiconductor Europe GmbH

Chapter 5 Trace configuration 5 Trace configuration The trace data bit width directly effects the trace performance. Because of the limited number of (four) data bits, the required trace data volume can overflow. As a result, the user will lose some trace data. The user can avoid a FIFO overflow by disabling either the instruction or the data trace. This can be done in the GHS application. The trace cell can be configured within the GHS Debugger. Select TimeMachine- >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-mb86r0x-trace-rev0-01.doc - 9 - Fujitsu Semiconductor Europe GmbH

Chapter 5 Trace configuration Cycle Accurate Enables ETM cycle accurate mode. The ETM normally outputs one trace packet every cycle when trace is enabled. Often many of these packets contain no useful information and can be discarded by the trace collection device. When this option is enabled, no packets will be discarded. This allows the trace tools to determine the number of cycles spent executing each instruction, but requires extra space in the trace buffer. Use Timestamps Enables timestamps. When timestamps are enabled, the trace collection device records a timestamp with each packet. Timestamps are displayed in the Trace List and are used by the Profile window, PathAnalyzer, and EventAnalyzer. Prevent Overflow by Suppressing Data Trace Enables the ETM FIFOFull mechanism. The amount of data output by the ETM varies depending on the code being executed and the trace configuration. Code with a large number of indirect branches and data accesses (if data trace is enabled) may generate so much data that the ETM FIFO overflows. Trace data is lost when this happens. If this option is enabled, the ETM attempts to prevent FIFO overflows by using the selected method: Suppressing Data Trace Suppresses data trace when the 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-mb86r0x-trace-rev0-01.doc - 10 - Fujitsu Semiconductor Europe GmbH

Chapter 6 Trace measurement 6 Trace measurement To evaluate the trace capability, FME made various measurements using different options. The test configuration and the results can be found in this chapter. 6.1 System configuration Multi v5.0.5 STP Green Hills Probe v3.3, Firmware built Apr 10 2008 Trace clock 82.69 Mhz (JTAG) clock 5 Mhz 6.2 Test program int main (void) { /* temporary storage */ int i; volatile unsigned long * ulpregwrite1; volatile unsigned long * ulpregwrite2; volatile unsigned long ulreg; printf("trace Measurement running!\n"); /* read and write DDR-RAM */ ulpregwrite1 = 0x47000000UL; for( i = 0x46000000; i < 0x46001000; i+=4) { ulreg = *(volatile unsigned long*)i; *ulpregwrite1 = ulreg; ulpregwrite1++; } /* read and write SRAM */ ulpregwrite1 = 0x01000000UL; ulpregwrite2 = 0x01008000UL; i = 0; for( ulpregwrite1 = 0x01000000UL; ulpregwrite1 < 0x01008000UL; ulpregwrite1++,ulpregwrite2++ ) { *ulpregwrite1 = i++; *ulpregwrite2 = *ulpregwrite1; } } return 0; an-mb86r0x-trace-rev0-01.doc - 11 - Fujitsu Semiconductor Europe GmbH

Chapter 6 Trace measurement 6.3 Measurement FME ran the same program several times with different trace options. The results of this are shown in the table below. Data Capture Cycle Accurate Use Timestamps Prevent Overflow Error* Unknown opcode* PC only enabled enabled enabled 2 7 PC only enabled disabled enabled 0 6 PC only enabled disabled disabled 0 7 PC only disabled enabled disabled 0 0 PC only disabled enabled enabled 0 0 PC only disabled disabled disabled 0 0 Data only enabled enabled enabled 0 36 Data only disabled enabled enabled 0 5 Data only disabled disabled enabled 0 5 Data only disabled disabled enabled 0 4 Data only disabled disabled disabled 0 4 Address only enabled enabled enabled 0 7 Address only enabled disabled enabled 0 6 Address only enabled disabled disabled 0 10 Address only disabled disabled enabled 0 4 Address only disabled disabled disabled 0 4 Address and Data enabled enabled enabled 3 1 Address and Data enabled disabled enabled 150 0 0 80** 30 0 0 16 Address and Data disabled enabled enabled 55 63 61 56 0 12 147 14 Address and Data disabled disabled enabled 55 51 56 11 10 11 Address and Data disabled disabled disabled 50 51 0 10 * These are some example trace messages Error: Error: Trace is not byte aligned. Trace data is corrupt. Error: Trace is no longer synchronized. Resynchronizing. Error: Unexpected Out of Order data. Unknown: Unknown opcode at address 0x40001c18 ** x x x are different trace capture passes 6.4 Interpretation As already mentioned, the trace performance depends heavily on the trace data width. With 4 bit only the PC (program counter) can be traced reliably. Otherwise the internal FIFO overflows and data is lost. 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-mb86r0x-trace-rev0-01.doc - 12 - Fujitsu Semiconductor Europe GmbH

Chapter 7 Appendix 7 Appendix 7.1 Figures Figure 1 Adapter Board... 6 Figure 2 STP to GHS connection... 7 an-mb86r0x-trace-rev0-01.doc - 13 - Fujitsu Semiconductor Europe GmbH