when debug with load flash but failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

when debug with load flash but failed

1,120 次查看
iysheng
Contributor II

I debug with a serial sample code with MC9S12ZVCA96MLF, when I have code like:

```C

#if SCI_MODULE == SCI1
interrupt VectorNumber_Vsci1 void SCIISR(void)
#endif /* SCI_MODULE == SCI1 */
{
// if the RDRF OR the OR flag is set
if (SCISR1 & (SCISR1_RDRF_MASK + SCISR1_OR_MASK))
RxISR(); //go get a character & place it in the buffer

//if transmit interrupts are enable AND the TDRE flag is set
if ((SCICR2 & SCICR2_TIE_MASK) && (SCISR1 & SCISR1_TDRE_MASK))
TxISR(); //go send a character to the host
}

```

and after I start debug with flash, I always get error like below:

2024-06-05 23 33 20.png

what's wrong with this.

 

0 项奖励
回复
1 回复

1,067 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

there is no possibility to investigate without entire code example.

BTW, your conditional compilation is related to function name but what about its body.

Entire code under conditional compilation should be in the condition block.

Best regards,

Ladislav

0 项奖励
回复