<?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: SRAM in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SRAM/m-p/308032#M13115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gae,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to manipulate the linker file (.lcf if you are using Freescale compiler or .ld if you are using GCC)&amp;nbsp; to create an external RAM memory segment and a new section where you are going to place the relocated data. The attached document explains how to do this with GCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases you need also to use a compiler directive in the source file to tell the compiler which are the variables that are being relocated in external RAM. The document shows how to do this with a function. With variables you can follow the same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 23:17:12 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2014-05-29T23:17:12Z</dc:date>
    <item>
      <title>SRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SRAM/m-p/308031#M13114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am working with TWR K70. I would need to use the external SRAM (ext RAM of the tower) like the internal RAM&amp;nbsp; to allocate variables without direct addressing.&lt;/P&gt;&lt;P&gt;I mean I want to define a macro (#define XDATA) that allocates the variable in exeternal RAM.&lt;/P&gt;&lt;P&gt;At moment I allocate the variable in a specific address of external RAM&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;int*test1=(int*)ADDR1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;float*test2=(float*)ADDR2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;where ADDR1 and ADDR2 are calculated before to avoid overwritten.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have the below situation:&lt;/P&gt;&lt;P&gt;(maybe it need previous section define in *.lcf file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define ADDRESSING&amp;nbsp;&amp;nbsp; ...something...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int ADDRESSING test1;&lt;/P&gt;&lt;P&gt;float ADDRESSING test2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the variable will be allocated in external RAM "automatically".&lt;/P&gt;&lt;P&gt;Is it possible to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gae&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 10:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SRAM/m-p/308031#M13114</guid>
      <dc:creator>gaetanoanania</dc:creator>
      <dc:date>2014-05-29T10:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: SRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SRAM/m-p/308032#M13115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gae,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to manipulate the linker file (.lcf if you are using Freescale compiler or .ld if you are using GCC)&amp;nbsp; to create an external RAM memory segment and a new section where you are going to place the relocated data. The attached document explains how to do this with GCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases you need also to use a compiler directive in the source file to tell the compiler which are the variables that are being relocated in external RAM. The document shows how to do this with a function. With variables you can follow the same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 23:17:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SRAM/m-p/308032#M13115</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-05-29T23:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: SRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SRAM/m-p/308033#M13116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;thank you. I think your advice will be useful a lot. I 'll let you know .&lt;/P&gt;&lt;P&gt;Gae&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 07:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SRAM/m-p/308033#M13116</guid>
      <dc:creator>gaetanoanania</dc:creator>
      <dc:date>2014-05-30T07:46:54Z</dc:date>
    </item>
  </channel>
</rss>

