An Introduction to the MPC57xx Nexus Aurora Interface

Similar documents
System Level Instrumentation using the Nexus specification

Nexus Instrumentation architectures and the new Debug Specification

MPC57xx e200zx Core Differences FTF-AUT-F0345

Performance Monitoring for Automotive MCUs

NEXUS 5001 Forum Debug Interface Standard

_ V1.0. Freescale MPC5607B Bolero Mini Target Board. User s Manual. Ordering code

1.1 Non-Robust Connectors

MPC5746R Hardware Design Guide

The Nexus 5001 Forum

The Nexus 5001 Forum Standard for a Global Embedded Processor Debug Interface

_ V1.3. MPC5643L Target Board. User s Manual. Ordering code

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

KIT-V850E2/MN4-TP-H. User s Manual (Rev. 1.01) RealTimeEvaluator

AN4353 Application note

Processor Expert Software RAppID Suite Overview

Programming in the MAXQ environment

_ V1.1. EVB-5566 Evaluation & Development Kit for Freescale PowerPC MPC5566 Microcontroller. User s Manual. Ordering code

The Atmel-ICE Debugger

On-Chip Debugging of Multicore Systems

Universität Dortmund. IO and Peripheral Interfaces

Application Note Debug Cable XC800

SECTION 11 JTAG PORT

Renesas 78K/78K0R/RL78 Family In-Circuit Emulation

Evaluation & Development Kit for Freescale PowerPC MPC5517 Microcontroller

Bolero3M Nexus Emulation Adapter 256BGA 176TQ

1. ONCE Module 2. EBDI. Application Note. AN2327/D Rev. 0, 9/2002. M Core EBDI Interface Application Note

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Qorivva MPC56xx Flash Programming Through Nexus/JTAG Andrew Turner 32-bit Applications Engineering Microcontroller Solutions Group

Board Design Guidelines for PCI Express Architecture

Bolero Nexus Emulation Adapter 208BGA 100TQ

_ V ST STM8 Family On-Chip Emulation. Contents. Technical Notes

Boundary Scan Implementation

Application Note Debug Cable C166

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Nexus Makin Multi- Core Work

TRACE32. Product Overview

EMUL-PPC-PC. Getting Started Guide. Version 1.0

AC/DC. Adapter. Serial. Adapter. Figure 1. Hardware Setup

ARM HSSTP Active Probe

Real-Time Debugging Highly Integrated Embedded Wireless Devices

Incorporating a Capacitive Touch Interface into Your Design

Evaluating SiFive RISC- V Core IP

MPC5775K Hardware Design Guide

A design of real-time image processing platform based on TMS320C6678

S USB-PC Connection (Cable Not Included) S USB Powered (No External Power Supply Required) S Real-Time Data Acquisition Through the USB

Rapid Software Development on 32-Bit Automotive MPC56xx Family of MCUs

DEVKIT-MPC5748G QUICK START GUIDE (QSG) Ultra-Reliable MCUs for Industrial and Automotive Applications. EXTERNAL USE

IEEE JTAG Boundary Scan Standard

_ V1.3. MPC564xB ActiveGT POD. POD Hardware Reference

FPGA Programming Technology

ST SPC58 B Line Emulation Adapter System

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

indart -HCS08 In-Circuit Debugger/Programmer for Freescale HCS08 Family FLASH Devices User s Manual Rev. 2.0

S32R27/37 Hardware Design Guide

Contents. Cortex M On-Chip Emulation. Technical Notes V

Revolutionary Quad-Pipelined Ultra High Performance 16/32-bit Microcontroller v. 6.05

Cortex-M3 Family On-Chip Emulation

TEMIC 51T (Temic) EMULATION

Using Ultra-XD for Synopsys DesignWare ARC Cores with the MetaWare Debugger

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

Table 1. RS232 Serial Adapter DEBUG Connector Pin Descriptions

Interfacing FPGAs with High Speed Memory Devices

Chapter 7 Debugging Support

Qorivva MPC5744P Evaluation Board 144LQFP Expansion Board User s Guide Barbara Johnson Applications Engineering

Boundary Scan. Sungho Kang. Yonsei University

