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.

MSP430F2619: TI V26.6.1.LTS编译错误。

Part Number: MSP430F2619

typedef enum
{
DOWNHLOE_MODE = 0,
CONFIG_MODE,
DOWLOAD_MODE,
}WORK_MODE;

WORK_MODE       WorkMode = DOWNHLOE_MODE;

主函数

if(。。)

{

。。。。。。

}

else if (WorkMode == DOWLOAD_MODE)

{

。。。。。 当条件相等时能进入正常执行

}

反汇编语句
$C$L13:
01005e: 93A2 1A0E CMP.W #2,&WorkMode
010062: 256C JEQ (0x033c)

子函数

if (WorkMode == DOWLOAD_MODE)

{

。。。。同样的条件,在另外一个函数中条件成立时不能执行,反之条件不成立却能执行

}
01074c: 93A2 1A0E CMP.W #2,&WorkMode
010750: 217B JNE (0x0a48)