<?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 moved variable to certain section of RAM memory in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599954#M4487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is simple example which I copied from some old test project. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In linker file:&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;my_ram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40030000,&amp;nbsp;&amp;nbsp; len = 0x0000C000&amp;nbsp;&amp;nbsp; //just example, use addresses you need&lt;/P&gt;&lt;P&gt;...&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;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.__my_ram: {} &amp;gt; my_ram&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In *.c file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma push&lt;BR /&gt;#pragma section all_types ".__my_ram" ".__my_ram" data_mode=far_abs&lt;BR /&gt;volatile unsigned int data1;&lt;/P&gt;&lt;P&gt;volatile unsigned int data2;&lt;/P&gt;&lt;P&gt;volatile unsigned int data3;&lt;BR /&gt;#pragma pop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of data1, data2, data3 in RAM will be the same as order in this section. You can check it in the map file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 13:57:32 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2016-12-13T13:57:32Z</dc:date>
    <item>
      <title>How to moved variable to certain section of RAM memory</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599951#M4484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to know is&amp;nbsp; there in method to align the indivialial variable declared is such way that blow variable can be&amp;nbsp; moved&lt;/P&gt;&lt;P&gt;to some section of RAM memory,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want align below variable to RAM memory section to 0x40005000&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;volatile real32_T Main_KD = 6.0F; RAM address = 0x40005000&lt;BR /&gt;volatile real32_T Main_KD_limit = 1.0F; RAM address = 0x40005004&lt;BR /&gt;volatile real32_T Main_KP1 = 4.0F; RAM address = 0x40005008&lt;BR /&gt;volatile real32_T Main_KP2 = 2.0F; RAM address = 0x4000500C&lt;BR /&gt;volatile real32_T Main_KP_conv1 = 0.15F;&amp;nbsp; so on&lt;BR /&gt;volatile real32_T Main_KP_conv2 = 1.0F;&lt;BR /&gt;volatile real32_T Main_Threshold_off = 1.0F;&lt;BR /&gt;volatile real32_T Main_Threshold_on = 2.0F;&lt;BR /&gt;volatile real32_T Main_deadbandA = 0.0F;&lt;BR /&gt;volatile real32_T Main_deadbandB = 0.0F;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 06:40:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599951#M4484</guid>
      <dc:creator>vikasb</dc:creator>
      <dc:date>2016-12-12T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to moved variable to certain section of RAM memory</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599952#M4485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which device and which IDE do you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599952#M4485</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2016-12-13T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to moved variable to certain section of RAM memory</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599953#M4486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luncas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m using the MPC5553 controller with codewarrior IDE v2.8 for developing the software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599953#M4486</guid>
      <dc:creator>vikasb</dc:creator>
      <dc:date>2016-12-13T13:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to moved variable to certain section of RAM memory</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599954#M4487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is simple example which I copied from some old test project. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In linker file:&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;my_ram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40030000,&amp;nbsp;&amp;nbsp; len = 0x0000C000&amp;nbsp;&amp;nbsp; //just example, use addresses you need&lt;/P&gt;&lt;P&gt;...&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;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.__my_ram: {} &amp;gt; my_ram&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In *.c file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma push&lt;BR /&gt;#pragma section all_types ".__my_ram" ".__my_ram" data_mode=far_abs&lt;BR /&gt;volatile unsigned int data1;&lt;/P&gt;&lt;P&gt;volatile unsigned int data2;&lt;/P&gt;&lt;P&gt;volatile unsigned int data3;&lt;BR /&gt;#pragma pop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of data1, data2, data3 in RAM will be the same as order in this section. You can check it in the map file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599954#M4487</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2016-12-13T13:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to moved variable to certain section of RAM memory</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599955#M4488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for help, now I could manage the RAM memory addressing as per my need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 13:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-moved-variable-to-certain-section-of-RAM-memory/m-p/599955#M4488</guid>
      <dc:creator>vikasb</dc:creator>
      <dc:date>2016-12-14T13:25:10Z</dc:date>
    </item>
  </channel>
</rss>

