<?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>CodeWarrior for MCUのトピックRe: Placing strings</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174367#M5579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Erich suggestion, I saved a lot of RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 10:06:00 GMT</pubDate>
    <dc:creator>Teckna</dc:creator>
    <dc:date>2012-12-13T10:06:00Z</dc:date>
    <item>
      <title>Placing strings</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174362#M5574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using CW 10.2, MQX 3.8.1 and Kinetis K60.&lt;/P&gt;&lt;P&gt;Due to an alomst full RAM use, I'm doing some optimization in my code.&lt;/P&gt;&lt;P&gt;I noticed that the instruction:&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;printf( "String to print\n");&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P&gt;Is compiled putting the pointer to the string in the register and then calling the printf function: the pointer points to an address placed in RAM that is initialized in the startup phase by copying data from the flash to the RAM.&lt;/P&gt;&lt;P&gt;I would like to put the string "String to printf\n" only in flash the way the copying phase is not needed and the RAM location can be used in another way.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How must I specify this requirement in CW?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:23:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174362#M5574</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2020-10-29T09:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Placing strings</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174363#M5575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No one can help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 14:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174363#M5575</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2012-11-15T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Placing strings</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174364#M5576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell the string constants are allocated in section .rodata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check in your linker file, where this section is placed.&lt;/P&gt;&lt;P&gt;If it is placed in a block of memory located in RAM, you may just have to move it over into a block of memory located in flash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 07:15:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174364#M5576</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-11-16T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Placing strings</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174365#M5577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;there is a compiler option you have to set for putting strings into .rodata:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2837_2837.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118971iB8230AF930B8EB66/image-size/large?v=v2&amp;amp;px=999" role="button" title="2837_2837.png" alt="2837_2837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 07:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174365#M5577</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-16T07:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Placing strings</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174366#M5578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there Teckna!&lt;/P&gt;&lt;P&gt;Has this helped you out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would like to know how is your project going!&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 23:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174366#M5578</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2012-12-12T23:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Placing strings</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174367#M5579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Erich suggestion, I saved a lot of RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 10:06:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-strings/m-p/174367#M5579</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2012-12-13T10:06:00Z</dc:date>
    </item>
  </channel>
</rss>

