<?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 Syntax to allocate memory assignments to faster memory in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292860#M11828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I've read through the MCU_Kinetis_Compiler.pdf document and other links on the web and having problems with the syntax needed with the Kinetis GCC compiler to re-direct RAM allocaiton to different sections specified by the linker file.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;How this came about:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I now have the TWR-MEM board operating, but the mmem is slow.&amp;nbsp; I want my emac buffers and ADC buffers to use the internal SRAM, but all other memory to use the slower mmem.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Now I have my linker file modified to specify all memory to use the mmem.&amp;nbsp; This was easy to do with the linker file modified as follows:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;DIV&gt;MEMORY {&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x00000410, LENGTH = 0x0007FBF0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x60000000, LENGTH = 0x00080000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_00000000 (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x0001E000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_20000000 (RW) : ORIGIN = 0x2000E000, LENGTH = 0x00002000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;But my confusion now is the #pragma syntax needed in my source code to direct various buffers to use sections: m_data_00000000 and m_data_20000000.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Now I happen to have my network buffers declared as follows:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;DIV&gt;NET_BUFQ in_bufq[] =&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; { 16, 128 },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; { 33, 512 },&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I thought it would be as simple as adding the following:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;#pragma DATA_SECTION(in_bufq,"m_data_20000000")&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;But I get the following compiler warning, and my allocation is not where I expect it.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;DIV&gt;D:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/EWL_C/include/ctime:45:0: warning: ignoring #pragma options align [-Wunknown-pragmas]&lt;P&gt;&lt;/P&gt;&lt;P&gt;D:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/EWL_C/include/ctime:307:0: warning: ignoring #pragma options align [-Wunknown-pragmas]&lt;/P&gt;&lt;P&gt;../Sources/userdata.c:229:0: warning: ignoring #pragma DATA_SECTION&amp;nbsp; [-Wunknown-pragmas]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what the correct syntax should be to instruct the tool chain to allocate my buffers to the memory location I want them located in?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Nov 2013 23:05:15 GMT</pubDate>
    <dc:creator>terrybiberdorf</dc:creator>
    <dc:date>2013-11-21T23:05:15Z</dc:date>
    <item>
      <title>Syntax to allocate memory assignments to faster memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292860#M11828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I've read through the MCU_Kinetis_Compiler.pdf document and other links on the web and having problems with the syntax needed with the Kinetis GCC compiler to re-direct RAM allocaiton to different sections specified by the linker file.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;How this came about:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I now have the TWR-MEM board operating, but the mmem is slow.&amp;nbsp; I want my emac buffers and ADC buffers to use the internal SRAM, but all other memory to use the slower mmem.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Now I have my linker file modified to specify all memory to use the mmem.&amp;nbsp; This was easy to do with the linker file modified as follows:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;DIV&gt;MEMORY {&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x00000410, LENGTH = 0x0007FBF0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x60000000, LENGTH = 0x00080000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_00000000 (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x0001E000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_20000000 (RW) : ORIGIN = 0x2000E000, LENGTH = 0x00002000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;But my confusion now is the #pragma syntax needed in my source code to direct various buffers to use sections: m_data_00000000 and m_data_20000000.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Now I happen to have my network buffers declared as follows:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;DIV&gt;NET_BUFQ in_bufq[] =&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; { 16, 128 },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; { 33, 512 },&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I thought it would be as simple as adding the following:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;#pragma DATA_SECTION(in_bufq,"m_data_20000000")&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;But I get the following compiler warning, and my allocation is not where I expect it.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;DIV&gt;D:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/EWL_C/include/ctime:45:0: warning: ignoring #pragma options align [-Wunknown-pragmas]&lt;P&gt;&lt;/P&gt;&lt;P&gt;D:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/EWL_C/include/ctime:307:0: warning: ignoring #pragma options align [-Wunknown-pragmas]&lt;/P&gt;&lt;P&gt;../Sources/userdata.c:229:0: warning: ignoring #pragma DATA_SECTION&amp;nbsp; [-Wunknown-pragmas]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what the correct syntax should be to instruct the tool chain to allocate my buffers to the memory location I want them located in?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 23:05:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292860#M11828</guid>
      <dc:creator>terrybiberdorf</dc:creator>
      <dc:date>2013-11-21T23:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax to allocate memory assignments to faster memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292861#M11829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Terry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking with this issue. I will let you know when I could get any updated info.&lt;/P&gt;&lt;P&gt;Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 02:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292861#M11829</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-11-22T02:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax to allocate memory assignments to faster memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292862#M11830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Customer can refer below info about define variable in dedicated memory range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LCF file:&lt;/P&gt;&lt;P&gt;MEMORY {&lt;/P&gt;&lt;P&gt;&amp;nbsp; display&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x60100000, LENGTH = 0x00020000&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTIONS {&lt;/P&gt;&lt;P&gt; ___display_ROMStart = ___display_ram_ROMStart + SIZEOF(.display_ram);&lt;/P&gt;&lt;P&gt;&amp;nbsp; .display : AT(___display_ROMStart)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___display_RAMStart = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.display) /* This is an User defined section */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___display_RAMEnd = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &amp;gt; display&lt;/P&gt;&lt;P&gt;&amp;nbsp; ___display_ROMSize = ___display_RAMEnd - ___display_RAMStart;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C file:&lt;/P&gt;&lt;P&gt;#pragma define_section my_ram2 ".display" abs32 RW&lt;/P&gt;&lt;P&gt;__declspec(section "my_ram2") GuiConst_INT8U Display[511];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 03:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292862#M11830</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-11-22T03:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax to allocate memory assignments to faster memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292863#M11831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ma&lt;/P&gt;&lt;P&gt;Your description helps but I'm still having problems connecting my C code to the linker script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case my linker script is as follows.&amp;nbsp; I would like to place my high speed buffer into memory location = m_data_20000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEMORY {&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x00000410, LENGTH = 0x0007FBF0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x60000000, LENGTH = 0x00080000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_00000000 (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000 &lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00010000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the C code I have the following questions:&lt;/P&gt;&lt;P&gt;#pragma define_section high_speed_buffer_storage ".m_data_20000000" &lt;STRONG&gt;abs32&lt;/STRONG&gt; RW&lt;/P&gt;&lt;P&gt;//question: can you tell me what the named section &lt;STRONG&gt;abs32&lt;/STRONG&gt; represents?&amp;nbsp; Does it matter what I place here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__declspec(section "high_speed_buffer_storage ") GuiConst_INT8U Display[511];&lt;/P&gt;&lt;P&gt;// question: I've search my code and I cannot find any reference to &lt;STRONG&gt;GuiConst_INT8U&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;// This look like its a variable type definition.&amp;nbsp; Where is this defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What syntax is needed for my case of&amp;nbsp; __declspec line to assign mybuffer to the memory section &lt;STRONG&gt;high_speed_buffer_storage&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;My variable type is: &lt;STRONG&gt;in_bufq&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My buffer is as follows:&lt;/P&gt;&lt;P&gt;typedef struct&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int32_t bufNumber;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int32_t bufSize;&lt;/P&gt;&lt;P&gt;}NET_BUFQ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma define_section high_speed_buffer_storage ".m_data_20000000" abs32 RW&lt;/P&gt;&lt;P&gt;__declspec(section "high_speed_buffer_storage") NET_BUFQ in_bufq[3];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NET_BUFQ in_bufq[] =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; { 16, 128 },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; { 33, 512 },&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The compiler output is as follows:&lt;/P&gt;&lt;P&gt;D:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/EWL_C/include/ctime:45:0: warning: ignoring #pragma options align [-Wunknown-pragmas]&lt;/P&gt;&lt;P&gt;D:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/EWL_C/include/ctime:307:0: warning: ignoring #pragma options align [-Wunknown-pragmas]&lt;/P&gt;&lt;P&gt;../Sources/userdata.c:230:0: warning: ignoring #pragma define_section high_speed_buffer_storage [-Wunknown-pragmas]&lt;/P&gt;&lt;P&gt;../Sources/userdata.c:231:20: error: expected ')' before string constant&lt;/P&gt;&lt;P&gt;mingw32-make: *** [Sources/userdata.o] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 17:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292863#M11831</guid>
      <dc:creator>terrybiberdorf</dc:creator>
      <dc:date>2013-11-22T17:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Syntax to allocate memory assignments to faster memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292864#M11832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Terry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your linker file you should have something like the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_1385227157123263 jive_text_macro jive_macro_code" jivemacro_uid="_1385227157123263" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; ___m_data_20000000_ROMStart = ___ROM_AT + SIZEOF(.data);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; .m_data_20000000 : AT(___m_data_20000000_ROMStart)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___m_data_20000000_RAMStart = .;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.m_data_20000000) /* This is an User defined section */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___m_data_20000000_RAMEnd = .;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; } &amp;gt; m_data_20000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ___m_data_20000000_ROMSize = ___m_data_20000000_RAMEnd - ___m_data_20000000_RAMStart;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case, you can locate your data structure with the next code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13852274203752161" jivemacro_uid="_13852274203752161"&gt;
