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.

循环访问内存char转double的内存出错

Other Parts Discussed in Thread: TMS320C6657

申明变量时:

#pragma DATA_SECTION(imdata,".PacketData")
char imdata[IMSize*(RecvNum+4)];//11张照片

#pragma DATA_SECTION(T,".PacketData")
double T[IMG_HEIGHT*IMG_WIDTH*2];

#pragma DATA_SECTION(ph1,".PacketData")
char ph1[640*480];

#pragma DATA_SECTION(ph2,".PacketData")
char ph2[640*480];

#pragma DATA_SECTION(ph3,".PacketData")
char ph3[640*480];

#pragma DATA_SECTION(ph,".PacketData")
char ph[640*480];

之后在赋值的时候这么处理的:

然后运行程序到这个for循环后就跑飞了,然后暂停查看发现程序运行到什么init之类的地方去了,这是为什么?——单步运行时却不会出错。

后来改为

之后就运行过了这个地方。

我想知道这里出了什么错误?因为后来的程序中也调试时出现这个问题,不方便更改啊。。。。。。难道要在里面暂停一下吗???

DSP:TMS320C6657
CCS  Version: 5.4.0.00091 

谢谢!