Capacitive Touch Based User Interfaces and Hardware-based Solutions

RTE-V850E/GP1-IE USER'S MANUAL (REV.1.01) RealTimeEvaluator

Leopard Nexus Emulation Adapter 257BGA 144TQ

AC/DC. Adapter. Ribbon. Cable Serial. Serial. Adapter. Figure 1. Hardware Setup using an EC2 Serial Adapter

Multi-Gigabit Transceivers Getting Started with Xilinx s Rocket I/Os

ECE3120: Computer Systems Hardware & Software Development Tools

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

DoCD IP Core. DCD on Chip Debug System v. 6.02

_ V PowerPC 4xx Family On-Chip Emulation. Contents. Technical Notes

Virtex-II Architecture. Virtex II technical, Design Solutions. Active Interconnect Technology (continued)

_ V Renesas R8C In-Circuit Emulation. Contents. Technical Notes

Multicommunication Type Identifying Debugging Probe

PCI / PMC / CPCI / PCI-X Bus Analysis

Typical System Implementation

Modifying Xilinx ML605 for Direct JTAG Access

Multi-Drop LVDS with Virtex-E FPGAs

BOUNDARY-SCAN DFT & LAYOUT PRINCIPLES at BOARD LEVEL

High-Speed Layout Guidelines for Reducing EMI for LVDS SerDes Designs. I.K. Anyiam

Older PC Implementations

Current and Prospective High-speed Measurement Systems

VertiCal System. 1 VertiCal System Overview. Freescale Semiconductor Reference Manual. VERTICALRM Rev. 0, 7/2007

MPC574xP Hardware Design Guide

XC164CS Prototype Board

Virtex-5 GTP Aurora v2.8

Using the MPC5777M MCAN Module to Exchange CAN FD Messages

Module Introduction. This training module provides an overview of Freescale s scalable solutions for low data rate 2.4 GHz connectivity.

ec5554 Microcontroller Module

Chapter 7. Hardware Implementation Tools

KeyStone C665x Multicore SoC

DEVKIT-MPC5744P QUICK START GUIDE (QSG) Ultra-Reliable MCUs for Industrial and Automotive Applications. EXTERNAL USE

Infineon DAP Active Probe

MPC5533 Microcontroller Product Brief

Symbol Parameter Min Typ Max VDD_CORE Core power 0.9V 1.0V 1. 1V. VDD33 JTAG/FLASH power 2.97V 3.3V 3.63V

Transcription:

An Introduction to the MPC57xx Nexus Aurora Interface FTF-AUT-F0344 Randy Dees A P R. 2 0 1 4 TM External Use

Agenda MPC57xx Debug Overview Nexus Aurora Trace Overview Board and Connector Recommendations MPC57xx Emulation Devices MPC57xx Trace Adapters Trace Tool Vendor Support Summary External Use 1

Objective Some of the MPC57xx devices include a high-speed Nexus trace port that is built on the Xilinx Aurora interface This session reviews the following: Introduction to the Automotive Nexus Aurora Trace interface Board-level hardware requirements for the multi-lane 1.25 Gb/s interface, including capabilities for trace information from the MCU An overview of the internal features and construction of the MPC57xx emulation devices An overview of trace adapters available for some devices External Use 2

MPC57xx Debug Overview External Use 3

MPC57xx Debug: Features and Advantages Rich set of debug and calibration features: High speed Nexus trace port via Aurora (1.25 Gbps per lane, 2 or 4 lanes) for high bandwidth trace capability Standard Nexus Client for e200zx cores, edma, and timer subsystems JTAG 1149.1 based debug architecture for run control JTAG 1149.7 support Two-pin interface allows simplified routing and minimized pin count, while keeping all 1149.1 style features Trace to on-chip memory on both the production device and the on the emulation devices for family members that support emulation devices 16K SRAM on the production devices can be used for overlay or trace 1M or 2M overlay RAM when using emulation device that can be partitioned between trace and overlay Sequence Processing Unit Similar to an on-chip logic analyzer triggering, provides advanced debug, watch-point, breakpoint features for static debug or for limiting trace information External Use 4

