<?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: How to create two initialized data sections in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-create-two-initialized-data-sections/m-p/2136762#M67719</link>
    <description>&lt;P&gt;To place&amp;nbsp;some initialized data into&amp;nbsp;m_data2,&amp;nbsp;you need to:&lt;BR /&gt;-Create a new section&amp;nbsp;in your linker script for the initialized data that should go into&amp;nbsp;m_data2.&lt;BR /&gt;-Use a section attribute&amp;nbsp;in your source code to place specific variables into that section.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jul 2025 20:08:13 GMT</pubDate>
    <dc:creator>Omar_Anguiano</dc:creator>
    <dc:date>2025-07-18T20:08:13Z</dc:date>
    <item>
      <title>How to create two initialized data sections</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-create-two-initialized-data-sections/m-p/2135002#M67713</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MCUXpresso V11.5.0 for my FRDM-K66. I have a question:&lt;/P&gt;&lt;P&gt;Here is the part of link file:&lt;/P&gt;&lt;P&gt;.data : AT(__DATA_ROM)&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;__DATA_RAM = .;&lt;BR /&gt;__data_start__ = .; /* create a global symbol at data start */&lt;BR /&gt;*(.data) /* .data sections */&lt;BR /&gt;*(.data*) /* .data* sections */&lt;BR /&gt;KEEP(*(.jcr*))&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;__data_end__ = .; /* define a global symbol at data end */&lt;BR /&gt;} &amp;gt; m_data1&lt;/P&gt;&lt;P&gt;/* Symbol is used by startup for data initialization */&lt;BR /&gt;__DATA_END = __DATA_ROM + (__data_end__ - __data_start__) ;&lt;/P&gt;&lt;P&gt;/* Uninitialized data section */&lt;BR /&gt;.bss :&lt;BR /&gt;{&lt;BR /&gt;/* This is used by the startup in order to initialize the .bss section */&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;__START_BSS = .;&lt;BR /&gt;__bss_start__ = .;&lt;BR /&gt;*(.bss)&lt;BR /&gt;*(.bss*)&lt;BR /&gt;*(COMMON)&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;__bss_end__ = .;&lt;BR /&gt;__END_BSS = .;&lt;BR /&gt;/* } &amp;gt; m_data1*/&lt;BR /&gt;} &amp;gt; m_data2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will put the initialized data into m_data1 SRAM(64K) and works fine...&lt;/P&gt;&lt;P&gt;I want to put some initialized data into&amp;nbsp;m_data2 SRAM(192K)...&lt;/P&gt;&lt;P&gt;I tried several ways and got failed...&lt;/P&gt;&lt;P&gt;Can anybody help me to define two initialized data sections for my project?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 12:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-create-two-initialized-data-sections/m-p/2135002#M67713</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2025-07-16T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create two initialized data sections</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-create-two-initialized-data-sections/m-p/2136762#M67719</link>
      <description>&lt;P&gt;To place&amp;nbsp;some initialized data into&amp;nbsp;m_data2,&amp;nbsp;you need to:&lt;BR /&gt;-Create a new section&amp;nbsp;in your linker script for the initialized data that should go into&amp;nbsp;m_data2.&lt;BR /&gt;-Use a section attribute&amp;nbsp;in your source code to place specific variables into that section.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 20:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-create-two-initialized-data-sections/m-p/2136762#M67719</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2025-07-18T20:08:13Z</dc:date>
    </item>
  </channel>
</rss>

