[Kinetis] 【K70例程】005观察点和跟踪数据Data Watchpoint and Trace(DWT)_IAR

[复制链接]
 楼主| mcu9 发表于 2013-12-23 14:10 | 显示全部楼层 |阅读模式
dwt简介Data Watchpoint and Trace (DWT)
Data Watchpoint and Trace (DWT) for real-time variable monitoring and PC-sampling, which can in turn be used to periodically output the PC or various CPU-internal counters, which can be used to obtain profiling information from the target.

使用J-LinkV8
IAR版本6.6
调试串口波特率:115200
基于MDKK70-EK_T43硬件平台
关键词: Freescale 飞思卡尔 Kinetis Cortex-M4 K70 MDKK70 核心板 开发板 例程 DWT

串口输出:
//在没有仿真的情况下进入Debug中断
External Pin Reset

K70-256pin      Silicon rev 1.0
Flash parameter version 0.0.8.0
Flash version ID 1.0.18.0

DWT watchpoint demo!!

Hit any key to start

set dwt watchpoint
//此时程序发生仿真中断,LED_D31灯亮起

****default_isr entered on vector 12*****

comparator match

//进行仿真时
Software Reset

K70-256pin      Silicon rev 1.0
Flash parameter version 0.0.8.0
Flash version ID 1.0.18.0

DWT watchpoint demo!!

Hit any key to start

set dwt watchpoint
//此时程序仿真发生中断,LED_D31灯亮起,按IAR下按F5继续运行程序
comparator match

简单的说就是设置好触发源,在希望输出调试信息的地方操作触发源触发该中断。
 楼主| mcu9 发表于 2013-12-23 14:11 | 显示全部楼层
本帖最后由 mcu9 于 2013-12-23 14:12 编辑

cm4_debug

cm4_debug
 楼主| mcu9 发表于 2013-12-23 14:12 | 显示全部楼层
 楼主| mcu9 发表于 2013-12-23 14:14 | 显示全部楼层
FSL_TICS_Jeremy 发表于 2013-12-23 18:07 | 显示全部楼层
谢谢楼主分享!!
xinyinxing 发表于 2013-12-25 20:39 | 显示全部楼层
顶楼主一个!感谢楼主分享!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

40

主题

145

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部