<?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 can I set up a section that the initialization code leaves alone? (on MCF521100) in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162576#M5294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the pointer. Looks like it fits the bill.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some kind of index to the FAQs? Lots to wade thru :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2009 04:57:32 GMT</pubDate>
    <dc:creator>mhahn12419</dc:creator>
    <dc:date>2009-03-17T04:57:32Z</dc:date>
    <item>
      <title>How can I set up a section that the initialization code leaves alone? (on MCF521100)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162574#M5292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is for a coldfile MCF52110 processor. Developing code with Codewarrior 5.9.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured out how to set up a section, by modifying the linker control file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In memory section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY {&lt;BR /&gt;&amp;nbsp; interrupts&amp;nbsp; (RX) : ORIGIN = 0x20000000, LENGTH = 0x00000500&lt;BR /&gt;&amp;nbsp; code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x20000500, LENGTH = 0x00002754&lt;BR /&gt;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x20002C54, LENGTH = 0x0000139C&lt;BR /&gt;&amp;nbsp; Magic_mem&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x20003FF0, LENGTH = 0x00000010&amp;nbsp; &amp;lt;== memory for my new section&lt;/P&gt;&lt;P&gt;&amp;nbsp; ipsbar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x40000000, LENGTH = 0x0&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SECTIONS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Magic : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.Magic)&lt;BR /&gt;&amp;nbsp; } &amp;gt; Magic_Mem&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then use a statement like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma define_section _Magic ".Magic" far_absolute R&lt;BR /&gt;__declspec (_Magic) char magic_data[16];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to set up variables in my new section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole reason I'm trying to do this is to try to set aside a small area of RAM that the compiler's initialization code doesn't clear to 0 or initialize to some value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why? I want to be able to save a few bytes of system status, so that after an unexpected reset, there is some way for the system to figure out what state it is supposed to be in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this all seems way too complicated. Is there an easier way to accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 19:58:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162574#M5292</guid>
      <dc:creator>mhahn12419</dc:creator>
      <dc:date>2009-03-16T19:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a section that the initialization code leaves alone? (on MCF521100)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162575#M5293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you look at FAQ-27500 on &lt;A href="http://www.freescale.com/" rel="nofollow" target="_blank"&gt;www.freescale.com?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should tell you how to achieve that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 20:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162575#M5293</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-16T20:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a section that the initialization code leaves alone? (on MCF521100)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162576#M5294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the pointer. Looks like it fits the bill.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some kind of index to the FAQs? Lots to wade thru :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 04:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162576#M5294</guid>
      <dc:creator>mhahn12419</dc:creator>
      <dc:date>2009-03-17T04:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a section that the initialization code leaves alone? (on MCF521100)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162577#M5295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would proceed as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Go to &lt;A href="http://www.freescale.com/CodeWarrior" rel="nofollow" target="_blank"&gt;www.freescale.com/CodeWarrior&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Click on the link "Power Architecture™ - mobileGT"&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Go to "Product Support" Tab&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp;Click on&amp;nbsp;the link "Search FAQ knowledgebase"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should see a list of all FAQs for CodeWarrior for MobileGT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 16:03:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/How-can-I-set-up-a-section-that-the-initialization-code-leaves/m-p/162577#M5295</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-18T16:03:13Z</dc:date>
    </item>
  </channel>
</rss>

