<?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: MC56F8366 - CW 5.9: How to force const into ROM in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255027#M6550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can manually update the cmd file.&lt;/P&gt;&lt;P&gt;Now, included in DSC V8.3, Processor Expert is a tool generator which can help you to create your application.&lt;/P&gt;&lt;P&gt;Lot of customers are using this tool.&lt;/P&gt;&lt;P&gt;You can create a project using Processor Expert with the project wizard File + New.&lt;/P&gt;&lt;P&gt;Some examples using: bootloader, Peripheral, etc ... are available.&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;Processor Expert Software is a development system to create, configure, optimize, migrate, and deliver software components that generate source code for Freescale silicon. Processor Expert software covers Freescale's S08/RS08, S12(X), ColdFire, ColdFire+, Kinetis, DSC 56800/E, QorIQ and some other Power Architecture® processors. Processor Expert software is available as part of the CodeWarrior tool suite or as an Eclipse-based plug-in feature for installation into an independent Eclipse environment...&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;For details I recommend you to have a look to :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.freescale.com/webapp/sps/site/homepage.jsp?code=BEAN_STORE_MAIN&amp;amp;tid=SWnT" title="http://www.freescale.com/webapp/sps/site/homepage.jsp?code=BEAN_STORE_MAIN&amp;amp;tid=SWnT"&gt;Processor Expert Software and Embedded Components&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 10:23:16 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2014-01-30T10:23:16Z</dc:date>
    <item>
      <title>MC56F8366 - CW 5.9: How to force const into ROM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255022#M6545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a several ain the code that contain strings amongst other constant data and have run out of data memory as these are not being stored in ROM.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not been using this device/environment long and wondered if it was possible to force the linker to put the constant data in P memory?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a Freescale Application Note AN1952.pdf, that seems to indicate that this is possible but the use_rodata pragma is not recognised by the IDE.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated before I resort to more convoluted processing to achieve the same.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 09:49:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255022#M6545</guid>
      <dc:creator>hiswitsend</dc:creator>
      <dc:date>2014-01-24T09:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: MC56F8366 - CW 5.9: How to force const into ROM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255023#M6546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with CW for DSC V8.3 I've created an example for 8366 through the EABI project wizard.&lt;/P&gt;&lt;P&gt;By default in the prm file you can see:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;.data_in_xROM :&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;# constant data is placed in x flash ROM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;* (.const.data.char)&amp;nbsp; # used if "Emit Separate Char Data Section" enabled&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;* (.const.data)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; .x_flash_ROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;.x_flash_ROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;(RW)&amp;nbsp; : ORIGIN = 0x4000,&amp;nbsp; LENGTH = 0x4000 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you want to place the constant in another memory section ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the #pargma use_rodata is not compatible with 56800E.&lt;/P&gt;&lt;P&gt;Extract of "56800x_Build_Tools_Reference.pdf" manual:&lt;/P&gt;&lt;P&gt;Compatibility&lt;/P&gt;&lt;P&gt;This pragma is compatible with the DSP56800, but it is not compatible with the DSP56800E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a new section .p_flash_ROM_bis and associated the .data_in_xROM instead of .x_flash_ROM.&lt;/P&gt;&lt;P&gt;Attached you will find the example.&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 15:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255023#M6546</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-01-27T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: MC56F8366 - CW 5.9: How to force const into ROM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255024#M6547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Pascal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been digging about a bit more and compiling, comparing map files, which I probably should have done earlier :smileyblush: but anyway, the data &lt;EM&gt;is&lt;/EM&gt; being placed in data_in_xROM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I was starting to run out of space, but if I recoded the application to use the same strings and data embedded within functions with if/else ladders, rather than have a more easily maintained table and generic handling functions, then,&amp;nbsp; although the code size increases, the data footprint also drops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just surprised that there was such a big difference (code size increases by 10K, data size dropped by 3.5k) when the strings, data elements were still being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 09:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255024#M6547</guid>
      <dc:creator>hiswitsend</dc:creator>
      <dc:date>2014-01-28T09:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: MC56F8366 - CW 5.9: How to force const into ROM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255025#M6548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome.&lt;/P&gt;&lt;P&gt;don't hesitate to contact us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255025#M6548</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-01-28T13:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: MC56F8366 - CW 5.9: How to force const into ROM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255026#M6549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at it, is it possible to use the full 32K of data flash, rather than just 16K?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The compile and link is controlled solely by the IDE, and I can't see anywhere to update this, other than by editing the generated cmd file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255026#M6549</guid>
      <dc:creator>hiswitsend</dc:creator>
      <dc:date>2014-01-28T15:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: MC56F8366 - CW 5.9: How to force const into ROM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255027#M6550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can manually update the cmd file.&lt;/P&gt;&lt;P&gt;Now, included in DSC V8.3, Processor Expert is a tool generator which can help you to create your application.&lt;/P&gt;&lt;P&gt;Lot of customers are using this tool.&lt;/P&gt;&lt;P&gt;You can create a project using Processor Expert with the project wizard File + New.&lt;/P&gt;&lt;P&gt;Some examples using: bootloader, Peripheral, etc ... are available.&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;Processor Expert Software is a development system to create, configure, optimize, migrate, and deliver software components that generate source code for Freescale silicon. Processor Expert software covers Freescale's S08/RS08, S12(X), ColdFire, ColdFire+, Kinetis, DSC 56800/E, QorIQ and some other Power Architecture® processors. Processor Expert software is available as part of the CodeWarrior tool suite or as an Eclipse-based plug-in feature for installation into an independent Eclipse environment...&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;For details I recommend you to have a look to :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.freescale.com/webapp/sps/site/homepage.jsp?code=BEAN_STORE_MAIN&amp;amp;tid=SWnT" title="http://www.freescale.com/webapp/sps/site/homepage.jsp?code=BEAN_STORE_MAIN&amp;amp;tid=SWnT"&gt;Processor Expert Software and Embedded Components&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 10:23:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/MC56F8366-CW-5-9-How-to-force-const-into-ROM/m-p/255027#M6550</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-01-30T10:23:16Z</dc:date>
    </item>
  </channel>
</rss>

