<?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: BSS section problems KDS3.0 with kv4x  in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BSS-section-problems-KDS3-0-with-kv4x/m-p/621838#M8000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;i was already confident with the first link you gave me, i knew that bss was where to put&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;uninitalized data, and i think also the data intialized as zero goes there.&amp;nbsp;&lt;BR /&gt;I took care of all the initialization but i think sometimes code optimization play me. I solved the problem simply reorganizing the code so there is still some "black magic" for me.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I was hoping to find a much easier (and portable) solution than using the section attribute, but i think there is "no free lunch", thanks for the link, &amp;nbsp;i &amp;nbsp;really missed that topic...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anyway thanks for help!!! the topic helped me to have a deeper understanding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 13:24:16 GMT</pubDate>
    <dc:creator>robertozanichel</dc:creator>
    <dc:date>2017-02-16T13:24:16Z</dc:date>
    <item>
      <title>BSS section problems KDS3.0 with kv4x</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BSS-section-problems-KDS3-0-with-kv4x/m-p/621836#M7998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I've a problem related to linker allocation of memory sections, the linker keep putting variables in .bss memory section even if they are initialized and different from 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The #pragma section instruction on the arm site (that i've seen in a similar discussion) &amp;nbsp;seems to have no effect.&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COMPILER OUTPUT:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Invoking: Cross ARM C++ Linker&lt;/P&gt;&lt;P&gt;.....&lt;BR /&gt;..../kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: myelf.elf section `.bss' will not fit in region `m_data'&lt;BR /&gt;..../kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: region `m_data' overflowed by 92 bytes&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to know if there is an effective and proved solution to avoid bss occupation because every global variable that i use has it's own initialization function that is called inside the code so i don't see the need of the compiler to do it before my initialization.&lt;/P&gt;&lt;P&gt;Thaks for help,&lt;/P&gt;&lt;P&gt;i hope you help me to clarify this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BSS-section-problems-KDS3-0-with-kv4x/m-p/621836#M7998</guid>
      <dc:creator>robertozanichel</dc:creator>
      <dc:date>2017-02-10T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: BSS section problems KDS3.0 with kv4x</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BSS-section-problems-KDS3-0-with-kv4x/m-p/621837#M7999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;- The .bss contains all the uninitalized data.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/" title="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/"&gt;text, data and bss: Code and Data Size Explained | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- If the RAM overflowed, you can relocate the variable into flash , the detail steps&lt;/P&gt;&lt;P&gt;please refer to this DOC:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104433"&gt;Relocating Code and Data Using the KDS GCC Linker File for Kinetis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 03:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BSS-section-problems-KDS3-0-with-kv4x/m-p/621837#M7999</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-02-15T03:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: BSS section problems KDS3.0 with kv4x</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BSS-section-problems-KDS3-0-with-kv4x/m-p/621838#M8000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;i was already confident with the first link you gave me, i knew that bss was where to put&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;uninitalized data, and i think also the data intialized as zero goes there.&amp;nbsp;&lt;BR /&gt;I took care of all the initialization but i think sometimes code optimization play me. I solved the problem simply reorganizing the code so there is still some "black magic" for me.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I was hoping to find a much easier (and portable) solution than using the section attribute, but i think there is "no free lunch", thanks for the link, &amp;nbsp;i &amp;nbsp;really missed that topic...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anyway thanks for help!!! the topic helped me to have a deeper understanding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 13:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BSS-section-problems-KDS3-0-with-kv4x/m-p/621838#M8000</guid>
      <dc:creator>robertozanichel</dc:creator>
      <dc:date>2017-02-16T13:24:16Z</dc:date>
    </item>
  </channel>
</rss>

