<?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 S-Record output size in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209566#M8201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build my application using CodeWarrior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have an entry function to my software so that I set INIT to entry in my prm file, where entry is an empty function.&lt;/P&gt;&lt;P&gt;When I do this, the resulting map file doesn't contain any of the functions in my software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched for this problem and I used the NAME .. END option in the prm file to include all objects in my *.o files.&lt;/P&gt;&lt;P&gt;Now the generated map file includes all functions, but the .sx file is very small to include the code of the functions. (It's just one line of HEX)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any solution for this.??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jun 2010 19:03:54 GMT</pubDate>
    <dc:creator>ahmedfouda</dc:creator>
    <dc:date>2010-06-29T19:03:54Z</dc:date>
    <item>
      <title>S-Record output size</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209566#M8201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build my application using CodeWarrior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have an entry function to my software so that I set INIT to entry in my prm file, where entry is an empty function.&lt;/P&gt;&lt;P&gt;When I do this, the resulting map file doesn't contain any of the functions in my software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched for this problem and I used the NAME .. END option in the prm file to include all objects in my *.o files.&lt;/P&gt;&lt;P&gt;Now the generated map file includes all functions, but the .sx file is very small to include the code of the functions. (It's just one line of HEX)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any solution for this.??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 19:03:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209566#M8201</guid>
      <dc:creator>ahmedfouda</dc:creator>
      <dc:date>2010-06-29T19:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: S-Record output size</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209567#M8202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I don't have an entry function to my software&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must have one, obviously, or the program wouldn't make any sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default in CW, the entry function is main() for C programs. If you write assembler you must use the INIT syntax as you describe. Alternatively you can also define one of your own by writing your own reset ISR if you wish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; so that I set INIT to entry in my prm file,&amp;nbsp;where entry is an empty function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would you use an empty function for? Don't you want your program to do anything?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;NAMES... END shouldn't be necessary. If you want to force linking of your functions or variables, their names should be placed inside ENTRIES... END.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 20:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209567#M8202</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2010-06-29T20:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: S-Record output size</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209568#M8203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't need an entry function because I compile this code just to get the HEx output and then put this hex output in memory and access it by pointers.&lt;/P&gt;&lt;P&gt;So I'm sure that i don't need entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use ENTRIES .. END, but the resulting .sx file doesn't contain any code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 21:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209568#M8203</guid>
      <dc:creator>ahmedfouda</dc:creator>
      <dc:date>2010-06-29T21:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: S-Record output size</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209569#M8204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The linker only actually allocates functions which are referred, typically by starting at _Startup and then main.&lt;/P&gt;&lt;P&gt;So everything called by main gets allocated. If your main/_Startup do not actually use your objects, then they do not get allocated.&lt;/P&gt;&lt;P&gt;I guess you have some vector table which contains function pointer to all interrupt handlers (or some other kind of how your code/data gets referred to). Add that object into a ENTRIES XXX END block so it becomes an additional root for the linker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 22:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209569#M8204</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-06-29T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: S-Record output size</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209570#M8205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the map file, are your functions linked or not (do they have an address?)?&lt;/P&gt;&lt;P&gt;If not, then I would still think ENTRIES is the way to go.&lt;/P&gt;&lt;P&gt;If they are linked, check how the srecord gets generated. And that you look at the right srecord file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 22:03:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209570#M8205</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-06-29T22:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: S-Record output size</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209571#M8206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, It's working now usint ENTRIES XXX END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 22:16:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S-Record-output-size/m-p/209571#M8206</guid>
      <dc:creator>ahmedfouda</dc:creator>
      <dc:date>2010-06-29T22:16:25Z</dc:date>
    </item>
  </channel>
</rss>