&lt;P&gt;typedef struct&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int bufNumber;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int bufSize;&lt;/P&gt;
&lt;P&gt;}NET_BUFQ;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;__attribute__ ((section(".m_data_20000000"))) NET_BUFQ in_bufq[] =&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; { 16, 128 },&lt;/P&gt;
&lt;P&gt;&amp;nbsp; { 33, 512 },&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a few comments to clarify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - &lt;STRONG&gt;GuiConst_INT8U&lt;/STRONG&gt; is a variable from a custom example, so you won't find it in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - &lt;STRONG&gt;__declspec&lt;/STRONG&gt; directive works for Freescale Compiler, but in this case you are using GCC compiler, and you need to use &lt;STRONG&gt;__attribute__&lt;/STRONG&gt; instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :smileyalert: You read &lt;STRONG&gt;MCU_Kinetis_Compiler.pdf&lt;/STRONG&gt; from CodeWarrior 10.4, which includes information about both Freescale and GCC compilers. In CodeWarrior 10.5 there are separate documents: &lt;STRONG&gt;MCU_Kinetis_Compiler.pdf&lt;/STRONG&gt; and &lt;STRONG&gt;MCU_Kinetis_GCC.pdf&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When working with GCC tools, you can refer to the next files for more details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- C:\Freescale\CW MCU v10.4\Cross_Tools\arm-none-eabi-gcc-4_7_3\share\doc\gcc-arm-none-eabi\pdf\ld.pdf&lt;/P&gt;&lt;P&gt;- C:\Freescale\CW MCU v10.4\Cross_Tools\arm-none-eabi-gcc-4_7_3\share\doc\gcc-arm-none-eabi\pdf\gcc\gcc.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you find this useful &lt;IMG alt="Smiley Happy" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="https://community.nxp.com/i/smilies/16x16_smiley-happy.png" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Jorge Gonzalez &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:07:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Syntax-to-allocate-memory-assignments-to-faster-memory/m-p/292864#M11832</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2020-11-02T13:07:35Z</dc:date>
    </item>
  </channel>
</rss>

