Hi,
im using mcuxpresso version 24.12 [Build 148] [2025-01-10], i'm usually use a preprocessor for global define but with a wrong behaviur of code i've checked that a preprocessor define is ignored by compiler and not by intellisense.
i've attached a immagine that show PROTOCOL_ACTIVATED on preprocessor , correctly the code is masked from intellisense but compile (i've generated an error).
#ifndef PROTOCOL_ACTIVATED
static bool err;
uint16_t sumT = 0;
uint16_t sumR = 0
for( int i = 0; i < TRANSFER_SIZE; i++ )
{
sumT += masterTxData[i];
sumR += masterRxData[i];
}
if( sumT != sumR )
{
if( err == false )
{
PRINTF( "SPI Data err\r\n" );
err = true;
}
}
else
{
err = false;
}
#else
static uint16_t Error;
Error = CNT_Spi_Handler(pCNT_SPI_RX_Data); //&masterRxData[0]
// To Be Done Gestione Errori! //
#endif
where is the problem?!
Simone