SlideShare a Scribd company logo
How MIPI Debug
Specifications Help Me
to Develop System SW
Norbert Schulz
Intel Corporation
Contents
•  MIPI Alliance Debug WG Focus
•  Good Debug Practices
•  Example Use Case: Form Factor SW/FW tracing
•  MIPI SyS-T Messaging (Trace creation)
•  MIPI STPSM/ MIPI TWPSM data protocols (Trace arbitration)
•  MIPI NIDnTSM (Trace export)
•  Summary
2
MIPI Alliance Debug Workgroup Focus
•  Enabling best system debug support in all stages of the
Mobile and Mobile Influenced equipment:
•  Low cost solutions
•  Interoperability between tooling and devices by defining debug standards.
•  The targeted interfaces are hardware and software interfaces interacting with
or supporting system debug.
•  Leveraging functional interfaces to increase debug visibility in fielded
systems
•  MIPI Alliance Debug Specification Scopes
•  Physical interfaces for Debug/Trace
•  Midlevel protocols for trace data transfer
•  SW Trace instrumentation
3
Non-standard	or	proprietary	solu1on	in	Debug		
leads	to	increasing	development	cost	and	extended	-me	to	market.
Good Practices for Debug
•  Make debug a platform capability
•  Understand that debug is a customer visible feature
•  Scale debug support with platform complexity
•  Support Hardware/Software co-debug
•  Avoid IP-block specialized solutions by
•  Aligning trace message formats
•  Unifying data capture methods (debug port and probes)
•  Using debug/analysis tools supporting platform scope
•  Using a shared time base to reconstruct historical message order
•  Support closed-chassis / retail build debug
•  Re-use of functional interfaces or their pins in form factor devices
•  Have a runtime method to configure debug
•  Enable / Disable of individual trace sources
•  Trace verbosity control to meet bandwidth / trace audience constraints
•  Retail build / field testing support
4
Example Use Case: Form Factor SW Tracing
•  Capture platform boot logs from a tablet
•  No dedicated debug port, reuses functional USB port for capture
•  Messages originating from different areas
•  Boot controller
•  UEFI BIOS
•  Using MIPI specifications for
•  Trace generation
•  Trace Arbitration
•  Trace Export
•  2 machine Demo Setup
•  Target System (TS)
•  Debug and Test System (DTS)
5
Target	System	(TS)	
Form	Factor	Device	
Debug	and	Test	
System	(DTS)	
USB	Connector	pin	
capture	probe
MIPI Specification Based Solution Overview
6
Merged	and	
-mestamped	message	
fragments		
CPU	
Core	
CPU	
Core	
CPU	
Core	
CPU	
Core	
Boot	Controller	 Trace	Arbiter	
Instrumenta-on	Interconnect	
OS	
Apps	
Blocks	
SyS-T	
UEFI	
SyS-T	
SyS-T	
SyS-T	
Debug		
Clock	
STP	
USB	Connector	
PIN	
Manager	
Debug	
Interface	
USB	
Func-on	
NIDnT	
Trace	Genera-on	 Trace	Arbitra-on	 Trace	Export	
TWP	
Other	Func-onal		
Blocks	
Other	
SW/HW	
Specifica-on	support	for	all	phases	of	TS	debug	data	processing	
other	data	
MIPI	
Specifica-on
Complete Specifications Overview
7
SyS-T - System Software Trace
•  SyS-T defines a SW tracing
methodology
•  Addresses missing standard for SW tracing
•  Only major OS have established vendor specific
methods
•  But SW is running in most IP blocks today
•  Embedded System friendly
•  Build, Target and Debug system distinction
•  Bandwidth reduction by using DTS collateral for
decode
•  SyS-T includes
•  A SW instrumentation API
•  A data protocol for text and binary data
•  A XML decode collateral definition
•  Open Source reference code planned
•  New MIPI Specification for SW tracing
•  1.0 Release planned Q2’2017
8
Build	Machine	
Debug	and	Test	
System	(DTS)	
Target	System	
(TS)	
Compiled	
SoOware	
SyS-T	API	
SyS-T	
Encoder	
SyS-T	
Trace	
data	
SW	Build	
SyS-T	
Decode	Collateral	
SyS-T	
Decoder	
Trace	Data	Viewer	
SyS-T	Standard	
Reference	code	
Instrumented		
Source	code	
Collateral	
creator	
Vendor	independent	and	scalable	SW	tracing	method
SyS-T - SW Instrumentation
•  Reference code for C-Language
•  Only 1 header needed (mipi_syst.h)
•  Instrumentation calls are C-Macros
•  API‘s for
•  Text and binary messages
•  C99 style printf() support
•  Optional features (crc32 checksums,
time stamps ...)
•  IO-Channel concept
•  Support for multi-channel output
protocols
•  Multi-threaded output without locking
•  Trace Viewer Tool Result
•  1 SyS-T call turns into 1 trace
message
•  Parameters turn into message fields
•  Automatic time stamping
9
Create/destroy		trace	
channel	
Message	crea-ng	Macros	
SW	executed	on	TS	
Decoding	result	
on	DTS
SyS-T	
Decode	Collateral	
SyS-T - Advanced Features
•  Bandwidth optimized printf()
•  Sends only numeric ID and
parameters
•  Format string stored in DTS
collateral, not in compiled code
•  Reduces space and bandwidth
need
•  24 byte string replaced with 4 byte
catalog ID in shown example
•  Protocol Tunneling
•  Raw data write over SyS-T
•  Example: Embed a kernel core dump
image into trace stream
•  Embedded Source Positions
•  “Jump-to” instrumentation source
code of a message
10
SyS-T	
Decoder	
Catalog	parsing	...	
Compiled	pseudo-code	:	
trc_out(catalog_hdr)
trc_out(0x1234)
trc_out(42)
<Message ID="0x1234“
File=“hello.c" Line=“3">
The meaning of life: %d
</Message>
Trace Data Stream
Output:	„The	meaning	of	life:	42“	
Ask	for	ID=0x1234	
Receive	catalog	
message	data	
Compiling	...
STP - System Trace Protocol
•  Robust trace data transport protocol
•  Multiple trace data stream merging based on Master/Channel concept
•  Up to 65536 Masters and up to 65536 Channels per Master
•  Solves the problem of interrupt code tracing
•  Channel switching avoids locking to make single message contiguous
•  Provides common trace features
•  Time stamping and correlation
•  Message boundary marks and sync
•  Transport data integrity and error indication
•  Specification Status
•  Currently at version 2.2, initial version 2006
•  Adoption Examples
•  Hardware IP
•  ARM® CoreSightTM, Intel® Trace Hub, etc.
•  SW Tools Support
•  ARM® DS-5, ASSET InterTech SourcePointTM,
Intel® System Studio, Lauterbach, etc.
11
Low	overhead	and	real	1me	system	friendly	trace	protocol	providing	common	features	
*	ARM	is	a	registered	trademark	of	ARM	Limited	(or	its	subsidiaries)	in	the	EU	and/or	elsewhere.		CoreSight	is	a	trademark	of	ARM	Limited	(or	its	subsidiaries)	in	the	EU	and/or	elsewhere.	Intel	and	the		
			Intel	logo	are	trademarks	of	Intel	CorporaCon	or	its	subsidiaries	in	the	U.S.	and/or	other	countries.		SourcePoint	is	a	trademark	of	ASSET	InterTech.			
