<?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: Compile a project with const variable alone (No Code) in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compile-a-project-with-const-variable-alone-No-Code/m-p/189817#M6769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi Stanish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Thanks for your response. Your idea looks more of a work-around than a solution. My intention was to be able to compile 2 projects seperately and release the S19 files independant of each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; One way of generating the hex file would be to have a dedicated utiltiy (C, VB, Excel (VBA script)) to generate the output file from the data (table). The Other way that i have tried is to use ENTRIES block in prm file to list the unrefernced variables to be retained as part of the output file. By this the compiler &amp;amp; linking does not eliminate the variables (data/ tables), even in the absence of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;ENTRIES /* retain the following unreferenced variables */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;my_file.c.o:* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* include all the variables in my_file.c */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;END&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have now verified the output S19 file. It contains S1 &amp;amp; S2 records for the data I wanted. I was unsure of S0 record, but i got details on the record, this record contain only the name with path of the .abs file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2009 13:50:59 GMT</pubDate>
    <dc:creator>MSURESH</dc:creator>
    <dc:date>2009-06-15T13:50:59Z</dc:date>
    <item>
      <title>Compile a project with const variable alone (No Code)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compile-a-project-with-const-variable-alone-No-Code/m-p/189815#M6767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently using MC9S12C64. I need to download some table (const strings and const linked list) into flash. I need to generate seperate s19 files for code&amp;nbsp;&amp;nbsp;and the table. This would enable me to download the tables seperately without having to download the code part of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible using code warrior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to compile a project with only the data in the required flash pages, But i am not able to confirm this from the S-records in the s19 file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is some documentation on s-record available which could explain this?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 21:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compile-a-project-with-const-variable-alone-No-Code/m-p/189815#M6767</guid>
      <dc:creator>MSURESH</dc:creator>
      <dc:date>2009-06-12T21:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a project with const variable alone (No Code)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compile-a-project-with-const-variable-alone-No-Code/m-p/189816#M6768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello MSURESH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the const tables as a S-record file you can:&lt;/P&gt;&lt;P&gt;1) load the complete project (Code+Const) into the Debugger (MCU or simulator)&lt;/P&gt;&lt;P&gt;2) save the area of memory that contains the const tables into S-Record file using debugger command line:&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;save 0xED00..0xEE00 my_tables.s19&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stanish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 21:52:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compile-a-project-with-const-variable-alone-No-Code/m-p/189816#M6768</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2009-06-12T21:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a project with const variable alone (No Code)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compile-a-project-with-const-variable-alone-No-Code/m-p/189817#M6769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi Stanish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Thanks for your response. Your idea looks more of a work-around than a solution. My intention was to be able to compile 2 projects seperately and release the S19 files independant of each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; One way of generating the hex file would be to have a dedicated utiltiy (C, VB, Excel (VBA script)) to generate the output file from the data (table). The Other way that i have tried is to use ENTRIES block in prm file to list the unrefernced variables to be retained as part of the output file. By this the compiler &amp;amp; linking does not eliminate the variables (data/ tables), even in the absence of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;ENTRIES /* retain the following unreferenced variables */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;my_file.c.o:* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* include all the variables in my_file.c */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;END&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have now verified the output S19 file. It contains S1 &amp;amp; S2 records for the data I wanted. I was unsure of S0 record, but i got details on the record, this record contain only the name with path of the .abs file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 13:50:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compile-a-project-with-const-variable-alone-No-Code/m-p/189817#M6769</guid>
      <dc:creator>MSURESH</dc:creator>
      <dc:date>2009-06-15T13:50:59Z</dc:date>
    </item>
  </channel>
</rss>