IEEE-ISTO 5001 Nexus Classes (MPC57xx support) Class 1 Run Time Control Class 2 Dynamic Debug Class 3 Data Trace Class 4 Advanced Debug Start/stop code execution Read/write MCU registers / memory Breakpoints Single step instructions Read Nexus device ID Real-time process/task ownership tracing Trigger a nexus message on an event Real time, non-intrusive instruction trace Real-time access of registers / memory (read/write) Real-time data trace (writes) Optional features supported: Real-time data trace (reads) Data acquisition Watchpoint triggered trace event Message over-run control External Use 5

Nexus Class Definition Class 1 Class 1 Run Time Control Class 2 Dynamic Debug Class 3 Data Trace Class 4 Class 1 Read/write MCU registers / memory Set / clear breakpoints Stop / start code execution Control entry into / exit from debug mode (from reset and user modes) Stop execution on hitting a breakpoint and enter debug mode Single step instructions Read Nexus device ID Advanced Debug External Use 6

Nexus Class Definition Class 2 Class 1 Run Time Control Class 2 Dynamic Debug Class 3 Data Trace Class 4 Advanced Debug Class 2 All Class 1 features plus: Ownership trace messages Real time process / task ownership tracing) Watchpoint messaging Trigger a Nexus message on an event Program trace messages Real-time, non-intrusive instruction trace Optional Features: Port Replacement (of slow GPIO) External Use 7

Nexus Class Definition Class 3 Features that Freescale supports on many automotive devices that support only Class 2 Class 1 Run Time Control Class 2 Dynamic Debug Class 3 Data Trace Class 4 Class 3 All Class 2 features plus: Real time data access Registers / memory can be read/written in real time Real time data trace (WRITES) Optional Features: Real time data trace (READS) Transmission of additional data used for data acquisition Advanced Debug External Use 8

Nexus Class Definition Class 4 Features that Freescale supports on many automotive devices that support only Class 2 or 3 Class 1 Run Time Control Class 2 Dynamic Debug Class 3 Data Trace Class 4 Advanced Debug Class 4 All Class 3 features plus: Watchpoint triggering Allows a watchpoint to trigger trace event Memory substitution MCU can run code from memory in development tool (ROM emulation) Over-run control Allows Nexus to stop core if buffers will overflow Optional Features: Start memory substitution on watchpoint External Use 9

