<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Fixed variables in section of Coldfire RAM</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161214#M5121</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;When you are using the define_section pragma and __declspec&amp;nbsp;keyword to place a variable in a user define section you need to make sure your section is placed into valid memory in the linker control file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you check that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Nov 2010 18:29:02 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2010-11-08T18:29:02Z</dc:date>
    <item>
      <title>Fixed variables in section of Coldfire RAM</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161213#M5120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing some work with a 5225x Coldfire and would like to be able to store certain variables In the battery backed-up first 16K of SRAM. We are using the 7.2 Code Warrior version, and Processor Expert... what's the easiest way to do this? I tried using define_section and __declspec() but was getting the "variable is referenced but has not been written" error from the linker. I suspect I have not set up the memory correctly... could you tell me how to do this with Processor Expert, or barring that how to edit the linker command file? Thanks! Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 13:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161213#M5120</guid>
      <dc:creator>rowol</dc:creator>
      <dc:date>2010-11-06T13:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed variables in section of Coldfire RAM</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161214#M5121</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;When you are using the define_section pragma and __declspec&amp;nbsp;keyword to place a variable in a user define section you need to make sure your section is placed into valid memory in the linker control file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you check that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 18:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161214#M5121</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-11-08T18:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed variables in section of Coldfire RAM</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161215#M5122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CrasyCat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, I think that is exactly the problem I'm having.&amp;nbsp;&amp;nbsp; I tried a variety of things in the code, this was one of them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma define_section _datastr ".datastr" far_absolute RW&lt;BR /&gt;&lt;BR /&gt;__declspec(_datastr) int x12;&lt;BR /&gt;__declspec(_datastr) int y12;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Processor Expert, which generates an LCF file.&amp;nbsp;&amp;nbsp; What I think I want is a .datastr section from 0x20000000-0x200000FF then .data from 0x20000100- 0x2000FFFF.&amp;nbsp;&amp;nbsp; I tried using the CPU Bean build options to create a 4th memory area called datastr, but when I looked at the map file, I don't think this did what I want (i.e. the section didn't have a .datastr name like .data does.)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Processor Expert won't do what I want, I don't have a problem with disabling the LCF generation and manually editing the LCF file....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me what I would need to do?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to make a "section" inside the data "memory area" or do I need to define a whole new section?&amp;nbsp;&amp;nbsp;&amp;nbsp; If I could locate a section inside data at a specific address (the same way something like .bss and .romp appear in the map) that might be all I need to do (?)&amp;nbsp;&amp;nbsp; (I'm not sure of the terminology as to what's a segment, section, memory area, etc... haven't found doc on this yet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 02:32:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161215#M5122</guid>
      <dc:creator>rowol</dc:creator>
      <dc:date>2010-11-09T02:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed variables in section of Coldfire RAM</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161216#M5123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that &lt;A href="https://community.freescale.com/message/59817#59817" title="https://community.freescale.com/message/59817#59817"&gt;https://community.freescale.com/message/59817#59817&lt;/A&gt; link might help you solve the problem. There is an example for CFV1 and AC256 family but the format of lcf file should be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:11:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161216#M5123</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2010-11-09T17:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed variables in section of Coldfire RAM</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161217#M5124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vojtech,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that was exactly what I was looking for!&lt;/P&gt;&lt;P&gt;I tried it and it works great.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 01:58:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Fixed-variables-in-section-of-Coldfire-RAM/m-p/161217#M5124</guid>
      <dc:creator>rowol</dc:creator>
      <dc:date>2010-11-10T01:58:52Z</dc:date>
    </item>
  </channel>
</rss>

