TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F280025: 如何获取寄存器PC的值,以便判断当前程序在Flash中的位置?

Part Number:TMS320F280025

如题,如何获取PC寄存器的值?

在CCS进行在线Debug时,可以查看PC寄存器的值,如何在代码中获取PC的值呢?

Ben Qin:

你好,我咨询下资深工程师后回复您。

,

Ben Qin:

你好,抱歉回复晚了,参考下这两个文件:

c28x_core_registers.h

c28x_core_registers.asm

,

BarbiQ -:

You do not have permission to view this directory or page.

无法查看这2个文件

,

Ben Qin:

c28x_core_registers.asm

c28x_core_registers.h

,

yang huang:

请问一下,如果是其他寄存器(例如,ACC、P、XT等寄存器),这些寄存器的值又该如何通过程序获取了?

,

Ben Qin:

我查看下相关资料后回复您。

,

yang huang:

请问一下有没有具体的方法呢?

,

Ben Qin:

我也不确定。我已向相关工程师咨询,一旦有回复会立即回复您。

,

Ben Qin:

__get_XT:PUSH XT;; push the XT value onto the stackPOPACC	;; pop the value into ACC to return to the calling functionLRETR__get_P:PUSH P;; push the P value onto the stackPOPACC	;; pop the value into ACC to return to the calling functionLRETR__get_ACC:LRETR;; return ACC to the calling function

可以尝试下上面的代码。

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F280025: 如何获取寄存器PC的值,以便判断当前程序在Flash中的位置?
分享到: 更多 (0)