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.

TMS320F280049C: CCS 仿真debug下结构体定义时初始化异常问题

Part Number: TMS320F280049C

在debug状态下,定义的结构体包含了函数的指针,也定义了结构体变量

igbttypedef IGBT = {

 Init,

start,

stop

};

其中Init这三个都是定义好了的函数名

前面编译,运行都没有问题,但是到后面

由于ram空间不够我就在cmd文件中.text增加了page0的flash地址。但是增加了之后编译运行之后,就发现结构体初始化没有成功,IGBT这个变量里面的成员都变成了 0。

想咨询一下是什么原因,感谢