博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CoreSight™ Technology
阅读量:5301 次
发布时间:2019-06-14

本文共 3339 字,大约阅读时间需要 11 分钟。

ARM Cortex-M processor-based devices use the ARM CoreSight technology

which introduces powerful new debug and trace capabilities.

Debug features:

  • Run Control of the processor allowing you to start and stop programs
  • Single Step one source or assembler line
  • Set breakpoints while the processor is running
  • Read/write memory contents and peripheral registers on-the-fly
  • Program internal and external FLASH memory
 

Trace features:

  •  provides program counter (PC) sampling, data trace, event trace, and instrumentation trace information
  •  streamed directly to your PC enabling debugging of historical sequences, software profiling, and code coverage analysis

The CoreSight features are available via  and  interfaces using standard low-cost target .

JTAG

JTAG is the industry-standard interface used to download and debug programs on a target processor,

as well as many other functions. It offers a convenient and easy way to connect to devices and is available

on all ARM processor-based devices.

The JTAG interface can be used with Cortex-M based devices to access the CoreSight debug capabilities.

Serial Wire Debug : SWD

The Serial Wire Debug (SWD) mode is an alternative to the standard JTAG interface.

It uses only two pins to provide the same debug functionality as JTAG with no performance penalty,

and introduces data trace capabilities with the .

The SWD interface pins can be overlaid with JTAG signals, allowing the standard target  to be used:

  • TCLK - SWCLK (Serial Wire Clock)
  • TMS - SWDIO (Serial Wire Data Input/Output)
  • TDO - SWO (Serial Wire Output - required for )

JTAG and SWD modes are fully supported by , , and .

Serial Wire Viewer : SWV

Cortex-M3, Cortex-M4, and Cortex-M7 based devices are able to provide high-speed data trace information

in a number of ways depending on the type of information or analysis you require.

The Serial Wire Serial (SWV) provides real-time data trace information from various sources within a Cortex-M3/M4/M7 device.

It is transmitted via the SWO pin while your system processor continues to run at full speed.

Information is available from the ITM (Instrumentation Trace Macrocell) and DWT (Data Watchpoint and Trace) units, providing:

  • PC (Program Counter) sampling
  • Event counters that show CPU cycle statistics
  • Exception and Interrupt execution with timing statistics
  • Trace data - data reads and writes used for timing analysis
  • ITM trace information used for simple printf-style debugging

SWV data trace is available via the SWO pin in two output formats:

  • UART style (1Mb/s) - supported by  and 
  • Manchester encoded (100Mb/s) - supported by 

Note Note

  • Data trace via SWV is not available using the JTAG interface.
  • SWV is only available when using  mode.

Embedded Trace Macrocell

The Embedded Trace Macrocell (ETM) provides high bandwidth instruction trace

via four dedicated trace pins accessible on the  connector.

This enhanced trace capability records a program's execution instruction-by-instruction which can be used for:

  • Debugging historical sequences leading up to events of interest
  • Software profiling and algorithm optimization
  • Code coverage analysis

Note Note

  • ETM instruction trace is only supported by .
  • ETM is optionally available on Cortex-M3, Cortex-M4, and Cortex-M7 processor-based microcontrollers.
  • It is not available on Cortex-M0, M0+ and M1.

 

转载于:https://www.cnblogs.com/shangdawei/p/4763154.html

你可能感兴趣的文章
JavaScript中的this
查看>>
Activity生命周期
查看>>
jsp
查看>>
OpenNI / NITE的Stable版更新
查看>>
03 基本数据结构 - 栈
查看>>
Hyper-V虚拟机上安装一个图形界面的Linux系统
查看>>
微信小程序之随笔
查看>>
每秒处理10万高并发订单的乐视集团支付系统架构分享
查看>>
Lua_02
查看>>
ios蓝牙详解
查看>>
安装MySQL5.7.18遇到的坑
查看>>
React Native在Android平台运行gif的解决方法转载
查看>>
Mybatis RowBounds 是逻辑分页
查看>>
Nginx缩略图和Fastdfs整合以及image_filter配置,7点经验结论和5个参考资料
查看>>
hdu 3341(ac自动机+状态压缩)
查看>>
hdu 1565(状态压缩基础题)
查看>>
51单片机之蓝牙遥控小车_效果展示+单片机知识+完整蓝牙电车代码
查看>>
使用WNMP时报的错
查看>>
扩展Django内置的auth模块代码示例
查看>>
Sql Server中REPLACE函数的使用
查看>>