<?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>MPC5xxx中的主题 Re: MPC5606B Configure variable in RAM to run</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412936#M862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;that's what it does. In the example above, the startup files will copy the initial values stored in myROM to myRAM.&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2015 12:47:40 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2015-08-11T12:47:40Z</dc:date>
    <item>
      <title>MPC5606B Configure variable in RAM to run</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412931#M857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstly,the global variable are configured to flash address which i defined; i hope the variable copy to RAM address which i defined when workspace start running;&lt;/P&gt;&lt;P&gt;can offer me sample code?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 05:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412931#M857</guid>
      <dc:creator>明伟张</dc:creator>
      <dc:date>2015-08-05T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5606B Configure variable in RAM to run</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412932#M858</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;here is the example:&lt;/P&gt;&lt;P&gt;In linker file I added myROM and myRAM segment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resetvector:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00000000,&amp;nbsp;&amp;nbsp; len = 0x00000008&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; init:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00000020,&amp;nbsp;&amp;nbsp; len = 0x00000FE0&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exception_handlers:&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00001000,&amp;nbsp;&amp;nbsp; len = 0x00001000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal_flash:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00002000,&amp;nbsp;&amp;nbsp; len = 0x000FD000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myROM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x000FF000,&amp;nbsp;&amp;nbsp; len = 0x00001000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal_ram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40000000,&amp;nbsp;&amp;nbsp; len = 0x00011000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myRAM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40011000,&amp;nbsp;&amp;nbsp; len = 0x00001000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; heap&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40012000,&amp;nbsp;&amp;nbsp; len = 0x00001000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; stack :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x40013000,&amp;nbsp;&amp;nbsp; len = 0x00001000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this syntax in SECTION:&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;.myRAM BIND(ADDR(myRAM)) LOAD (ADDR(myROM)): {} &amp;gt; myRAM&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in *.c file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma push&lt;/P&gt;&lt;P&gt;#pragma section sdata_type ".myRAM" ".myRAM"&lt;/P&gt;&lt;P&gt;unsigned int my_var1 = 0x11223344;&lt;/P&gt;&lt;P&gt;unsigned int my_var2 = 0xAABBCCDD;&lt;/P&gt;&lt;P&gt;unsigned int my_var3 = 0x55556666;&lt;/P&gt;&lt;P&gt;#pragma pop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial values will be copied during startup from myROM to variables in myRAM.&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>Thu, 06 Aug 2015 12:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412932#M858</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2015-08-06T12:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5606B Configure variable in RAM to run</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412933#M859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the two question is not&amp;nbsp; same! In fact,for exampel:&lt;/P&gt;&lt;P&gt;i define a variable in flash as follow:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;MEMORY&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;{&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;...&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 2px 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;my_flash:&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style="padding: 2px 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;org = 0x003FF000,&amp;nbsp;&amp;nbsp; len = 0x00001000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;...&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;}&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;SECTIONS&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;{&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;...&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;.__my_flash LOAD (0x003FF000): {} &amp;gt; my_flash&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;...&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;}&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;In *.c file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;#pragma push&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;#pragma section all_types ".__my_flash" ".__my_flash "&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt; uint32_t test = 0x1234;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;#pragma pop&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;if it is OK,i want the variable "test"&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; initial values can be copied during startup from my_flash to variables in myRAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;so how to configure the myRAM in&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; *.c file:?? thanks! can offer me a sample code?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;thanks verry verry much!!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 00:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412933#M859</guid>
      <dc:creator>明伟张</dc:creator>
      <dc:date>2015-08-07T00:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5606B Configure variable in RAM to run</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412934#M860</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;you have to do it exactly in the same way as I showed in my previous post if you want to have variable in RAM that is initialized during startup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above can be used only for constant in flash.&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>Fri, 07 Aug 2015 07:23:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412934#M860</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2015-08-07T07:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5606B Configure variable in RAM to run</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412935#M861</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;I know,thanks.&lt;/P&gt;&lt;P&gt;but i also have a question,the variable is configured in Flash,i want the variable copy to ram address which i defined before MCU run?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 00:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412935#M861</guid>
      <dc:creator>明伟张</dc:creator>
      <dc:date>2015-08-11T00:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5606B Configure variable in RAM to run</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412936#M862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;that's what it does. In the example above, the startup files will copy the initial values stored in myROM to myRAM.&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:47:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412936#M862</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2015-08-11T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5606B Configure variable in RAM to run</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412937#M863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks! the problem is OK!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:01:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5606B-Configure-variable-in-RAM-to-run/m-p/412937#M863</guid>
      <dc:creator>明伟张</dc:creator>
      <dc:date>2015-08-12T09:01:52Z</dc:date>
    </item>
  </channel>
</rss>

