<?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: Using Pragma in MCUXpresso in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972474#M2676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of attribute do you want to use?&lt;/P&gt;&lt;P&gt;The standard way to tell the compiler special ways for gcc is using __attribute__ (see &lt;A class="link-titled" href="https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes" title="https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes"&gt;Using the GNU Compiler Collection (GCC): Common Variable Attributes&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2019 17:19:39 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2019-06-25T17:19:39Z</dc:date>
    <item>
      <title>Using Pragma in MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972473#M2675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;I'm wondering how to use Pragam on MCUXpresso IDE (MKE16Z64xxx4).&lt;/SPAN&gt; &lt;SPAN title=""&gt;How should I proceed?&lt;/SPAN&gt; &lt;SPAN title=""&gt;I need to put an array of values in Flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;#pragma ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN title=""&gt;const float min_max [23] [2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;{3.1415, 2.54},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;};&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972473#M2675</guid>
      <dc:creator>m_giraldi</dc:creator>
      <dc:date>2019-06-25T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pragma in MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972474#M2676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of attribute do you want to use?&lt;/P&gt;&lt;P&gt;The standard way to tell the compiler special ways for gcc is using __attribute__ (see &lt;A class="link-titled" href="https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes" title="https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes"&gt;Using the GNU Compiler Collection (GCC): Common Variable Attributes&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972474#M2676</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-06-25T17:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pragma in MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972475#M2677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Imagine the data below ( const unsigned char texto[4][128] ), if I declare this way, this data will be allocated in the SRAM, I do not want this to happen, I need this data to be allocated in Flash.&lt;/SPAN&gt; &lt;SPAN title=""&gt;In Codewarrior I used the pragma and this data was allocated in ROM.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class="" lang="en"&gt;&lt;BR /&gt;// Codewarrior ========================================&lt;BR /&gt;&lt;SPAN class="" title=""&gt;#pragma CONST_SEG ROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN title=""&gt;/ *&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="" title=""&gt;"in here I put all the const that I needed to be allocated in ROM"&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN title=""&gt;* /&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class="" lang="en"&gt;const unsigned char texto[4][128] = { .... };&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="" title=""&gt;#pragma CONST_SEG DEFAULT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;//==================================================&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;How to allocate " const unsigned char texto[4][128] " in Flash and not in SRAM using MCUXpresso?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;I'm using MKE16Z64VLF4&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"data"&lt;/P&gt;&lt;P&gt;const unsigned char texto[4][128] = { {0xFF, 0xFF, ... }, {0xFF, 0xFF, ....}, {0xFF, 0xFF, ...}, {0xFF, 0xFF, ...} };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 19:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972475#M2677</guid>
      <dc:creator>m_giraldi</dc:creator>
      <dc:date>2019-06-25T19:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pragma in MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972476#M2678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the MCUXpresso Usr Guide. NXP provide macros to help you do this, as described in the chapter on Placing specific code/data items. (Chapter 18.13 in latest user guide).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 20:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972476#M2678</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-06-25T20:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pragma in MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972477#M2679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the default/standard SDK linker files, then all constant objects get placed in FLASH anyway, so you don't need any #pragma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 08:37:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/972477#M2679</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-06-26T08:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pragma in MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/2106673#M5666</link>
      <description>I'm wondering how to use Pragma on VScode MCUXpresso。I need to put a piece of code into the specified section.But it was ignored by the compiler.&lt;BR /&gt;#pragma GCC push_options&lt;BR /&gt;#pragma GCC section text=".custom_code"&lt;BR /&gt;void func(void)&lt;BR /&gt;{}&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;#pragma GCC pop_options&lt;BR /&gt;&lt;BR /&gt;warning:ignoring '#pragma GCC section' [-Wunknown-pragmas]</description>
      <pubDate>Thu, 29 May 2025 02:34:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Using-Pragma-in-MCUXpresso/m-p/2106673#M5666</guid>
      <dc:creator>zmm</dc:creator>
      <dc:date>2025-05-29T02:34:37Z</dc:date>
    </item>
  </channel>
</rss>

