<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: McuXpresso Preprocessor ignored in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2045228#M5588</link>
    <description>&lt;P&gt;Goodmorning &lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186731" target="_self"&gt;&lt;SPAN class=""&gt;EdwinHz&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; i was going to exportating the code then open a case on yoyur link but now i just saw that preprocessor is not ingnore anymore, i don't know because today works! anyway thanks for your support, i close my issue without understand where the issue was.&amp;nbsp; thanks again!&lt;/P&gt;&lt;P&gt;Simoone&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 07:50:52 GMT</pubDate>
    <dc:creator>SimoneColomboWEG</dc:creator>
    <dc:date>2025-02-17T07:50:52Z</dc:date>
    <item>
      <title>McuXpresso Preprocessor ignored</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2040021#M5577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;im using mcuxpresso version &lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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).&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;#ifndef&lt;/SPAN&gt; &lt;SPAN&gt;PROTOCOL_ACTIVATED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;static&lt;/SPAN&gt;&lt;SPAN&gt; bool err;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint16_t sumT = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint16_t sumR = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; i = 0; i &amp;lt; TRANSFER_SIZE; i++ )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sumT += masterTxData[i];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sumR += masterRxData[i];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;( sumT != sumR )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;( err == false )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PRINTF( &lt;/SPAN&gt;&lt;SPAN&gt;"SPI Data err\r\n"&lt;/SPAN&gt;&lt;SPAN&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;err = true;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;err = false;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;static&lt;/SPAN&gt; &lt;SPAN&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN&gt; Error;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error = CNT_Spi_Handler(pCNT_SPI_RX_Data); &lt;/SPAN&gt;&lt;SPAN&gt;//&amp;amp;masterRxData[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// To Be Done &lt;/SPAN&gt;&lt;SPAN&gt;Gestione&lt;/SPAN&gt; &lt;SPAN&gt;Errori&lt;/SPAN&gt;&lt;SPAN&gt;! //&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where is the problem?!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Simone&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 13:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2040021#M5577</guid>
      <dc:creator>SimoneColomboWEG</dc:creator>
      <dc:date>2025-02-07T13:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: McuXpresso Preprocessor ignored</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2040137#M5578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245877"&gt;@SimoneColomboWEG&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;That's interesting. On my tests, when the conditional code is not true, the error messages of the controlled text do not matter (i.e. the compiler ignores the syntax errors, opposite to what happens on your side):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-02-07_11-55-56.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322956i057873280F74337E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2025-02-07_11-55-56.png" alt="2025-02-07_11-55-56.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does this happen in both Debug and Release build configurations for you?&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 18:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2040137#M5578</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2025-02-07T18:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: McuXpresso Preprocessor ignored</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2040776#M5579</link>
      <description>&lt;P&gt;Thanks for replied, i can't build in release, i don't use a different profile. i think is a problem that comes from a particular configuration from by project, is more of curiosity instead a real problem. i can work with a general define on code. if you want i can share with you my code (privatelly if is possible) if you can help me to find the issue.&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 09:07:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2040776#M5579</guid>
      <dc:creator>SimoneColomboWEG</dc:creator>
      <dc:date>2025-02-10T09:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: McuXpresso Preprocessor ignored</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2041111#M5581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245877"&gt;@SimoneColomboWEG&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Of course. You can share your code privately via a ticket on the following link:&amp;nbsp;&lt;A href="https://support.nxp.com/s/?language=en_US" target="_blank"&gt;https://support.nxp.com/s/?language=en_US&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Simply tag my name on the ticket's description and I will continue supporting you via that medium.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 18:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2041111#M5581</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2025-02-10T18:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: McuXpresso Preprocessor ignored</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2045228#M5588</link>
      <description>&lt;P&gt;Goodmorning &lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186731" target="_self"&gt;&lt;SPAN class=""&gt;EdwinHz&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; i was going to exportating the code then open a case on yoyur link but now i just saw that preprocessor is not ingnore anymore, i don't know because today works! anyway thanks for your support, i close my issue without understand where the issue was.&amp;nbsp; thanks again!&lt;/P&gt;&lt;P&gt;Simoone&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 07:50:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/McuXpresso-Preprocessor-ignored/m-p/2045228#M5588</guid>
      <dc:creator>SimoneColomboWEG</dc:creator>
      <dc:date>2025-02-17T07:50:52Z</dc:date>
    </item>
  </channel>
</rss>

