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.

[参考译文] CODECOMPOSER:CCS 20变量和观察始终显示0 (对于 PRU 内核)

Guru**** 2223470 points
Other Parts Discussed in Thread: AM263P4
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1482460/codecomposer-ccs-20-variables-and-watch-always-show-0-for-pru-core

器件型号:CODECOMPOSER
主题中讨论的其他器件:AM263P4

工具与软件:

我目前正在使用 CCS 20调试 AM263P4的 PRU_0内核上的操作。 我不知道我更改了什么、但看起来没有从 RAM 正确检索变量的调试值。  作为测试、我创建了多个变量、然后在观察内存的同时单步执行汇编代码。  我可以看到内存按预期更新、但当我将鼠标悬停在变量上时、在 Variables 部分中查看、或将其设置为 Watch 变量、则始终显示0。  请注意、在查看存储器时、我必须更改为 PRU_PRU Device_Memory、才能查看正确的存储器区域。

似乎将鼠标悬停在变量上或在 Variables 或 Watch Areas 中查看该变量、会从 Data_Memory (而不是器件存储器)拉取值。 我可能会错的,它只是一个猜测。 无论哪种方式、这里的某个东西都不起作用。