<?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: assembler code interpret error in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595176#M4843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compiled your startup code using mwasmeppc.exe tool with the same switched as you used, but I am not able to reproduce your issue. When I load the elf file to the microcontroller, I see the same error as you see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So could you please do the following points?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Compile the startup file you sent me and send me the object code. I will try to compare it with the code I compiled.&lt;/LI&gt;&lt;LI&gt;Download CodeWarrior 10.7 evaluation version and use the PA tools from this version. Some issues are fixed in this new version. Here is link for download: &lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/software-development-tools/codewarrior-development-tools/codewarrior-development-studios/codewarrior-for-microcontrollers/codewarrior-for-mcus-eclipse-ide-coldfire.-56800-e-dsc-kinetis.-nxp-56xx-rs08-s08-s12z-v10.7:CW-MCU10" title="http://www.nxp.com/products/software-and-tools/software-development-tools/codewarrior-development-tools/codewarrior-development-studios/codewarrior-for-microcontrollers/codewarrior-for-mcus-eclipse-ide-coldfire.-56800-e-dsc-kinetis.-nxp-56xx-rs08-s08-s12z-v10.7:CW-MCU10"&gt;CodeWarrior for Microcontrollers-Eclipse IDE|NXP&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;(Optional but very helpful) Is it possible for you to create simple project only with your startup (and eventually empty main function), but including linker file, make file and other necessary file which I will be able compile and link on my side? This will help me a lot, because I need to know, how your linker file looks like. When I try to compile your source code, I have to change some sections, because I have different linker file and this can have impact to my result.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2016 13:43:00 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2016-09-08T13:43:00Z</dc:date>
    <item>
      <title>assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595168#M4835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem about assembler code interpret.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In .s file, if I use&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #0000ff;"&gt;" bl _InitRam "&lt;/SPAN&gt; to jump into&amp;nbsp;&lt;SPAN&gt;_InitRam,&amp;nbsp;the code is translated to &lt;SPAN style="color: #0000ff;"&gt;"e_bl 0x1F6"&lt;/SPAN&gt;, this is right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="161389_161389.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122194iA0FD33A12A569E05/image-size/large?v=v2&amp;amp;px=999" role="button" title="161389_161389.png" alt="161389_161389.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6228iE725A75E08AE4392/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if&amp;nbsp;I use &lt;SPAN style="color: #0000ff;"&gt;"bne &amp;nbsp;init_sram_noinit"&lt;/SPAN&gt; to jump into&amp;nbsp;init_sram_noinit first,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.73;"&gt;and in&amp;nbsp;init_sram_noinit, I use&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #0000ff;"&gt;" bl _InitRam "&lt;/SPAN&gt; to jump into&amp;nbsp;_InitRam, &lt;SPAN&gt;&amp;nbsp;the code is translated to &lt;SPAN style="color: #0000ff;"&gt;"e_b 0x1E6"&lt;/SPAN&gt;, then it jump to 0x1E6 and trapped here.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="161406_161406.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122195i5F93B5EDCEF9EE3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="161406_161406.png" alt="161406_161406.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6319iDFB68D69676B1C29/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the code &lt;SPAN&gt;translated &lt;/SPAN&gt;in Trace32, the e_bl 0x1F6 is right, the e_b 0x1E6 is wrong.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="161388_161388.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122196iF46DB62C52D52445/image-size/large?v=v2&amp;amp;px=999" role="button" title="161388_161388.png" alt="161388_161388.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6187i2B86084916D9C851/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to fix this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Sijia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 11:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595168#M4835</guid>
      <dc:creator>sijiahao</dc:creator>
      <dc:date>2016-09-06T11:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595169#M4836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sijia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I consulted this answer with one of my colleague and we agreed that we need more information. Could you please share the source file (no object file) and also assembler and linker options you used for creating .elf file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 13:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595169#M4836</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-09-06T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595170#M4837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I can’t give the whole source file to you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simplified the .s file, deleted some code, can you refer to this file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sijia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 06:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595170#M4837</guid>
      <dc:creator>sijiahao</dc:creator>
      <dc:date>2016-09-07T06:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595171#M4838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sijia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you use BookE or VLE instruction set in your example? I see you posted here some screens with BookE instructions and you sent me file with VLE instructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had took your code and placed it to default CodeWarrior 2.10 project. I tried to use the same compiler and linker setting, but I am not able to reproduce your issue. I always see se_bl instruction (see the figure below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5656iF8047C45624F611A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to create some simple project in CodeWarrior 2.10 and test, if the behavior is the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 08:43:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595171#M4838</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-09-07T08:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595172#M4839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Maher, a colleague of Sijia.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Sijia mentioned, we are activating &lt;SPAN&gt;VLE&amp;nbsp;&lt;/SPAN&gt;via compilers options.&lt;/P&gt;&lt;P&gt;How to make sure that we are using &lt;SPAN&gt;VLE&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an "instruction", a "macro" to put at the beginning of the assembly to ensure that we are using VLE?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Maher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595172#M4839</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-07T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595173#M4840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We didn't&amp;nbsp;have the problem of the VLE/BookE.&lt;span class="lia-inline-image-display-wrapper" image-alt="Assembly_Error.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6327iD83492163E87C93E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Assembly_Error.PNG" alt="Assembly_Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I guess it's only on your side that you this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as you can see we do have the problem of the address interpretation of the __InitRam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you propose to proceed ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Maher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 07:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595173#M4840</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-08T07:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595174#M4841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no problem on my side. I just asked, if you use BookE or VLE instructions in your source code, because your colleague posted here some BookE code and he sent me VLE code (VLE instructions begin with e_ or se_ characters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your object code is always VLE, because you use -vle option during compiling and linking and moreover e200z0 core supports VLE instructions only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please try to turn off linker optimization (following four options) and try it once again?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LINK_OPT += -code_merging=all,aggressive&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;LINK_OPT += -far_near_addressing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;LINK_OPT += -vle_enhance_merging&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;LINK_OPT += -vle_bl_opt&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to sent me some .elf file which demonstrates your issue with incorrect instruction opcode and address? With the source code you sent me, I am not able to reproduce your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please write me back, which microcontroller you use including mask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 10:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595174#M4841</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-09-08T10:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595175#M4842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the optimization options didn't solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there is a problem with the alignment of the code, because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The address 0x1E6 points to the middle of an instruction&lt;/LI&gt;&lt;LI&gt;here is what we have before branching to the address 0x1E6&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5128iB8DC182D7F4B8351/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;and here what we have after branching:&lt;span class="lia-inline-image-display-wrapper" image-alt="after_branch.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5129i0316CE9D243EB138/image-size/large?v=v2&amp;amp;px=999" role="button" title="after_branch.PNG" alt="after_branch.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the startup code and the elf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Maher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 11:51:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595175#M4842</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-08T11:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595176#M4843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compiled your startup code using mwasmeppc.exe tool with the same switched as you used, but I am not able to reproduce your issue. When I load the elf file to the microcontroller, I see the same error as you see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So could you please do the following points?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Compile the startup file you sent me and send me the object code. I will try to compare it with the code I compiled.&lt;/LI&gt;&lt;LI&gt;Download CodeWarrior 10.7 evaluation version and use the PA tools from this version. Some issues are fixed in this new version. Here is link for download: &lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/software-development-tools/codewarrior-development-tools/codewarrior-development-studios/codewarrior-for-microcontrollers/codewarrior-for-mcus-eclipse-ide-coldfire.-56800-e-dsc-kinetis.-nxp-56xx-rs08-s08-s12z-v10.7:CW-MCU10" title="http://www.nxp.com/products/software-and-tools/software-development-tools/codewarrior-development-tools/codewarrior-development-studios/codewarrior-for-microcontrollers/codewarrior-for-mcus-eclipse-ide-coldfire.-56800-e-dsc-kinetis.-nxp-56xx-rs08-s08-s12z-v10.7:CW-MCU10"&gt;CodeWarrior for Microcontrollers-Eclipse IDE|NXP&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;(Optional but very helpful) Is it possible for you to create simple project only with your startup (and eventually empty main function), but including linker file, make file and other necessary file which I will be able compile and link on my side? This will help me a lot, because I need to know, how your linker file looks like. When I try to compile your source code, I have to change some sections, because I have different linker file and this can have impact to my result.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 13:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595176#M4843</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-09-08T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595177#M4844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my response to your three points:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the object file (cstartup.o) is attached.&lt;/LI&gt;&lt;LI&gt;We cannot change the version of the compiler due it's required by our client.&lt;/LI&gt;&lt;LI&gt;I don't know how to create a "&lt;EM&gt;&lt;STRONG&gt;quick&lt;/STRONG&gt;&lt;/EM&gt;" project and compile it, is there any guide that I can use ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Maher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595177#M4844</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-08T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595178#M4845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank for the file. It confirmed my suspicion about sections defined in linker file and used in startup. When I disassemble the object code you sent me, I do not see the instructions correctly. It seems you do not have .reset_code section defined as VLECODE (instructions are interpreted as data - see figure below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5468iF63C0E58EA7AB1B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for you to send me also linker file? If not, please check the definition of the section .reset_code. It should looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5571iABCAD64279E7E390/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have linker file and the startup file (I already have) I am able to create skelet project, compile it and link it and also test in the microcontroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595178#M4845</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-09-08T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595179#M4846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A+&lt;/P&gt;&lt;P&gt;Maher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595179#M4846</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-08T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595180#M4847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I wrote you before, you problem was in the linker file. You should have independent section for RCHW and independent section for code behind entry point. I edited you linker and startup file and now it works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to explain my steps and also I am sending you edited files in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I created independent sections for RCHW and code in linker file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5877iE3A975AA9CD7B9C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I loaded startup section to the address and correct it as VLECODE&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5927iCDBCD6229EFDA0BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I modified your startup file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5970i999BC489C33D3DF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) I loaded this project to the microcontroller and now you can see that branch instructions including addresses are correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6016iD0E9024A32B51788/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if it works on your side too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any other questions, please feel free to write me back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:44:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595180#M4847</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-09-09T11:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595181#M4848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great input&amp;nbsp;:smileylaugh:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is solved (y)&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>Fri, 09 Sep 2016 12:43:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595181#M4848</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-09T12:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595182#M4849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/b55689"&gt;b55689&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another problem that I am facing now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to map a variable to given section that is defined in the linker file (attached before).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code, I have two variables, one declared normally and the second should be written in a given section (called RamNoInit, where after SW reset and during startup, the values of this section should keep their variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the declaration of the variables is :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5933i6FA6D745C66FF276/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The declaration of the section in the linker file :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;in Memory:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5974iC461C5C47970F078/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;in Sections:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6020iE01BCE95DF66B77D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the generated Map file, we have the variable "ubRamNoInit" is not mapped in the correct section:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6065i56CDAD2D88351B7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the "noinit" section is empty:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6115iA59E5C594F2F07C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea why i &amp;nbsp;have this problem ?&lt;/P&gt;&lt;P&gt;Do I declare correctly the variables ?&lt;/P&gt;&lt;P&gt;Do I need change something in the compilers options (attached) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Maher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595182#M4849</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-13T08:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595183#M4850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems that linker garbage collector optimized your code. If you want to keep the unused variables in your code, you have to place this variables to FORCEACTIVE in your linker file. Please look at the example in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 13:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595183#M4850</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-09-13T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: assembler code interpret error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595184#M4851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is resolved:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the declaration of the section ".noini" was false -&amp;gt; I should remove BSS&lt;/LI&gt;&lt;LI&gt;the declaration of the variable was false -&amp;gt; it should be : #pragma section sdata_type ".noinit" "noinit"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;BR /&gt;Maher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 14:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/assembler-code-interpret-error/m-p/595184#M4851</guid>
      <dc:creator>mahermalak</dc:creator>
      <dc:date>2016-09-13T14:26:38Z</dc:date>
    </item>
  </channel>
</rss>

