Live Watch窗口显示不正常

Technical Note

Architectures:

All

Component:

debugger

Updated:

2023/8/4 5:27

问题描述

在Live Watch窗口中,用户可以很方便的查看程序运行时自动刷新的变量或者表达式的数值变化。表达式中的变量须为静态存储,如全局变量等。

然而,在少数情况下Live Watch窗口的显示不正常,比如显示不连贯,或者显示空白等异常情况。

解决方法

Live Watch窗口是根据一定的刷新率进行数据更新的。 当使用低速仿真器,观察的变量过多时,过高的刷新率将会导致显示不正常的现象。

解决方法为在菜单栏上选择Tools->Options,打开IDE Options->Debugger, 可以看到下图框内的默认刷新率为每1000毫秒(1秒)刷新一次,可以适当延长刷新时间,降低刷新率来获得更好的相对稳定的性能。

参考文献:

  1. IAR Embedded Workbench IDE Project Management and Building Guide

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.