<?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: CW 6.1 evaluation linker code size limitation in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154631#M3880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;A fixup overflow has nothing to do with the C code size limitation.&lt;BR /&gt;If you get such an error you are probably doing something which just should not work....&lt;BR /&gt;&lt;BR /&gt;The most common bug for the HC08 which causes a fixup overflow is to declare a variable to be in the zero page, but then not actually allocating it in the first 256 bytes of the memory.&lt;BR /&gt;&lt;BR /&gt;Another one is to map .text into multiple segments, that can cause a fixup overflow but there is a compiler option&lt;BR /&gt;(I think the option is mentioned in the default prm, just done remember it for sure) to disable the short branch optimization (that's the one which may cause a fixup overflow if he code is distributed into multiple segments).&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2008 11:56:53 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2008-05-09T11:56:53Z</dc:date>
    <item>
      <title>CW 6.1 evaluation linker code size limitation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154630#M3879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a code size limitation on CW 6.1 evaluation version for RS08KA. I have developed a small C application in C and had it compiled successfully. But the linker issues a fixup error message for some functions. When commented, the code size reduces and linker completes with no errors.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Kerem&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 04:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154630#M3879</guid>
      <dc:creator>Kerem</dc:creator>
      <dc:date>2008-05-09T04:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: CW 6.1 evaluation linker code size limitation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154631#M3880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;A fixup overflow has nothing to do with the C code size limitation.&lt;BR /&gt;If you get such an error you are probably doing something which just should not work....&lt;BR /&gt;&lt;BR /&gt;The most common bug for the HC08 which causes a fixup overflow is to declare a variable to be in the zero page, but then not actually allocating it in the first 256 bytes of the memory.&lt;BR /&gt;&lt;BR /&gt;Another one is to map .text into multiple segments, that can cause a fixup overflow but there is a compiler option&lt;BR /&gt;(I think the option is mentioned in the default prm, just done remember it for sure) to disable the short branch optimization (that's the one which may cause a fixup overflow if he code is distributed into multiple segments).&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 11:56:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154631#M3880</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-05-09T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: CW 6.1 evaluation linker code size limitation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154632#M3881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ups, the OP was for the RS08 and not for the HC08. Anyway, it still has nothing to do with the license. I think the code limits are smaller for the RS08, but non the less, fixup overflows are only caused by how the code/variables are allocated and not by how much code there is.&lt;BR /&gt;The RS08 also has some special memory areas, not sure if it has a short branch optimization, but for a RS08 I think it is less common to distribute the code into multiple segments anyway.&lt;BR /&gt;The simplest thing would be probably when you copy paste the linker error here, the message window does support CTRL-C.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 12:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154632#M3881</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-05-09T12:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: CW 6.1 evaluation linker code size limitation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154633#M3882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;It appears not related to variables. It is something about code. Here is the message&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Link Error&amp;nbsp;&amp;nbsp; : L1907: Fixup overflow in set2sqr, to _xxPSID17 type 1, at offset 0x1D&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Link Error&amp;nbsp;&amp;nbsp; : Link failed&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Compile process is ok. I left the optimization setting as default. Linker file contains&amp;nbsp;contiguous flash &amp;amp; ram memory. Below is the link file contents as well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;First time using this suite, so not quite familiar with the options. My parts is R08KA08 which has 8k flash and some 200 byte ram.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Kerem&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */&lt;/DIV&gt;&lt;DIV&gt;SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TINY_RAM&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; READ_WRITE&amp;nbsp;&amp;nbsp; 0x0005 TO 0x000D;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&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; READ_WRITE&amp;nbsp;&amp;nbsp; 0x0030 TO 0x00BF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESERVED_RAM&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; NO_INIT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000 TO 0x0004;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROM&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; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x2000 TO 0x3FF7;&lt;BR /&gt;END&lt;/DIV&gt;&lt;DIV&gt;PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESERVED&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; INTO RESERVED_RAM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TINY_RAM_VARS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TINY_RAM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIRECT_RAM_VARS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO RAM, TINY_RAM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFAULT_RAM&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; INTO RAM, TINY_RAM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFAULT_ROM&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; INTO ROM;&lt;BR /&gt;END&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;STACKSIZE 0x00 /* no stack for RS08 */&lt;/DIV&gt;&lt;DIV&gt;VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 12:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154633#M3882</guid>
      <dc:creator>Kerem</dc:creator>
      <dc:date>2008-05-09T12:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: CW 6.1 evaluation linker code size limitation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154634#M3883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;What is set2sqr? Is this a C or an assembly function (or even a constant?)&lt;BR /&gt;The simplest way is to open the source file it is defined in and use the disassemble contect menu.&lt;BR /&gt;That is at offset 0x1D?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 13:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154634#M3883</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-05-09T13:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: CW 6.1 evaluation linker code size limitation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154635#M3884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;set2sqr is a C function like the rest of the code.&amp;nbsp;I'm trying to find the source of the error. If I remove set2sqr then the linker issues same message for main. Then after gradually deleting the code lines&amp;nbsp;of main, at some point (I presume my evaluation version has a limitation) linker completes with no error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CW 6.1 does not mention RS08KA8 support (8K flash part). Instead, I can only see RS08KA2 in the device selection menus. And that part has 2K flash. Presumably the linker allows half of RS08KA2's flash capacity of 1024 bytes.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Right now I'm trying to generate a header file which includes peripheral definitions for KA8 part. I'll be able to investigate more in an hour.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Kerem&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 14:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154635#M3884</guid>
      <dc:creator>Kerem</dc:creator>
      <dc:date>2008-05-09T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: CW 6.1 evaluation linker code size limitation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154636#M3885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Daniel,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I found the reason. Like you said it was not about code size limitation. hidef.h needed to be included before peripheral definitions.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Kerem&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 15:48:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-6-1-evaluation-linker-code-size-limitation/m-p/154636#M3885</guid>
      <dc:creator>Kerem</dc:creator>
      <dc:date>2008-05-09T15:48:01Z</dc:date>
    </item>
  </channel>
</rss>

