IAR Debug时可以查看函数被调用的时刻点吗?

2019-12-10 18:06发布

前后台的代码,目前想看看新增的代码对主循环周期接口的影响。要是没有,就只好加测试代码了。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
4条回答
styleno1
2019-12-11 00:19
20061002838 发表于 2019-10-23 23:07
可以,而且还能测量时间差
CYCLECOUNTER
https://www.iar.com/support/resources/articles/how-to-measure- ...

精准匹配,可惜是M0的核,不支持这个功能。

Cortex-M3/M4 has a DWT (Data Watch and Trace Unit) which includes a clock cycle register (CYCCNT) and C-SPY implements a 64-bit cycle register accordingly, CYCLECOUNTER. This register enables accurate and extended measure execution times and combined with C-SPY macros becomes a very useful instrument in developers’ toolbox.

一周热门 更多>