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.

DSP6727问题

设计了DSp6727板子,程序执行的一个函数中有静态局部变量数组,函数内容如下

void test()

{

   static Uint8 AA[3]= {0,0,0};

   if(AA[0] == 0)

   {     

     fun();  //执行函数

   }

}

发现一个奇怪的现象,明明参数AA[0]初值为0,但是函数fun()并不执行,同时做了好几块板子,相同的程序在别的板子上能够执行,唯独有一个板子不行,但是出现问题的板子,如果我把程序稍微改动一下,增加几句无关的代码,程序重新编译后又能运行正常了,请问有见过这样现象的吗,会是什么问题,谢谢