<?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>Classic/Legacy CodeWarriorのトピックRe: placing data in flash</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/placing-data-in-flash/m-p/189676#M4749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I assume you are using CodeWarrior for HC08 or CodeWarrior for HC12.&lt;/DIV&gt;&lt;DIV&gt;Is that right?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If this is the case, defining a variable as const will place it in a section called .rodata.&lt;/DIV&gt;&lt;DIV&gt;If you have created your project using the wizard, the section .rodata will automatically be allocated in flash.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So there is no need to specify any additional prefix to get it in there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2008 20:41:29 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2008-02-14T20:41:29Z</dc:date>
    <item>
      <title>placing data in flash</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/placing-data-in-flash/m-p/189675#M4748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im porting some code from AVR (the IAR compiler) to Freescale. For the avr there is a prefix '__flash' that tells the linker/compiler that the variable should be located in the flash, not the ram. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__flash const char str[] = "abc";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an equivalent way of doing it in CW witha prefix? or do I have to write something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const char str[] @"DEFAULT_ROM" = "abc";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Henrik&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Ftyda.se%2F%3Flang%3Dsv%26w%3Dekvivalent" rel="nofollow" target="_blank"&gt;https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Ftyda.se%2F%3Flang%3Dsv%26w%3Dekvivalent" rel="nofollow" target="_blank&lt;/A&gt;&lt;/STRONG&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 18:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/placing-data-in-flash/m-p/189675#M4748</guid>
      <dc:creator>hek</dc:creator>
      <dc:date>2008-02-14T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: placing data in flash</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/placing-data-in-flash/m-p/189676#M4749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I assume you are using CodeWarrior for HC08 or CodeWarrior for HC12.&lt;/DIV&gt;&lt;DIV&gt;Is that right?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If this is the case, defining a variable as const will place it in a section called .rodata.&lt;/DIV&gt;&lt;DIV&gt;If you have created your project using the wizard, the section .rodata will automatically be allocated in flash.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So there is no need to specify any additional prefix to get it in there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 20:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/placing-data-in-flash/m-p/189676#M4749</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-02-14T20:41:29Z</dc:date>
    </item>
  </channel>
</rss>

