<?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: How to check the code size and memory use in codewarrior V10.3 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163135#M4591</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;Here I would make sure a .map file is generated and I would check the application code and data size in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way map file generation is enabled and information are stored depends on the MCU you are targeting. &lt;/P&gt;&lt;P&gt;Which MCU are you targeting (HC08, Coldfire, Kinetis, ...)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 06:58:09 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2012-11-05T06:58:09Z</dc:date>
    <item>
      <title>How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163134#M4590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using PE to generate the code for module that I used. Looks like there is lots of code. I want to see how much the code size and data memory usage. How can I do in codewarrior? I just could not find it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 20:43:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163134#M4590</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-02T20:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163135#M4591</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;Here I would make sure a .map file is generated and I would check the application code and data size in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way map file generation is enabled and information are stored depends on the MCU you are targeting. &lt;/P&gt;&lt;P&gt;Which MCU are you targeting (HC08, Coldfire, Kinetis, ...)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 06:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163135#M4591</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-11-05T06:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163136#M4592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KL2x"&gt;Kinetis L series KL25Z&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I looked at .map file. but How would I know the flash memory size and data memory size has been used. How to read it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 13:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163136#M4592</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-05T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163137#M4593</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;Look in your .map file for a section called "Memory Configuration".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the default linker file you should see at least following memory areas with their start address and size:&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts: Contains the vector table. &lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text: Contains the application code&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data: Contains the application data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The size of m_text represents the application code size and the size for m_data represents the application data size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you defined additional memory areas in the linker file (*.ld) you may have to consider the additional memory areas as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163137#M4593</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-11-05T15:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163138#M4594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I see in .map file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memory Configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&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;&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; Origin&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; Length&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; Attributes&lt;/P&gt;&lt;P&gt;m_interrupts&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x000000c0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xr&lt;/P&gt;&lt;P&gt;m_text&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;&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; 0x00000410&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0001fbf0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xr&lt;/P&gt;&lt;P&gt;m_data_1FFFF000&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; 0x1ffff000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00001000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rw&lt;/P&gt;&lt;P&gt;m_data&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;&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; 0x20000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00003000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rw&lt;/P&gt;&lt;P&gt;m_cfmprotrom&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xr&lt;/P&gt;&lt;P&gt;*default*&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, m_text length is 1fbf0 which is 130032 byte? the application code is already 130k byte? this is not possible. the application just do some very simple LED toggling. Am I wrong to calculate the application code size?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:35:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163138#M4594</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-05T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163139#M4595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi CrasyCat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. I figured out how to check the memory size. Thank you firstly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also, my application code is taking 4500 byte. However, in my application, I only toggling LEDs. why it takes that much program memory. btw, I am using PE to generate drivers. Is there a better way to minimize the program flash size?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:06:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163139#M4595</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-05T18:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163140#M4596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an easy way to dump the code and data size to the console view, see&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/" title="http://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/"&gt;Code Size Information with gcc for ARM/Kinetis | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As for reducing the code size: by default optimizations are switched off. Enabling compiler and linker optimizations should greatly reduce your footprint. See &lt;A href="http://mcuoneclipse.com/2012/09/29/tutorial-freedom-with-freertos-and-kinetis-l/" title="http://mcuoneclipse.com/2012/09/29/tutorial-freedom-with-freertos-and-kinetis-l/"&gt;Tutorial: Freedom with FreeRTOS and Kinetis-L | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which shows how to have an application *with* an RTOS toggling LEDs on a &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KL2x"&gt;KL25Z&lt;/A&gt; can be done with 5 KByte of Flash and 1 KByte of RAM.&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>Mon, 05 Nov 2012 19:14:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163140#M4596</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-05T19:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163141#M4597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, do you think 5KB of FLASH for just toggling LEDs is too big?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 19:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163141#M4597</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-05T19:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163142#M4598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My RGB 'toggling' LED application comes with waiting routines and Processor Expert LED drivers and full blown startup code. And even with that luxury load, it only takes 3 KByte:&lt;/P&gt;&lt;P&gt;"C:/Freescale/CW MCU v10.3/arm-none-eabi-gcc-4_6_2/bin/arm-none-eabi-size"&amp;nbsp; --format=berkeley Freedom_LED.elf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hex&amp;nbsp;&amp;nbsp;&amp;nbsp; filename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 3252&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1068&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4360&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1108&amp;nbsp;&amp;nbsp;&amp;nbsp; Freedom_LED.elf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stripping off startup code and more would get it well below the above size. What you need at the minimum is the vector table plus just the toggling code, then you get below 1 K for sure. But then it would not be suitable for anything advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 05:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163142#M4598</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-06T05:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163143#M4599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if not use PE? it seems PE generated code that taken most of memory size,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 19:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163143#M4599</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-06T19:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163144#M4600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peng,&lt;/P&gt;&lt;P&gt;it is not PE. It is the startup code and linker settings which adds to the size. I'll see if I can come up with some suggestions how to strip that down to around 400-800 bytes total. But what you can do right away:&lt;/P&gt;&lt;P&gt;There is a linker symbol defined which I think makes sense in the context of using an UART with printf(). But if you are not using this, then you get the startup code down to around 800 bytes (so 2 K less):&lt;/P&gt;&lt;P&gt;go to the linker options, and here remove the two lines marked in yellow below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2796_2796.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118960i3CDE16CC484523E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2796_2796.png" alt="2796_2796.png" /&gt;&lt;/span&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, 09 Nov 2012 09:54:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163144#M4600</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-09T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163145#M4601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for helping me to shrink code size. I would try it. but if I remove these two lines, would it affect my code? or give compile error? I am not quite sure what do that two lines do. Does it just do printf() using UART?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 14:11:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163145#M4601</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-09T14:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163146#M4602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peng,&lt;/P&gt;&lt;P&gt;yes, as long as you are not using these formatter/sprintf() (I think?) things, you can remove it. The linker will complain otherwise, then you can re-add the lines. So safe to remove them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 16:21:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163146#M4602</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-09T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163147#M4603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 17:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163147#M4603</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-09T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163148#M4604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In any case: I played a little bit with the settings, and have put some details and background information in this post: &lt;A href="http://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/" title="http://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/"&gt;Optimizing the Kinetis gcc Startup | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 12:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163148#M4604</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-11T12:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163149#M4605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich, that is good stuff. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 13:04:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163149#M4605</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-11-12T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163150#M4606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I see this for my Memory Map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Memory map:&lt;/P&gt;&lt;P&gt;&amp;nbsp; v_addr&amp;nbsp;&amp;nbsp; p_addr&amp;nbsp;&amp;nbsp; size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0000C000 0000C000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .x_Peripherals&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00000000 00000000 000000DE .interrupt_vectors .p_Interrupts&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00000208 00000208 00004E6C .ApplicationCode .p_Code&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00000000 00000000 00000F30 .ApplicationData .x_Data&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00000F30 00000F30 00000000 .WIRData&amp;nbsp;&amp;nbsp; .x_Data&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00000200 00000200 00000008 .reserved_FCF .p_reserved_FCF&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00005074 00000000 000003D8 .data_in_p_flash_ROM .p_flash_ROM_data&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00008000 00008000 00004000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .x_internal_ROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; 00060000 00060000 00000F41 .ApplicationCodeInRAM .p_internal_RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I tell how much Flash Memory and RAM I am using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any and all help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 18:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163150#M4606</guid>
      <dc:creator>danielbronson</dc:creator>
      <dc:date>2015-05-18T18:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163151#M4607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where/How can I find the .map file? I'm using CodeWarrior and K70. I've been searching for the file location and how to generate it but I have no idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 19:11:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163151#M4607</guid>
      <dc:creator>carloszamora</dc:creator>
      <dc:date>2015-07-01T19:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163152#M4608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;the map file is usually where the .elf (application) file is generated. Check the 'Release' or 'Debug' folder in your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 05:07:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163152#M4608</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-07-02T05:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the code size and memory use in codewarrior V10.3</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163153#M4609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason, I can't find either of those folders.The .elf file is also missing. Is there a specific way to generate all of that? I'm currently working on the "hello peg" project for the K70.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 13:58:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-check-the-code-size-and-memory-use-in-codewarrior-V10-3/m-p/163153#M4609</guid>
      <dc:creator>carloszamora</dc:creator>
      <dc:date>2015-07-06T13:58:05Z</dc:date>
    </item>
  </channel>
</rss>

