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.

MSP430F5528申请全局变量过大导致不能Debug

Other Parts Discussed in Thread: MSP430F5528

MCU:MSP430F5528

硬件环境:仿真器采用TI的评估板,MCU部分是自己印刷的PCB板

软件环境:CCS v5.2

PC操作系统:Win7

详细问题:

        我的工程目录下有以下三个文件:main.c、sysinit.c、sysinit.h。

        我在sysinit.c中定义了一个全局的一维数组:unsigned char test[n];      // 这里n是个常数,先用n代替我接下来好说明

        然后在sysinit.h中包含了该一维数组的声明:extern unsigned char test[n];

        接下来在main.c中包含了sysinit.h:#include "sysinit.h"

        并在main.c下使用该一维数组,如:test[0] = 1;

        但是我发现如果 n >= 1019 的时候,进入Debug后会自动运行,并且没有预期的效果(如LED灯闪烁)

        而 n < 1019 则能正常进行Debug。

        请教一下TI支持社区的各位朋友这个问题要怎样解决呢?是编译器的问题吗?

        另外我把同样形式的定义和声明放在其他公司的开发板上是能正常使用的,因此头文件声明、数组的定义位置等是没有问题的!先感谢各位热心回答的朋友!