匿名
未登录
登录
百问网嵌入式Linux wiki
搜索
查看“Coresight overview”的源代码
来自百问网嵌入式Linux wiki
名字空间
页面
讨论
更多
更多
页面选项
Read
查看源代码
历史
←
Coresight overview
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
This article explains how Coresight IP is composed, how to configure it, and how to use it. == Framework purpose == ARM '''Coresight''' products include a wide range of trace macrocells for ARM processors, system and software instrumentation and a comprehensive set of IP blocks to enable the debug & trace of the most complex, multi-core SoCs. ARM has defined an open CoreSight architecture to allow SoC designers to add debug & trace capabilities for other IP cores in to the CoreSight infrastructure. Coresight can be used in many different use cases, as mentioned in [[#How to use Coresight|How to use Coresight]] section ==System overview== [[File:Coresight_overview.png|thumb|center|766px|alt=Alternate text|Coresight Overview]] ===Component description=== The debug features are based on Arm® CoreSight™ components:<br /> • SWJ-DP: JTAG/Serial-wire debug port<br /> • AXI-AP: AXI access port<br /> • AHB-AP: AHB access port<br /> • APB-AP: APB access port<br /> • ITM: Instrumentation Trace Macrocell<br /> • DWT: Data Watchpoint and Trace<br /> • ETM: Embedded Trace Macrocell<br /> • ETF: Embedded Trace FIFO<br /> • TPIU: Trace Port Interface Unit<br /> • SWO: Serial Wire Output<br /> • CTI: Cross Trigger Interface<br /> • CTM: Cross Trigger Matrix<br /> • Timestamp Generator<br /> • STM: System Trace Macrocell<br /> More information about these components can be found in the Arm® documents referenced <ref>[1. IHI 0031C (ID080813) - Arm® Debug Interface Architecture Specification ADIv5.0 to ADIv5.2, Issue C, 8th Aug 2013.<br /> 2. DDI 0480F (ID100313) - Arm® CoreSight™ SoC-400 r3p1 Technical Reference Manual, Issue F, 26th Sept 2013.<br /> 3. DDI 0461B (ID010111) - Arm® CoreSight™ Trace Memory Controller r0p1 Technical Reference Manual, Issue B, 10 Dec 2010<br /> 4. DDI 0314H - Arm® CoreSight™ Components Technical Reference Manual, Issue H, 10 July, 2009<br /> 5. DDI 0403D (ID100710) - Arm® v7-M Architecture Reference Manual, Issue Derrata2010_Q3, November 2010<br /> 6. DDI 0468A (ID101712) - Arm® CoreSight™ ETM™-A7 r0p0, Issue A, 12 Sept 2011<br /> 7. DDI 0440C (ID070610) - Arm® CoreSight™ ETM™-M4 r0p1 Technical Reference Manual, Issue C, 29 June 2012<br /> 8. DDI 0528B (ID062514) - Arm® CoreSight™ STM-500 System Trace Macrocell r0p1 Technical Reference Manual, Issue B, 11 March 2014<br /> 9. DDI 0464F (ID051113) - Arm® Cortex®-A7 MPCore™ r0p5 Technical Reference Manual, Issue F, 11 April 2013],Arm® documents referenced<br /></ref> ==Configuration == ===Kernel configuration=== The Coresight feature is activated by default in ST deliveries. Nevertheless, if a specific configuration is required, you can use Linux Menuconfig tool: [[Menuconfig or how to configure kernel | Menuconfig or how to configure kernel ]] and select: For Coresight features: <pre> [*] Device Drivers [*] HW tracing support [*] STM (System Trace Module devices) [*] Kernel console over STM devices [*] Copy the output from kernel Ftrace to STM engine [*] Kernel hacking [*] CoreSight Tracing Support [*] CoreSight Link and Sink drivers [*] Coresight generic TMC driver [*] Coresight generic TPIU driver [*] Coresight ETBv1.0 driver [*] CoreSight Embedded Trace Macrocell 3.x driver [*] CoreSight System Trace Macrocell driver </pre> ===Device tree configuration=== DT bindings documentation deals with all required or optional [[Device tree|device tree]] properties. Detailed DT configuration for STM32 internal peripherals: [[Coresight device tree configuration|Coresight device tree configuration]]. ==How to use Coresight == === How to use the Coresight user space interface === Please see examples based on the following use cases: ==How to trace and debug the framework== === How to monitor === ==== How to monitor with sysfs ==== '''sysfs''' entry can be used to browse Coresight components. {{Board$}} /sys/bus/coresight# ls devices drivers drivers_autoprobe drivers_probe uevent {{Board$}} /sys/bus/coresight# ls devices/ 50091000.funnel 50092000.etf 50093000.tpiu 500a0000.stm 500dc000.etm 500dd000.etm replicator === How to trace === Coresight Framework print out info and error messages. You can display them with dmesg command: {{Board$}} '''dmesg | grep coresight''' [ 2.510368] coresight-etm3x 500dc000.etm: ETM 3.5 initialized [ 2.515415] coresight-etm3x 500dd000.etm: ETM 3.5 initialized [ 2.521087] coresight-stm 500a0000.stm: stm_register_device failed, probing deffered [ 3.065495] coresight-stm 500a0000.stm: STM500 initialized === How to debug === ==Source code location== The source files are located inside the Linux kernel. ==References== <references /> <noinclude> [[Category:Embedded trace and debug]] {{ArticleBasedOnModel|Framework overview article model}} </noinclude>
该页面使用的模板:
模板:ArticleBasedOnModel
(
查看源代码
)
模板:Board$
(
查看源代码
)
返回至
Coresight overview
。
导航
导航
WIKI首页
官方店铺
资料下载
交流社区
所有页面
所有产品
MPU-Linux开发板
MCU-单片机开发板
Linux开发系列视频
单片机开发系列视频
所有模块配件
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志