<?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: Problem running code generated with CodeWarrior in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-running-code-generated-with-CodeWarrior/m-p/153206#M3779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this problem. It was in fact due to bad memory mapping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2012 16:37:51 GMT</pubDate>
    <dc:creator>pierreschmidt</dc:creator>
    <dc:date>2012-11-06T16:37:51Z</dc:date>
    <item>
      <title>Problem running code generated with CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-running-code-generated-with-CodeWarrior/m-p/153205#M3778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I modified a project initially written for windriver diab compiler to work with Codewarrior.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then ran the project with the help of cw_icdppcnexus but experienced a problem after startup when the PC goes to the main function: The PC gets 000000h which makes execution continue at a location where there is no executable code&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I had a look at the assembly instructions equivalency and compared the original Windriver executable file with the CodeWarrior one. Here is the result:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2650_2650.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118936i953E3B9555B5975E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2650_2650.jpg" alt="2650_2650.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Sans titre.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38695i34953440F6D42E0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sans titre.jpg" alt="Sans titre.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The window on top is the Codewarrior generated code, the second is from Windriver.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Codewarrior generates some extra instructions which make the PC go to 00000h due to SE_BLR instruction (LR is 00000h). After that the code looks very similar for both compilers. Is there a way to disable the generation of those extra instructions?? (does not actually know what those instructions do)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.SCHMIDT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-running-code-generated-with-CodeWarrior/m-p/153205#M3778</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-10-26T11:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running code generated with CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-running-code-generated-with-CodeWarrior/m-p/153206#M3779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this problem. It was in fact due to bad memory mapping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 16:37:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-running-code-generated-with-CodeWarrior/m-p/153206#M3779</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-11-06T16:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running code generated with CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-running-code-generated-with-CodeWarrior/m-p/153207#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem and I cannot find the correct configuration for the memory mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, can you help me with the memory mappgig?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my memory section from the linker:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;MEMORY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Interrupt Service Routines */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash_rchw : org = 0x00000000, LENGTH = 0x8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash_vec : org = 0x20000, LENGTH = 0xD00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* 1MB Internal Flash */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int_flash : org = 0x20D00, LENGTH = 1M - 0x20D00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* 80K Internal SRAM */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int_sram : org = 0x40000000, LENGTH = 80k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stack : org = 0x00200000, len = 0x0200&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;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 14:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-running-code-generated-with-CodeWarrior/m-p/153207#M3780</guid>
      <dc:creator>luciantodor</dc:creator>
      <dc:date>2013-02-11T14:13:52Z</dc:date>
    </item>
  </channel>
</rss>

