开发板为SEED-DEC643,CCS版本为V2.20.18,程序框架为
void tskmeasure(){
while(1){
switch(MeasureStatus){
case a:
switch(MeasureStatusA){
case c:
break;
case d:
break;
case e:
break;
.
.
.
default:
break;
}
break;
case b:
switch(MeasureStatusB){
case f:
break;
case g:
break;
case h:
break;
.
.
.
default:
break;
}
break;
.
.
.
default:
break;
}
TSK_sleep(10);
}
}
CCS中仿真运行,当用#define把d定义成8或e定义成9时,运行都会死机 |