<?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: CodeWarrior 5.9, MPC5644A LCF changed, but code not be located to expected area in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/CodeWarrior-5-9-MPC5644A-LCF-changed-but-code-not-be-located-to/m-p/1619861#M23241</link>
    <description>&lt;P&gt;CodeWarrior 5.9 is the version of the IDE used but not the tool version.&lt;/P&gt;
&lt;P&gt;The IDE V5.9 was used in different tools as HC12 v5.1, DSC V8.3, ColdFire V7.2, MCU V6.3, MPC55xx/56xx V2.10 and other older versions.&lt;/P&gt;
&lt;P&gt;The right way to determine the tool version you're using for classic version is&lt;/P&gt;
&lt;P&gt;Start the IDE and click on Help | About Freescale CodeWarrior.&lt;/P&gt;
&lt;P&gt;Click on Installed Products&lt;/P&gt;
&lt;P&gt;Provide us all info displayed.&lt;/P&gt;
&lt;P&gt;Or you can save them in a txt file.&lt;/P&gt;
&lt;P&gt;If the Installed Products is not available for older version you should find information in the welcome.txt under the installation folder.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 13:38:36 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2023-03-22T13:38:36Z</dc:date>
    <item>
      <title>CodeWarrior 5.9, MPC5644A LCF changed, but code not be located to expected area</title>
      <link>https://community.nxp.com/t5/MPC5xxx/CodeWarrior-5-9-MPC5644A-LCF-changed-but-code-not-be-located-to/m-p/1619280#M23234</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;dear NXP experts:&lt;/P&gt;&lt;P&gt;An old project is developed by CodeWarrior 5.9, and the MCU is MPC5644A.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodeWarrior.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/215655i30075F98306D13C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodeWarrior.PNG" alt="CodeWarrior.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A task is to re-alocate the code to another Flash area. A test project is created to try the re-allocation.&lt;/P&gt;&lt;P&gt;The lcf are changed as below:&lt;BR /&gt;resetvector: org = 0x00000000, len = 0x00000008&lt;BR /&gt;init: org = 0x00100020, len = 0x00000FE0&lt;BR /&gt;exception_handlers: org = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x00101000&lt;/STRONG&gt;&lt;/FONT&gt;, len = 0x00001000&lt;BR /&gt;internal_flash: org = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x00102000&lt;/STRONG&gt;&lt;/FONT&gt;, len = 0x00040000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the map file, it seems the function is re-allocated (please see below)&lt;/P&gt;&lt;P&gt;.text_vle section layout&lt;BR /&gt;Starting Virtual File&lt;BR /&gt;address Size address offset&lt;BR /&gt;---------------------------------&lt;BR /&gt;00000000 00003c &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;00102000&lt;/STRONG&gt;&lt;/FONT&gt; 000006e0 1 .text main.o&lt;BR /&gt;00000000 00002e &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;00102000&lt;/STRONG&gt;&lt;/FONT&gt; 000006e0 2 &lt;STRONG&gt;main&lt;/STRONG&gt; main.o&lt;BR /&gt;0000002e 00000e &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;0010202e&lt;/STRONG&gt;&lt;/FONT&gt; 0000070e 2 &lt;STRONG&gt;task10msHandler&lt;/STRONG&gt; main.o&lt;/P&gt;&lt;P&gt;But, in the generated .mot file, the functions are not allocated to address 0x00102000&lt;BR /&gt;the exception handler is allocated to exptected address &lt;STRONG&gt;0x00101000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s19File.PNG" style="width: 440px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/215656i5C82C9FD4F0EFA70/image-dimensions/440x131?v=v2" width="440" height="131" role="button" title="s19File.PNG" alt="s19File.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Could you please help me on this issue?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Another help request is: could you give an example about how to allocated function and global variable to expected section?&lt;BR /&gt;Sorry my experience is limited to S32 Design Studio, no experience for CodeWarrior.&lt;/P&gt;&lt;P&gt;The lcf/s19 files and whole test proect are attched for your reference.&lt;/P&gt;&lt;P&gt;thanks and BR&lt;BR /&gt;YiChuan&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 14:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/CodeWarrior-5-9-MPC5644A-LCF-changed-but-code-not-be-located-to/m-p/1619280#M23234</guid>
      <dc:creator>ZhouYiChuan</dc:creator>
      <dc:date>2023-03-21T14:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 5.9, MPC5644A LCF changed, but code not be located to expected area</title>
      <link>https://community.nxp.com/t5/MPC5xxx/CodeWarrior-5-9-MPC5644A-LCF-changed-but-code-not-be-located-to/m-p/1619861#M23241</link>
      <description>&lt;P&gt;CodeWarrior 5.9 is the version of the IDE used but not the tool version.&lt;/P&gt;
&lt;P&gt;The IDE V5.9 was used in different tools as HC12 v5.1, DSC V8.3, ColdFire V7.2, MCU V6.3, MPC55xx/56xx V2.10 and other older versions.&lt;/P&gt;
&lt;P&gt;The right way to determine the tool version you're using for classic version is&lt;/P&gt;
&lt;P&gt;Start the IDE and click on Help | About Freescale CodeWarrior.&lt;/P&gt;
&lt;P&gt;Click on Installed Products&lt;/P&gt;
&lt;P&gt;Provide us all info displayed.&lt;/P&gt;
&lt;P&gt;Or you can save them in a txt file.&lt;/P&gt;
&lt;P&gt;If the Installed Products is not available for older version you should find information in the welcome.txt under the installation folder.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 13:38:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/CodeWarrior-5-9-MPC5644A-LCF-changed-but-code-not-be-located-to/m-p/1619861#M23241</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-03-22T13:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 5.9, MPC5644A LCF changed, but code not be located to expected area</title>
      <link>https://community.nxp.com/t5/MPC5xxx/CodeWarrior-5-9-MPC5644A-LCF-changed-but-code-not-be-located-to/m-p/1620870#M23244</link>
      <description>&lt;P&gt;Have you tried to remove object code before compiling?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1679574852812.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/215988i28039626091A6C5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davidtosenovjan_0-1679574852812.png" alt="davidtosenovjan_0-1679574852812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:34:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/CodeWarrior-5-9-MPC5644A-LCF-changed-but-code-not-be-located-to/m-p/1620870#M23244</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-03-23T12:34:23Z</dc:date>
    </item>
  </channel>
</rss>

