<?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>S12 / MagniV MicrocontrollersのトピックRe: How can I place an array of constants in program memory?</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129338#M1160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;We have a similar problem but we have arrays that are 16K+ in total size.&amp;nbsp; The linker wants to move this array into data flash or data ram but there isn't enough space.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We just want to keep all of our arrays in program flash and access it there since there is 128K flash there.&amp;nbsp; Nothing works, constants, __pmem, making our own memory sections...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyone have the answer to this simple need?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2008 01:37:56 GMT</pubDate>
    <dc:creator>glenn_calmotion</dc:creator>
    <dc:date>2008-02-28T01:37:56Z</dc:date>
    <item>
      <title>How can I place an array of constants in program memory?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129335#M1157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;DSP56F805 (DSP56800 series)&lt;/DIV&gt;&lt;DIV&gt;CW 5.6.1.1658 - DSP56800-R7.0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I need to move a "large" (2k)&amp;nbsp;array out of data&amp;nbsp;memory and place it in program memory.&amp;nbsp; In the DSP56800E version there is a __pmem modifier to cause variables to be place in program memory but this is unavailable on the 56800 version.&amp;nbsp; Could I use&amp;nbsp; inline asm code and org it P the create the array.&amp;nbsp; If so, how do I reference a variable created in assembly from the main program?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 00:16:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129335#M1157</guid>
      <dc:creator>Mel1949</dc:creator>
      <dc:date>2006-03-21T00:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I place an array of constants in program memory?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129336#M1158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It seems to me that you can declare a const variable, which would go into flash in the section (or whatever it's called in CW) for read-only data (I call ".rodata"). If needed, you would use pragma to direct it to any other section.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 05:58:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129336#M1158</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2006-03-21T05:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I place an array of constants in program memory?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129337#M1159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks Jeff&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I was getting a linker error Segment Overflow with the pRom-xRam target.&amp;nbsp; Changed target to xRom-xRam and it links fine.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 02:38:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129337#M1159</guid>
      <dc:creator>Mel1949</dc:creator>
      <dc:date>2006-03-22T02:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I place an array of constants in program memory?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129338#M1160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;We have a similar problem but we have arrays that are 16K+ in total size.&amp;nbsp; The linker wants to move this array into data flash or data ram but there isn't enough space.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We just want to keep all of our arrays in program flash and access it there since there is 128K flash there.&amp;nbsp; Nothing works, constants, __pmem, making our own memory sections...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyone have the answer to this simple need?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 01:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-can-I-place-an-array-of-constants-in-program-memory/m-p/129338#M1160</guid>
      <dc:creator>glenn_calmotion</dc:creator>
      <dc:date>2008-02-28T01:37:56Z</dc:date>
    </item>
  </channel>
</rss>

