SlideShare a Scribd company logo
1 of 16
Download to read offline
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

What's hot

Jtag presentation
Jtag presentationJtag presentation
Jtag presentation
klinetik
 
Verification Strategy for PCI-Express
Verification Strategy for PCI-ExpressVerification Strategy for PCI-Express
Verification Strategy for PCI-Express
DVClub
 
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Altera Corporation
 

What's hot (20)

5G NR System Information
5G NR System Information5G NR System Information
5G NR System Information
 
PCIe
PCIePCIe
PCIe
 
Jtag presentation
Jtag presentationJtag presentation
Jtag presentation
 
Network Drivers
Network DriversNetwork Drivers
Network Drivers
 
Sdh concept
Sdh conceptSdh concept
Sdh concept
 
Usb protocol
Usb protocol Usb protocol
Usb protocol
 
Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)
 
Couche physique réseau
Couche physique réseauCouche physique réseau
Couche physique réseau
 
The IEEE 1149.1 Boundary-scan test standard
The IEEE 1149.1 Boundary-scan test standardThe IEEE 1149.1 Boundary-scan test standard
The IEEE 1149.1 Boundary-scan test standard
 
Verilog Pli
Verilog PliVerilog Pli
Verilog Pli
 
Megaplexer Ip implementation in Enode B
Megaplexer Ip implementation in Enode BMegaplexer Ip implementation in Enode B
Megaplexer Ip implementation in Enode B
 
MIPI DevCon 2016: Implementing MIPI C-PHY
MIPI DevCon 2016: Implementing MIPI C-PHYMIPI DevCon 2016: Implementing MIPI C-PHY
MIPI DevCon 2016: Implementing MIPI C-PHY
 
What is JTAG?
What is JTAG?What is JTAG?
What is JTAG?
 
OTN for Beginners
OTN for BeginnersOTN for Beginners
OTN for Beginners
 
Verification Strategy for PCI-Express
Verification Strategy for PCI-ExpressVerification Strategy for PCI-Express
Verification Strategy for PCI-Express
 
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
 
Sdh total final
Sdh total finalSdh total final
Sdh total final
 
A comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodingsA comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodings
 
8b/10b Encoder Decoder design and Verification for PCI Express protocol usin...
8b/10b Encoder Decoder design and  Verification for PCI Express protocol usin...8b/10b Encoder Decoder design and  Verification for PCI Express protocol usin...
8b/10b Encoder Decoder design and Verification for PCI Express protocol usin...
 
Introductin sdh-pdh
Introductin sdh-pdhIntroductin sdh-pdh
Introductin sdh-pdh
 

Viewers also liked

Viewers also liked (17)

MIPI DevCon 2016: Key Learnings in Creating the UFS Compliance Test Program
MIPI DevCon 2016: Key Learnings in Creating the UFS Compliance Test ProgramMIPI DevCon 2016: Key Learnings in Creating the UFS Compliance Test Program
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: Robust Debug and Conformance Verification Ensures Interoper...MIPI DevCon 2016: Robust Debug and Conformance Verification Ensures Interoper...
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: Using MIPI Conformance Test Suites for Pre-Silicon Verifica...MIPI DevCon 2016: Using MIPI Conformance Test Suites for Pre-Silicon Verifica...
MIPI DevCon 2016: Using MIPI Conformance Test Suites for Pre-Silicon Verifica...
 
MIPI DevCon 2016: MIPI Beyond Mobile - An Industrial Computer-on-Module Case ...
MIPI DevCon 2016: MIPI Beyond Mobile - An Industrial Computer-on-Module Case ...MIPI DevCon 2016: MIPI Beyond Mobile - An Industrial Computer-on-Module Case ...
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: How Has the Mobile Evolution Influenced Other Industries?MIPI DevCon 2016: How Has the Mobile Evolution Influenced Other Industries?
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: MIPI DisCo and ACPI - Streamlining MIPI Component IntegrationMIPI DevCon 2016: MIPI DisCo and ACPI - Streamlining MIPI Component Integration
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: Comprehensive Verification of MIPI SoundWire Master-Slave S...MIPI DevCon 2016: Comprehensive Verification of MIPI SoundWire Master-Slave S...
MIPI DevCon 2016: Comprehensive Verification of MIPI SoundWire Master-Slave S...
 
