when debug with load flash but failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

when debug with load flash but failed

1,122件の閲覧回数
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,069件の閲覧回数
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 件の賞賛
返信