<?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 kill the memory size limit for the variable? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378920#M1990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can allocate that variable in the m_data_2000000 area:&lt;/P&gt;&lt;P&gt;&lt;CODE class="bold cpp keyword"&gt;static&lt;/CODE&gt; uint8 &lt;CODE class="cpp plain"&gt;__attribute__((section (&lt;/CODE&gt;&lt;CODE class="cpp string"&gt;".m_data_20000000"&lt;/CODE&gt;&lt;CODE class="cpp plain"&gt;))) pic_data[MAX_DATA_LENGTH];&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;see&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/" title="http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/"&gt;http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/&lt;/A&gt;&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>Fri, 28 Nov 2014 09:51:17 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2014-11-28T09:51:17Z</dc:date>
    <item>
      <title>How to kill the memory size limit for the variable?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378919#M1989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the KDS IDE, I define a variable as follows:&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;EM&gt;#define MAX_DATA_LENGTH&lt;/EM&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;EM&gt;(1024*40&lt;/EM&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;uint8 pic_data[MAX_DATA_LENGTH];&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I build the project, compiler push these problem&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17070_17070.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120054i9D66C3CA0F549FF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="17070_17070.bmp" alt="17070_17070.bmp" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2014-11-28_153109.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47678i2186A8DAB29211EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2014-11-28_153109.bmp" alt="2014-11-28_153109.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I watch the .map file, I got the message as follow&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17071_17071.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120055iF264828605A73669/image-size/large?v=v2&amp;amp;px=999" role="button" title="17071_17071.bmp" alt="17071_17071.bmp" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2014-11-28_153038.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47679iD49435BC891CC7C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2014-11-28_153038.bmp" alt="2014-11-28_153038.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I think, the compiler have the limitation size of &lt;STRONG&gt;&lt;EM&gt;0x00008000 ,&lt;/EM&gt;&lt;/STRONG&gt;and I define the variable &lt;EM&gt;&lt;STRONG&gt;pic_data&lt;/STRONG&gt;&lt;/EM&gt; whitch overlow the limit.&lt;/P&gt;&lt;P&gt;Unfortunately, I have to define this variable which need to have buffer size of &lt;EM&gt;&lt;STRONG&gt;40*1024 &lt;/STRONG&gt;&lt;/EM&gt;byte.&lt;/P&gt;&lt;P&gt;Also, I select the MCU part number &lt;STRONG&gt;&lt;EM&gt;MK10DX256VLH7&lt;/EM&gt;&lt;/STRONG&gt;, and it has ram size of &lt;EM&gt;&lt;STRONG&gt;64k&lt;/STRONG&gt;&lt;/EM&gt; byte. I am sure the variable size is in the physical limit.&lt;/P&gt;&lt;P&gt;Can you tell me how to change the memory configuration!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;消息编辑者为：guo huoping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 07:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378919#M1989</guid>
      <dc:creator>guohuoping</dc:creator>
      <dc:date>2014-11-28T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to kill the memory size limit for the variable?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378920#M1990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can allocate that variable in the m_data_2000000 area:&lt;/P&gt;&lt;P&gt;&lt;CODE class="bold cpp keyword"&gt;static&lt;/CODE&gt; uint8 &lt;CODE class="cpp plain"&gt;__attribute__((section (&lt;/CODE&gt;&lt;CODE class="cpp string"&gt;".m_data_20000000"&lt;/CODE&gt;&lt;CODE class="cpp plain"&gt;))) pic_data[MAX_DATA_LENGTH];&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;see&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/" title="http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/"&gt;http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/&lt;/A&gt;&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>Fri, 28 Nov 2014 09:51:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378920#M1990</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-11-28T09:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to kill the memory size limit for the variable?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378921#M1991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich:&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378921#M1991</guid>
      <dc:creator>guohuoping</dc:creator>
      <dc:date>2014-11-28T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to kill the memory size limit for the variable?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378922#M1992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See as well the comments section in&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" data-content-finding="Community" href="http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/"&gt;http://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It would be possible that you combine the two memory areas, as long you do not have misaligned accesses.&lt;/P&gt;&lt;P&gt;Then you can have one piece of 64 KByte memory.&lt;/P&gt;&lt;P&gt;For this, remove the m_data_2000000 from the linker file and just use one 64 KByte data segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:37:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378922#M1992</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-11-28T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to kill the memory size limit for the variable?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378923#M1993</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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:03:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-kill-the-memory-size-limit-for-the-variable/m-p/378923#M1993</guid>
      <dc:creator>guohuoping</dc:creator>
      <dc:date>2014-11-28T11:03:04Z</dc:date>
    </item>
  </channel>
</rss>