Low	overhead	4-Bit	
encoding	
Master/Channeel	
context	
Data	for	Master/Channel	
combina-on			3:4
TWP – Trace Wrapper Protocol
•  Low level data merging protocol
•  Combines up to 111 independent data streams identified by numeric ID
•  16 Bytes data/ID packed frame structure
•  Support for continuous data export to PIN interfaces
•  Specification Status: Released 2010,Current version 1.1
•  TWP vs. STP Protocols
•  TWP enables sharing of an output between different STP or other data streams
•  TWP is data frame, STP is trace stream oriented
•  Specifications are complementary, system may or may not use both of them
12
TWP	Data	Frame	16	Byte	Frame:	
Efficient	data	stream	merging	for	expor1ng	to	pin	interfaces
NIDnT – Narrow Interface for Debug and Test
•  Reuse functional interfaces for
debug and test
•  Form Factor device support
•  No dedicated debug connectors available
•  Low pin count support
•  USB Type-CTM Receptacle
•  USB 2.0 Micro-B/-AB Receptacle
•  HDMI/DisplayPort Interface
•  micro-SD Card Slot
•  NIDnT defines
•  Switching methods between original
function and debug/test.
•  Pin assignments
•  Available since 2013
•  Current version 1.1
13
Dedicated	debug	port,	
Not	available	on		a	form	
factor	device	
NIDnT	func-onal	port	pin	
switching	infrastructur	
*	USB	Type-C	is	a	trademark	of	the	USB-IF.	
Low	cost	pla`orm	debug	data	access	including	form	factor	device	support		
Device	
Func-onal	port
NIDnT Support for USB Type-C
•  Version 1.1 adds USB Type-C receptacle support for
TS
•  NIDnT defines unique Alternate Mode for debug
overlays
•  Uses USB PD structured Vendor Defined Messages
•  To enter NIDnT debug Alternate Mode
•  To control the multiplexing and overlays on
the receptacle.
•  MIPI Alliance owns a standard ID
from the USB Implementers Forum
for NIDnT.
14
Uses	the	standard	USB	Type-C	Alternate	Mode	flow	to		
support	simultaneous	debug	and	func1onal	modes	over	a	single	receptacle
Video: Device Boot Phase Tracing
15
Summary
•  MIPI Alliance Debug WG Specifications
•  Provide platform level debug solutions
•  with proven scalability from wearables/IoT to server systems
•  that enable low cost debug integration
•  support form factor device debug
•  Establish standards for all debug data processing phases
•  Cover trace data generation, arbitration and export
•  Enable vendor independence between designs and tooling
•  PIN capture interfaces (probes)
•  Protocol decoders
•  MIPI Alliance Debug Workgroup Links
•  http://mipi.org/working-groups/debug
•  http://mipi.org/specifications/debug

More Related Content

PPTX
AXI Protocol.pptx
PDF
Session 8,9 PCI Express
PPTX
PDF
Pcie basic
PPTX
AMBA 2.0 PPT
ODP
APB protocol v1.0
PPTX
Amba axi 29 3_2015
PDF
Pci express technology 3.0
AXI Protocol.pptx
Session 8,9 PCI Express
Pcie basic
AMBA 2.0 PPT
APB protocol v1.0
Amba axi 29 3_2015
Pci express technology 3.0

What's hot (20)

PDF
PCI Express Verification using Reference Modeling
ODP
Pc ie tl_layer (3)
PDF
Verification Strategy for PCI-Express
PPTX
Axi protocol
PPT
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
PPT
Ethernet protocol
ODP
PCIe DL_layer_3.0.1 (1)
PDF
MIPI DevCon 2016: A Developer's Guide to MIPI I3C Implementation
PPT
Axi protocol
PPTX
Slideshare - PCIe
PDF
MIPI DevCon Bangalore 2017: Overcoming Inter-Symbol Interference with MIPI PH...
ODP
axi protocol
PPTX
Evaluating UCIe based multi-die SoC to meet timing and power
PDF
Pci express modi
PDF
LAS16-210: Hardware Assisted Tracing on ARM with CoreSight and OpenCSD
PPTX
SystemVerilog based OVM and UVM Verification Methodologies
PPTX
PCI express
PDF
UVM REF GUIDE (1).pdf
PPTX
Advance Peripheral Bus
PDF
IP PCIe
PCI Express Verification using Reference Modeling
Pc ie tl_layer (3)
Verification Strategy for PCI-Express
Axi protocol
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
Ethernet protocol
PCIe DL_layer_3.0.1 (1)
MIPI DevCon 2016: A Developer's Guide to MIPI I3C Implementation
Axi protocol
Slideshare - PCIe
MIPI DevCon Bangalore 2017: Overcoming Inter-Symbol Interference with MIPI PH...
axi protocol
Evaluating UCIe based multi-die SoC to meet timing and power
Pci express modi
LAS16-210: Hardware Assisted Tracing on ARM with CoreSight and OpenCSD
SystemVerilog based OVM and UVM Verification Methodologies
PCI express
UVM REF GUIDE (1).pdf
Advance Peripheral Bus
IP PCIe
Ad

Viewers also liked (17)

PDF
MIPI DevCon 2016: Key Learnings in Creating the UFS Compliance Test Program
PDF
MIPI DevCon 2016: Robust Debug and Conformance Verification Ensures Interoper...
PDF
MIPI DevCon 2016: Using MIPI Conformance Test Suites for Pre-Silicon Verifica...
PDF
MIPI DevCon 2016: MIPI C-PHY - Introduction From Basic Theory to Practical Im...
PDF
MIPI DevCon 2016: MIPI Beyond Mobile - An Industrial Computer-on-Module Case ...
PDF
MIPI DevCon 2016: How Has the Mobile Evolution Influenced Other Industries?
PDF
MIPI DevCon 2016: MIPI DisCo and ACPI - Streamlining MIPI Component Integration
PDF
MIPI DevCon 2016: Comprehensive Verification of MIPI SoundWire Master-Slave S...
PDF
MIPI DevCon 2016: Testing of MIPI High Speed PHY Standard Implementations
PDF
MIPI DevCon 2016: Verification of Mobile SOC Design (UFS)
PDF
MIPI DevCon 2016: Versatile Software Solution for MIPI C-PHY TX Testing
PDF
MIPI DevCon 2016: MIPI D-PHY - Physical Layer Test & Measurement Challenges
PDF
MIPI DevCon 2016: Mobile Technology Expands to New Horizons
PDF
MIPI DevCon 2016: MIPI I3C High Data Rate Modes
PDF
MIPI DevCon 2016: Meeting Demands for Camera and Sensor Interfaces in IoT and...
PDF
MIPI DevCon 2016: MIPI in Automotive
PDF
MIPI DevCon 2016: Specifications Roadmap - The Wires for Wireless
MIPI DevCon 2016: Key Learnings in Creating the UFS Compliance Test Program
MIPI DevCon 2016: Robust Debug and Conformance Verification Ensures Interoper...
MIPI DevCon 2016: Using MIPI Conformance Test Suites for Pre-Silicon Verifica...
MIPI DevCon 2016: MIPI C-PHY - Introduction From Basic Theory to Practical Im...
MIPI DevCon 2016: MIPI Beyond Mobile - An Industrial Computer-on-Module Case ...
MIPI DevCon 2016: How Has the Mobile Evolution Influenced Other Industries?
MIPI DevCon 2016: MIPI DisCo and ACPI - Streamlining MIPI Component Integration
MIPI DevCon 2016: Comprehensive Verification of MIPI SoundWire Master-Slave S...
MIPI DevCon 2016: Testing of MIPI High Speed PHY Standard Implementations
MIPI DevCon 2016: Verification of Mobile SOC Design (UFS)
MIPI DevCon 2016: Versatile Software Solution for MIPI C-PHY TX Testing
MIPI DevCon 2016: MIPI D-PHY - Physical Layer Test & Measurement Challenges
MIPI DevCon 2016: Mobile Technology Expands to New Horizons
MIPI DevCon 2016: MIPI I3C High Data Rate Modes
MIPI DevCon 2016: Meeting Demands for Camera and Sensor Interfaces in IoT and...
MIPI DevCon 2016: MIPI in Automotive
MIPI DevCon 2016: Specifications Roadmap - The Wires for Wireless
Ad

Similar to MIPI DevCon 2016: How MIPI Debug Specifications Help Me to Develop System SW (20)

PPTX
Pushing Data from S7-1200 to Cloud
PPTX
Codasip application class RISC-V processor solutions
PPTX
Embedded systems
PDF
PPTX
Fixed-point Multi-Core DSP Platform
PDF
CompTIA Server+ Objectives
PDF
Scalable Service-Oriented Middleware over IP
PDF
ARM® Cortex™ M Bootup_CMSIS_Part_3_3_Debug_Architecture
PPT
Introduction to Blackfin BF532 DSP
PDF
“Making Edge AI Inference Programming Easier and Flexible,” a Presentation fr...
PDF
Tos tutorial
PDF
Getting started with RISC-V verification what's next after compliance testing
PDF
Track 5 session 5 - st dev con 2016 - stm32 hands on seminar - cloud connec...
PPTX
Ppt on six month training on embedded system & IOT
PPTX
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 10
PPT
Dsp ajal
PPTX
UGM 2015: X1149 workshop
PPT
Basic network training2
DOC
Srikanth_PILLI_CV_latest
PPTX
SC'16 PMIx BoF Presentation
Pushing Data from S7-1200 to Cloud
Codasip application class RISC-V processor solutions
Embedded systems
Fixed-point Multi-Core DSP Platform
CompTIA Server+ Objectives
Scalable Service-Oriented Middleware over IP
ARM® Cortex™ M Bootup_CMSIS_Part_3_3_Debug_Architecture
Introduction to Blackfin BF532 DSP
“Making Edge AI Inference Programming Easier and Flexible,” a Presentation fr...
Tos tutorial
Getting started with RISC-V verification what's next after compliance testing
Track 5 session 5 - st dev con 2016 - stm32 hands on seminar - cloud connec...
Ppt on six month training on embedded system & IOT
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 10
Dsp ajal
UGM 2015: X1149 workshop
Basic network training2
Srikanth_PILLI_CV_latest
SC'16 PMIx BoF Presentation

More from MIPI Alliance (20)

PDF
MIPI DevCon 2021: MIPI I3C Under the Spotlight: A Fireside Chat with the I3C ...
PDF
MIPI DevCon 2021: MIPI I3C Application and Validation Models for IoT Sensor N...
PDF
MIPI DevCon 2021: MIPI I3C Signal Integrity Challenges on DDR5-based Server P...
PDF
MIPI DevCon 2021: MIPI I3C interface for the ETSI Smart Secure Platform
PDF
MIPI DevCon 2021: MIPI Security for Automotive and IoT – Initial Focus on MASS
PDF
MIPI DevCon 2021: MIPI HTI, PTI and STP: The Bases for Next-Generation Online...
PDF
MIPI DevCon 2021: Meeting the Needs of Next-Generation Displays with a High-P...
PDF
MIPI DevCon 2021: MIPI CSI-2 v4.0 Panel Discussion with the MIPI Camera Worki...
PDF
MIPI DevCon 2021: MIPI D-PHY and MIPI CSI-2 for IoT: AI Edge Devices
PDF
MIPI DevCon 2021: Enabling Long-Reach MIPI CSI-2 Connectivity in Automotive w...
PDF
MIPI DevCon 2021: Latest Developments within MIPI Automotive SerDes Solutions...
PDF
MIPI DevCon 2021: The MIPI Specification Roadmap: Driving Advancements in Mob...
PDF
MIPI DevCon 2021: State of the Alliance
PDF
MIPI DevCon 2020 | Snapshot of MIPI RFFE v3.0 from a System-Architecture Per...
PDF
MIPI DevCon 2020 | The Story Behind the MIPI I3C HCI Driver for Linux
PDF
MIPI DevCon 2020 | Interoperability Challenges and Solutions for MIPI I3C
PDF
MIPI DevCon 2020 | Why an Integrated MIPI C-PHY/D-PHY IP is Essential
PDF
MIPI DevCon 2020 | MIPI to Bluetooth LE: Leveraging Mobile Technology for Wir...
PDF
MIPI DevCon 2020 | MIPI Alliance: Enabling the IoT Opportunity
PDF
MIPI DevCon 2020 | MIPI DevCon 2020 | How MIPI Interfaces Solve Challenges in...
MIPI DevCon 2021: MIPI I3C Under the Spotlight: A Fireside Chat with the I3C ...
MIPI DevCon 2021: MIPI I3C Application and Validation Models for IoT Sensor N...
MIPI DevCon 2021: MIPI I3C Signal Integrity Challenges on DDR5-based Server P...
MIPI DevCon 2021: MIPI I3C interface for the ETSI Smart Secure Platform
MIPI DevCon 2021: MIPI Security for Automotive and IoT – Initial Focus on MASS
MIPI DevCon 2021: MIPI HTI, PTI and STP: The Bases for Next-Generation Online...
MIPI DevCon 2021: Meeting the Needs of Next-Generation Displays with a High-P...
MIPI DevCon 2021: MIPI CSI-2 v4.0 Panel Discussion with the MIPI Camera Worki...
MIPI DevCon 2021: MIPI D-PHY and MIPI CSI-2 for IoT: AI Edge Devices
MIPI DevCon 2021: Enabling Long-Reach MIPI CSI-2 Connectivity in Automotive w...
MIPI DevCon 2021: Latest Developments within MIPI Automotive SerDes Solutions...
MIPI DevCon 2021: The MIPI Specification Roadmap: Driving Advancements in Mob...
MIPI DevCon 2021: State of the Alliance
MIPI DevCon 2020 | Snapshot of MIPI RFFE v3.0 from a System-Architecture Per...
MIPI DevCon 2020 | The Story Behind the MIPI I3C HCI Driver for Linux
MIPI DevCon 2020 | Interoperability Challenges and Solutions for MIPI I3C
MIPI DevCon 2020 | Why an Integrated MIPI C-PHY/D-PHY IP is Essential
MIPI DevCon 2020 | MIPI to Bluetooth LE: Leveraging Mobile Technology for Wir...
MIPI DevCon 2020 | MIPI Alliance: Enabling the IoT Opportunity
MIPI DevCon 2020 | MIPI DevCon 2020 | How MIPI Interfaces Solve Challenges in...

Recently uploaded (6)

PDF
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
DOC
证书学历UoA毕业证,澳大利亚中汇学院毕业证国外大学毕业证
PDF
Lesson 13- HEREDITY _ pedSAWEREGFVCXZDSASEWFigree.pdf
PDF
heheheueueyeyeyegehehehhehshMedia-Literacy.pdf
PPTX
ASMS Telecommunication company Profile
DOC
Camb毕业证学历认证,格罗斯泰斯特主教大学毕业证仿冒文凭毕业证
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
证书学历UoA毕业证,澳大利亚中汇学院毕业证国外大学毕业证
Lesson 13- HEREDITY _ pedSAWEREGFVCXZDSASEWFigree.pdf
heheheueueyeyeyegehehehhehshMedia-Literacy.pdf
ASMS Telecommunication company Profile
Camb毕业证学历认证,格罗斯泰斯特主教大学毕业证仿冒文凭毕业证

MIPI DevCon 2016: How MIPI Debug Specifications Help Me to Develop System SW

  • 1. How MIPI Debug Specifications Help Me to Develop System SW Norbert Schulz Intel Corporation
  • 2. Contents •  MIPI Alliance Debug WG Focus •  Good Debug Practices •  Example Use Case: Form Factor SW/FW tracing •  MIPI SyS-T Messaging (Trace creation) •  MIPI STPSM/ MIPI TWPSM data protocols (Trace arbitration) •  MIPI NIDnTSM (Trace export) •  Summary 2
  • 3. MIPI Alliance Debug Workgroup Focus •  Enabling best system debug support in all stages of the Mobile and Mobile Influenced equipment: •  Low cost solutions •  Interoperability between tooling and devices by defining debug standards. •  The targeted interfaces are hardware and software interfaces interacting with or supporting system debug. •  Leveraging functional interfaces to increase debug visibility in fielded systems •  MIPI Alliance Debug Specification Scopes •  Physical interfaces for Debug/Trace •  Midlevel protocols for trace data transfer •  SW Trace instrumentation 3 Non-standard or proprietary solu1on in Debug leads to increasing development cost and extended -me to market.
  • 4. Good Practices for Debug •  Make debug a platform capability •  Understand that debug is a customer visible feature •  Scale debug support with platform complexity •  Support Hardware/Software co-debug •  Avoid IP-block specialized solutions by •  Aligning trace message formats •  Unifying data capture methods (debug port and probes) •  Using debug/analysis tools supporting platform scope •  Using a shared time base to reconstruct historical message order •  Support closed-chassis / retail build debug •  Re-use of functional interfaces or their pins in form factor devices •  Have a runtime method to configure debug •  Enable / Disable of individual trace sources •  Trace verbosity control to meet bandwidth / trace audience constraints •  Retail build / field testing support 4
  • 5. Example Use Case: Form Factor SW Tracing •  Capture platform boot logs from a tablet •  No dedicated debug port, reuses functional USB port for capture •  Messages originating from different areas •  Boot controller •  UEFI BIOS •  Using MIPI specifications for •  Trace generation •  Trace Arbitration •  Trace Export •  2 machine Demo Setup •  Target System (TS) •  Debug and Test System (DTS) 5 Target System (TS) Form Factor Device Debug and Test System (DTS) USB Connector pin capture probe
  • 6. MIPI Specification Based Solution Overview 6 Merged and -mestamped message fragments CPU Core CPU Core CPU Core CPU Core Boot Controller Trace Arbiter Instrumenta-on Interconnect OS Apps Blocks SyS-T UEFI SyS-T SyS-T SyS-T Debug Clock STP USB Connector PIN Manager Debug Interface USB Func-on NIDnT Trace Genera-on Trace Arbitra-on Trace Export TWP Other Func-onal Blocks Other SW/HW Specifica-on support for all phases of TS debug data processing other data MIPI Specifica-on
  • 8. SyS-T - System Software Trace •  SyS-T defines a SW tracing methodology •  Addresses missing standard for SW tracing •  Only major OS have established vendor specific methods •  But SW is running in most IP blocks today •  Embedded System friendly •  Build, Target and Debug system distinction •  Bandwidth reduction by using DTS collateral for decode •  SyS-T includes •  A SW instrumentation API •  A data protocol for text and binary data •  A XML decode collateral definition •  Open Source reference code planned •  New MIPI Specification for SW tracing •  1.0 Release planned Q2’2017 8 Build Machine Debug and Test System (DTS) Target System (TS) Compiled SoOware SyS-T API SyS-T Encoder SyS-T Trace data SW Build SyS-T Decode Collateral SyS-T Decoder Trace Data Viewer SyS-T Standard Reference code Instrumented Source code Collateral creator Vendor independent and scalable SW tracing method
  • 9. SyS-T - SW Instrumentation •  Reference code for C-Language •  Only 1 header needed (mipi_syst.h) •  Instrumentation calls are C-Macros •  API‘s for •  Text and binary messages •  C99 style printf() support •  Optional features (crc32 checksums, time stamps ...) •  IO-Channel concept •  Support for multi-channel output protocols •  Multi-threaded output without locking •  Trace Viewer Tool Result •  1 SyS-T call turns into 1 trace message •  Parameters turn into message fields •  Automatic time stamping 9 Create/destroy trace channel Message crea-ng Macros SW executed on TS Decoding result on DTS
  • 10. SyS-T Decode Collateral SyS-T - Advanced Features •  Bandwidth optimized printf() •  Sends only numeric ID and parameters •  Format string stored in DTS collateral, not in compiled code •  Reduces space and bandwidth need •  24 byte string replaced with 4 byte catalog ID in shown example •  Protocol Tunneling •  Raw data write over SyS-T •  Example: Embed a kernel core dump image into trace stream •  Embedded Source Positions •  “Jump-to” instrumentation source code of a message 10 SyS-T Decoder Catalog parsing ... Compiled pseudo-code : trc_out(catalog_hdr) trc_out(0x1234) trc_out(42) <Message ID="0x1234“ File=“hello.c" Line=“3"> The meaning of life: %d </Message> Trace Data Stream Output: „The meaning of life: 42“ Ask for ID=0x1234 Receive catalog message data Compiling ...
  • 11. STP - System Trace Protocol •  Robust trace data transport protocol •  Multiple trace data stream merging based on Master/Channel concept •  Up to 65536 Masters and up to 65536 Channels per Master •  Solves the problem of interrupt code tracing •  Channel switching avoids locking to make single message contiguous •  Provides common trace features •  Time stamping and correlation •  Message boundary marks and sync •  Transport data integrity and error indication •  Specification Status •  Currently at version 2.2, initial version 2006 •  Adoption Examples •  Hardware IP •  ARM® CoreSightTM, Intel® Trace Hub, etc. •  SW Tools Support •  ARM® DS-5, ASSET InterTech SourcePointTM, Intel® System Studio, Lauterbach, etc. 11 Low overhead and real 1me system friendly trace protocol providing common features * ARM is a registered trademark of ARM Limited (or its subsidiaries) in the EU and/or elsewhere. CoreSight is a trademark of ARM Limited (or its subsidiaries) in the EU and/or elsewhere. Intel and the Intel logo are trademarks of Intel CorporaCon or its subsidiaries in the U.S. and/or other countries. SourcePoint is a trademark of ASSET InterTech. Low overhead 4-Bit encoding Master/Channeel context Data for Master/Channel combina-on 3:4
  • 12. TWP – Trace Wrapper Protocol •  Low level data merging protocol •  Combines up to 111 independent data streams identified by numeric ID •  16 Bytes data/ID packed frame structure •  Support for continuous data export to PIN interfaces •  Specification Status: Released 2010,Current version 1.1 •  TWP vs. STP Protocols •  TWP enables sharing of an output between different STP or other data streams •  TWP is data frame, STP is trace stream oriented •  Specifications are complementary, system may or may not use both of them 12 TWP Data Frame 16 Byte Frame: Efficient data stream merging for expor1ng to pin interfaces
  • 13. NIDnT – Narrow Interface for Debug and Test •  Reuse functional interfaces for debug and test •  Form Factor device support •  No dedicated debug connectors available •  Low pin count support •  USB Type-CTM Receptacle •  USB 2.0 Micro-B/-AB Receptacle •  HDMI/DisplayPort Interface •  micro-SD Card Slot •  NIDnT defines •  Switching methods between original function and debug/test. •  Pin assignments •  Available since 2013 •  Current version 1.1 13 Dedicated debug port, Not available on a form factor device NIDnT func-onal port pin switching infrastructur * USB Type-C is a trademark of the USB-IF. Low cost pla`orm debug data access including form factor device support Device Func-onal port
  • 14. NIDnT Support for USB Type-C •  Version 1.1 adds USB Type-C receptacle support for TS •  NIDnT defines unique Alternate Mode for debug overlays •  Uses USB PD structured Vendor Defined Messages •  To enter NIDnT debug Alternate Mode •  To control the multiplexing and overlays on the receptacle. •  MIPI Alliance owns a standard ID from the USB Implementers Forum for NIDnT. 14 Uses the standard USB Type-C Alternate Mode flow to support simultaneous debug and func1onal modes over a single receptacle
  • 15. Video: Device Boot Phase Tracing 15
  • 16. Summary •  MIPI Alliance Debug WG Specifications •  Provide platform level debug solutions •  with proven scalability from wearables/IoT to server systems •  that enable low cost debug integration •  support form factor device debug •  Establish standards for all debug data processing phases •  Cover trace data generation, arbitration and export •  Enable vendor independence between designs and tooling •  PIN capture interfaces (probes) •  Protocol decoders •  MIPI Alliance Debug Workgroup Links •  http://mipi.org/working-groups/debug •  http://mipi.org/specifications/debug