Trace Options Overview MPC55xx, MPC56xx, and some MPC57xx devices No trace capability in the production package (primarily low pin-count packages and devices Trace adapters available to fit production footprint Nexus Parallel Trace port 4 to 16 bits of message data outputs 1 or 2 pin message start/end outputs + Nexus clock MPC57xx extra options on some devices Nexus trace to memory Nexus high speed Aurora trace 2 or 4 lanes External Use 10

Multicore Trace Program, data, and ownership trace, plus watchpoint messaging, and data acquisition provide a multitude of development capabilities Code coverage Do all lines of code get executed? Are all conditional branch paths executed? Execution time Task, function execution times Code profiling What functions are called the most? What functions consume the most time? Task analysis What tasks are run, how often Cache coverage Analysis of program/data caching to optimize performance Core loading What is the loading of each core? Can programs be segregated differently to improve the balance of performance? External Use 11

MPC57xx Nexus Interfaces High-speed Serial Nexus (Aurora) 2/4 Lanes MPC5777M ED MPC5746M ED MPC5746R ED MPC5775K High-speed Serial Nexus (Aurora) + Parallel Nexus 4 MDO/2 Lanes MPC5744P Parallel Nexus Parallel Trace 4-16 MDO MPC5777C MPC574xG/C Serial Nexus Parallel and Serial Nexus Trace to Memory Trace to Memory MPC5777M MPC5746M MPC5746R Trace to memory Trace bandwidth External Use 12

MPC57xx Nexus Parallel and Serial Trace Support Some MPC57xx devices support the both Nexus parallel and serial (Aurora) trace interface All e200 cores on these devices support Class 3+ Trace to memory is not supported Device Nexus parallel trace (Aurora) trace Nexus serial MPC5744P 4 1 2 2 MPC5775K 16 3 4 1. Available in all packages 2. 257 MAPBGA package only 3. Internally, 16 parallel Nexus Message Data Outputs are available, however, these are not available in any of the standard packages. External Use 14

MPC57xx Nexus Serial (only) Trace Support Some MPC57xx devices only support the Nexus serial (Aurora) trace interface on Emulation Devices (ED) All e200 cores on these devices support Class 3+ Trace to memory is also supported Device Nexus serial (Aurora) trace Nexus trace to memory MPC5746M ED 4 1 MB MPC5746R ED 4 1 MB MPC5777M ED 4 2 MB External Use 15

MPC57xx Nexus Trace to Memory Support Some MPC57xx devices only support Nexus trace to memory on the production devices All e200 cores on these devices support Class 3+ These devices also support the Sequence Processing Unit to narrow the scope of information that is traced Device MPC5746M MPC5746R MPC5777M Nexus trace to memory size 16 KB 16 KB 16 KB External Use 16

Nexus Aurora Trace Overview External Use 17

Nexus Trace Overview Nexus uses Message Data Outputs (MDO) and Message Start/End Outputs (MSEO) to transmit trace information from a device to the external word. For a Nexus parallel auxiliary (output) port, there can be 4 to 16 MDO signals and either 1 or 2 MESO signals. Nexus Serial (Aurora-based) trace internally implements 30 MDO signals and 2 MESO signals. The Nexus Aurora interface takes these 32 Nexus signals and formats them into the Aurora high-speed serial protocol for transmitting out of the device. Aurora was developed by Xilinx for taking parallel information and transmitting it over a variable number of serial lanes. The Aurora protocol stripes the data across multiple lanes (LVDS pair). External Use 18

What is Aurora? Aurora Channel Partners Aurora Lane 1 Aurora Channel Nexus Port Controller Trace Data Nexus Aurora Interface Aurora Interface Trace hardware User Interface Software Debugger Aurora Lane 3 Aurora Clock The Aurora Standard A scalable, high-speed serial, link-level interface Common protocol for single and multi lane channels Serial full duplex or serial simplex operation System-synchronous or asynchronous operation Arbitrary data transfers: packets or words Optional flow control & expedited messaging 8B/10B data encoding Freescale Automotive Implementation Simplex Tool synchronous 2 or 4 lanes 625M baud to 1.25G baud per lane 8B/10B data encoding External Use 19

Aurora Protocol Aurora transmits continuous data. If there are no Nexus messages, Idle messages are transmitted Clock Compensation (CC) symbols are transmitted periodically User PDUs are the actual Protocol Data Units (Nexus trace messages) External Use 20

Nexus Aurora PDU (Message Formatting) Nexus messages are formatted as a 30-bit Message Data Output, plus 2 Message Start/End Signals This 32-bit data is consolidated by the Nexus Aurora Router from each of the Nexus clients External Use 21

Aurora Lane Striping Aurora is a protocol for taking parallel data and serializing it over a LVDS connection The Aurora protocol handles dividing the incoming parallel data into different lanes External Use 22

Nexus Aurora Lane Formatting This example shows how the 32-bit Nexus words are striped across multiple lanes Note the lane order is little endian External Use 23

Aurora Transmit Signals (1.25 GHz) Transmit Eye diagram measured at the termination resistor (no stubs) Transmit Eye diagram measured with Freescale Aurora breakout board External Use 24

Nexus Messages Typical start-up showing the Nexus device identification messages External Use 25

Trace Reconstruction Example Blue line is the same point in all windows. Upper left chart view, lower left is the Nexus trace messages, and the right is the reconstructed program flow. External Use 26

Board and Connector Recommendations External Use 27

Aurora Signal Terminations Aurora Input Clock Aurora Data Lanes Debugger terminations typically included on chip (e.g. Xilinx FPGA) MCU input decoupling capacitors should be located close to device External Use 28

Nexus Aurora Layout Guidelines Care should be taken when laying out the Nexus Aurora signals on the printed circuit board. Connector placement Even side parallel to the edge of the board. Odd side nearest to the MCU. Printed circuit board Controlled impedance highly recommennded Routing Route LVDS pairs parallel to and near each other. Use 2 vias maximum. Keep-out areas Tools may have a specific keepout area requirement Signal return path Nexus Aurora signals should be placed 1 dielectric away from a solid ground Routing All transmit pairs should be approximately the same length. Clock can be a different length than the transmit signals. Keep necking to less than 0.1 inch to avoid discontinuities. External Use 29

MPC57xx Nexus Connector Definition Position Signal Pin Number Pin Number Signal Nexus signal name GND Latch GND 1 TX0+ 1 2 VREF VREF 2 TX0-3 4 TCK TCK 3 GND 5 6 TMS TMS 4 TX1+ 7 8 TDI TDI 5 TX1-9 10 TDO TDO 6 GND 11 12 JCOMP TRST 7 TX2+ 13 14 EVTI1 GEN_IO0 8 TX2-15 16 EVTI(0) EVTI 9 GND 17 18 EVTO(0) EVTO 190 TX3+ 19 20 RSTOUT GEN_IO3 11 TX3-21 22 RESET RESET 12 GND 23 24 GND GND 13 (TX4+) 25 26 CLK+ CLK+ 14 (TX4-) 27 28 CLK- CLK- 15 GND 29 30 GND GND 16 (TX5+) 31 32 EVT01/RDY RDY Samtec ASP-137973-01 17 (TX5-) 33 34 WDT GEN_IO5 GND Latch GND External Use 30

Emulation Devices External Use 31

Emulation Device Some devices will support an emulation device that includes the production die plus a companion (buddy) die The buddy die (BD) includes JTAG Interface 1 to 2 MB of calibration/overlay SRAM (can be divided) Nexus Aurora physical interface Nexus read/write client for the buddy SRAM (BD is accessible when power to the PD is off) Data write processing unit (some devices) for filtering data trace messages Advantages Actual production die is used so the functionality is the same Lower production device cost Supports large on-chip SRAM for trace or calibration overlay (1MB - 2 MB) High-speed physical trace interface Separate power supply for loading calibration memory with production die powered off Disadvantages No physical trace interface on production device to tools Limited on-chip trace capability for production device (16K) External Use 32

JTAG Access of Debug Resources IEEE 1149.1 or IEEE 1149.7 DWPU 0x39 Control of the JTAG interface is passed from the top level JTAG controller (in the Debug and Calibration Interface) to other JTAG clients with ACCES_AUX commands Note: the PAUSE- DR/UPDATE-DR always returns the control of the JTAG TAP to the top level JTAG controller IDCODE of both DCI/JTAGC modules can be read to determine the exact device and emulation device MPC5746M Emulation Device shown External Use 33

Nexus Trace Message Flow MPC5746M Emulation Device shown External Use 34

MPC5746M Emulation Device Active pad Active logic Alu layer BD Buddy Device Copper pillar PD Production die Bond wire Logic on the buddy connects directly to logic on PD Active pad on buddy connects to bond wire without production silicon External Use 35

Copper Pillar, Chip-on-Chip Package Construction Molding compound Substrate Underfill die 2 die 1 Cu pillars Wire Die attach die 2 die 1 Cu pillar 2 solder Cu pillar 1 External Use 36

Trace Adapters External Use 37

MPC57xx Trace Adapters For some products, Freescale will make trace adapters available These trace adapters give access to the debug pins (JTAG and the Nexus trace pins), but fit onto a smaller footprint package. These were available for some of the MPC560xB products and will be available for some of the MPC57xx devices including the MPC57446R. The MPC5746R trace adapter will adapt the 292 MAPBGA package to the 252 MAPBGA or 176 LQFP packages footprint in the target system. This is shown below. Trace Adapter support MPC5746R MPC574xG Footprints 1144 QFP, 176 QFP, 252 BGA MPC5746M 176 (216) QFP, 292 BGA MPC5777M 416 BGA, 516 BGA External Use 38

MPC5746R 252MAPBGA Trace Adapter Concept 292 MAPBGA package mapped into a 252 BGA footprint External Use 39

Standard JTAG Connector (modified for new future signals) Based primarily on the existing MPC55xx/MPC56xx 14-pin JTAG connector. JTAG Function Direction (from MCU) Pin Pin Direction (from MCU) TDI In 1 2 - GND TDO Out 3 4 - GND TCK (TCKC) In 5 6 - GND JTAG Function /EVT 1 In/Out 7 8 In /PORST 2 /RESET or /ESR0 In/Out 9 10 In/Out TMS (TMSC) VREF - 11 12 - GND /RDY (EVT) 3 Out (In) 13 14 In JCOMP 1. Previously this was /EVTI, now EVTI or EVTO (EVTI preferred, programmable on some devices) 2. Previously this pin was a no connect on the MPC55xx and MPC56xx devices 3. RDY not available on all devices, use for alternate EVT (EVTO [preferred], EVTI1, EVTO1) signal External Use 40

Tool Vendor Support External Use 41

Current Nexus Aurora Tool Support The new high-speed Nexus Aurora physical interface is supported by several of the most popular tool vendors. Nexus Aurora trace Trace to memory supported SPU support External Use 42

Summary External Use 43

FTF Resources There are many sessions at FTF that may be useful to attendees, some of these are listed below. Session ID Title When FTF-AUT-F0240 FTF-AUT-F0338 Unleash the Power of Qorivva MPC57xx 32-bit MCUs Using the Inter-Processor Communication (IPC) Interface Hands-On Workshop: Performance Optimization Hints and Tips for Power Architecture (Reserved Seat Required) Thursday 3:00 PM Tuesday 1:00 PM FTF-AUT-F0345 MPC57xx e200zx Core Differences Wednesday 11:30 AM FTF-AUT-F0239 Advanced Debug Features of the Qorivva MPC57xx 32-bit MCUs Thursday 4:15 PM External Use 44

Web Resources Application Notes AN4591: Lauterbach MPC57xx Nexus Trace tools AN4566: MPC5746M Hardware Design Guide AN4802: Qorivva MPC57xx e200zx Core Differences Evaluation Board Documentation MPC5744PEEVB257UG - Qorivva MPC5744P Evaluation Board 257BGA Expansion User s Guide MPC5746M EVB User s Guide Device Reference Manuals MPC5744P Microcontroller Reference Manual External Use 45

Summary Many of the devices in the MPC57xx family of automotive microcontrollers support a new highspeed Nexus Aurora trace interface that allows advanced program and data trace External Use 46

www.freescale.com 2014 Freescale Semiconductor, Inc. External Use

Power Architecture Tool Vendor Support Debugger Support Compilers Calibration External Use 48

MPC57xxM Trace Block Diagram 1.25 GHz clock from external debug tool to MCU 1.25 Gbits/sec Aurora trace lanes from MCU to debug tool External Use 50

Nexus Aurora Router Based Nexus interface used on the P4080 with additional capability JTAG access to NAR registers Allows trace to physical port (Aurora) or to on-chip memory 16K trace memory built into the Flash on production device Up to 2M trace memory in buddy die Buddy die SRAM can be split between trace and calibration, 4 separate blocks On the PD NAR, the output queue can trace either 100% to flash trace RAM or100% to BD NAR BD NAR can split the output queue to 50/50 between the trace RAM and the Aurora output External Use 51

Nexus Aurora Link (NAL) Reused from P4080 Formats the information from the NAR and stripes it into multiple lanes for the NAP Supports 2 to 8 lanes of Aurora data Encoding is 8B/10B encoding CRC not available on NPC version of this module External Use 52

Nexus Aurora Physical Interface Low Voltage Differential Signaling (LVDS) Xilinx Aurora Protocol V2.x Compliant Configurable up to 8 lanes, currently only a maximum of 4 are planned Maximum data rate is 3 Gb/s Clock provided by tool (625 MHz to 1.25 GHz maximum) External Use 53

Aurora Training Sequence Capture Training sequence SYNC and polarity Sync and polarity acknowledge Bonding (on idle symbols) Verification Start of channel (protocol data units) External Use 54

Aurora Training Sequence Current implementation for automotive is 2 or 4 lanes Training sequence transmitted to establish initial link When Nexus data is not available, the IDLE sequence is transmitted Nexus data can be framed with a CRC added CRC seed is 0 at the beginning of each frame External Use 55

www.freescale.com 2014 Freescale Semiconductor, Inc. External Use