when debug with load flash but failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

when debug with load flash but failed

1,119 Views
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 Kudos
Reply
1 Reply

1,066 Views
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 Kudos
Reply