Does not match the target endianness, not loaded. 问题解决思路

疑问1、Does not matchthe target endianness, not loaded. Check project build options and targetconfiguration file (ccxml)

相关参数:

下载器:SEED XDS 560V2 USB Emulator

芯片:TMS320C6416T

电路板:非官方开发板,自己绘制

CCS版本:CCS5.4(CCS3.3也试过,同样存在这个问题)

大小端设置:little endianness

问题具体描述:

CCS5.4能够编译通过,在Emulator的时候能够连接成功,但是一旦load program就会出现报错,无法下载。查看过电路,确定硬件大小端设置正确。现在不知道问题在何处,还望各位技术大拿多加指导。

PS:采用simulator进行仿真是没有问题的,但是Emulator就是不行。上网搜索了关于simulator与Emulator的大概区别,只能模糊理解,所以至于这两者究竟有什么区别还请赐教!【这个问题后面会更新,我会单独整理发出来】

Does not match the target endianness, not loaded. 问题解决思路

 

这个问题的解决思路:

1、检查CSR寄存器,确认DSP的大小端模式

2、连接FPGA,让FPGA先对DSP进行复位,然后再进行正常操作。(因为这个开发板是FPGA+DSP结构)

思路一:经过检查,CSR寄存器设置全部符合芯片

PS:1、CSR寄存器怎么观察?

在进入debug界面下点击view中的Register进行观察

2、CSR寄存器内部各个位域的含义

Does not match the target endianness, not loaded. 问题解决思路

Does not match the target endianness, not loaded. 问题解决思路

思路二:先对FPGA进行程序下载,待FPGA完全启动后再进行DSP调试。这个思路解决了问题。

 

总结:如果出现在load program的时候出现这个问题

Does not match the target endianness, notloaded. Check project build options and target configuration file (ccxml)

按照顺序从以下几个方面来仔细核查

(1)查看CSR寄存器,确保DSP硬件电路连接的就是little endianness模式

(2)确保DSP工作前完成了硬件复位。这在FPGA与DSP同时存在于开发板上时尤其显得重要。

(3)其他解决方案欢迎各位补充!