以下贴图上图为电脑上跑的算法结果:
下图为在CCS跑DSP上debug的printf结果:
出现nan和inf的地方应该是浮点数结果,请问出现这个问题的可能原因是什么?在DSP上和在x86或arm下的浮点数运算有什么差异?同样的算法在x86和arm-a下都运行过,没问题。MATLAB生成的C代码转到dsp上已经添加了#include "hw_types.h" "hw_syscfg0_C6748.h" "soc_C6748.h"几个头文件。
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跑DSP上debug的printf结果:
出现nan和inf的地方应该是浮点数结果,请问出现这个问题的可能原因是什么?在DSP上和在x86或arm下的浮点数运算有什么差异?同样的算法在x86和arm-a下都运行过,没问题。MATLAB生成的C代码转到dsp上已经添加了#include "hw_types.h" "hw_syscfg0_C6748.h" "soc_C6748.h"几个头文件。