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.

[参考译文] CCS/TMS320C6727:函数 expf (……) 在 load6x.exe 中创建非法代码

Guru**** 2391415 points
Other Parts Discussed in Thread: TMS320C6727

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/753726/ccs-tms320c6727-function-expf-creates-illegal-code-in-load6x-exe

器件型号:TMS320C6727

工具/软件:Code Composer Studio

您好!

我从事一个 DSP TMS320C6727项目。 我想使用   load6x.exe  程序模拟 DSP 行为。  

我能够启动我的程序、"put"和"printf"函数按预期工作、但我无法使"expf"函数正常工作。

每次程序到达具有此功能的行时,它都会输出以下消息:

>> PC = 0x1001e788处的非法操作码(008d4e61)

我做了什么错了,如何才能使它正常工作?


测试代码就像这样简单:

#include 
#include 
#include 

void main (unsigned argc、char * argv[])
{
浮动测试;

投入(" \n");
输入("Hello world! \n");
TEST = expf (0.0);
投入(" \n");
退出(0);
} 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    虽然我不确定、但我猜编译器正确使用的指令不支持 load6x。  Load6x 多年来一直不受支持。  不幸的是、这种情况并不令人惊讶。

    我建议您更改为 loadti。  它支持 CCS 支持的任何执行平台。  这意味着没有仿真器。  但它是最接近 load6x 的受支持解决方案。

    谢谢、此致、

    乔治