MIPI DevCon 2016: A Developer's Guide to MIPI I3C Implementation
MIPI DevCon 2016: A Developer's Guide to MIPI I3C ImplementationMIPI DevCon 2016: A Developer's Guide to MIPI I3C Implementation
MIPI DevCon 2016: A Developer's Guide to MIPI I3C Implementation
 
MIPI DevCon 2016: Testing of MIPI High Speed PHY Standard Implementations
MIPI DevCon 2016: Testing of MIPI High Speed PHY Standard ImplementationsMIPI DevCon 2016: Testing of MIPI High Speed PHY Standard Implementations
MIPI DevCon 2016: Testing of MIPI High Speed PHY Standard Implementations
 
MIPI DevCon 2016: Verification of Mobile SOC Design (UFS)
MIPI DevCon 2016: Verification of Mobile SOC Design (UFS)MIPI DevCon 2016: Verification of Mobile SOC Design (UFS)
MIPI DevCon 2016: Verification of Mobile SOC Design (UFS)
 
MIPI DevCon 2016: Versatile Software Solution for MIPI C-PHY TX Testing
MIPI DevCon 2016: Versatile Software Solution for MIPI C-PHY TX TestingMIPI DevCon 2016: Versatile Software Solution for MIPI C-PHY TX Testing
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: MIPI D-PHY - Physical Layer Test & Measurement ChallengesMIPI DevCon 2016: MIPI D-PHY - Physical Layer Test & Measurement Challenges
MIPI DevCon 2016: MIPI D-PHY - Physical Layer Test & Measurement Challenges
 
MIPI DevCon 2016: Mobile Technology Expands to New Horizons
MIPI DevCon 2016: Mobile Technology Expands to New HorizonsMIPI DevCon 2016: Mobile Technology Expands to New Horizons
MIPI DevCon 2016: Mobile Technology Expands to New Horizons
 
MIPI DevCon 2016: MIPI I3C High Data Rate Modes
MIPI DevCon 2016: MIPI I3C High Data Rate ModesMIPI DevCon 2016: MIPI I3C High Data Rate Modes
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: Meeting Demands for Camera and Sensor Interfaces in IoT and...MIPI DevCon 2016: Meeting Demands for Camera and Sensor Interfaces in IoT and...
MIPI DevCon 2016: Meeting Demands for Camera and Sensor Interfaces in IoT and...
 
MIPI DevCon 2016: MIPI in Automotive
MIPI DevCon 2016: MIPI in AutomotiveMIPI DevCon 2016: MIPI in Automotive
MIPI DevCon 2016: MIPI in Automotive
 
MIPI DevCon 2016: Specifications Roadmap - The Wires for Wireless
MIPI DevCon 2016: Specifications Roadmap - The Wires for WirelessMIPI DevCon 2016: Specifications Roadmap - The Wires for Wireless
MIPI DevCon 2016: Specifications Roadmap - The Wires for Wireless
 

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

CompTIA Server+ Objectives
CompTIA Server+ ObjectivesCompTIA Server+ Objectives
CompTIA Server+ Objectives
sombat nirund
 
“Making Edge AI Inference Programming Easier and Flexible,” a Presentation fr...
“Making Edge AI Inference Programming Easier and Flexible,” a Presentation fr...“Making Edge AI Inference Programming Easier and Flexible,” a Presentation fr...
“Making Edge AI Inference Programming Easier and Flexible,” a Presentation fr...
Edge AI and Vision Alliance
 
Srikanth_PILLI_CV_latest
Srikanth_PILLI_CV_latestSrikanth_PILLI_CV_latest
Srikanth_PILLI_CV_latest
Srikanth Pilli
 

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

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

More from MIPI Alliance

More from MIPI Alliance (20)

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

Recently uploaded

Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Cara Menggugurkan Kandungan 087776558899
 

Recently uploaded (6)

Mobile App Penetration Testing Bsides312
Mobile App Penetration Testing Bsides312Mobile App Penetration Testing Bsides312
Mobile App Penetration Testing Bsides312
 
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
 
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
 
Android Application Components with Implementation & Examples
Android Application Components with Implementation & ExamplesAndroid Application Components with Implementation & Examples
Android Application Components with Implementation & Examples
 
Mobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s ToolsMobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s Tools
 
Mobile Application Development-Components and Layouts
Mobile Application Development-Components and LayoutsMobile Application Development-Components and Layouts
Mobile Application Development-Components and Layouts
 

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