工具/软件:Code Composer Studio
我想在 SensorTagKeys_processKeyLeft (或 SensorTag_keys.c 中的任何例程)设置断点、但我不能。 我已经尝试关闭优化、但代码太大、无法编译为可用空间。 如何在 SensorTag_keys.c 中设置断点
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
我想在 SensorTagKeys_processKeyLeft (或 SensorTag_keys.c 中的任何例程)设置断点、但我不能。 我已经尝试关闭优化、但代码太大、无法编译为可用空间。 如何在 SensorTag_keys.c 中设置断点
[引用 user="Duane Perery">我查看了该网页,但它对我的问题没有帮助。 我将优化设置为关闭、将速度与大小设置为0。 我仍然无法到达断点。 是否有某种方法可以确定它为什么不在断点处停止? 暂停时、我可以单步执行暂停的位置、但不能在其他区域执行。
需要检查的一点是、是否全局禁用了断点:
https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/607523/2237082#2237082
如果不是、则接下来要检查的是代码是否实际到达设置了断点的该位置。 您能单步执行该操作吗?
[引用 user="Markel Robregado">我记得一位 E2E 成员提到过您可以设置要优化的代码文件。 是不是这样? 如果确实如此、则该方法可能对 Duane 有所帮助。
客户可以使用 flie-specific 选项仅为特定文件设置优化级别:
http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#File_specific_options