<?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>CodeWarrior Development ToolsのトピックRe: Splitting m_text in Linker File of CW</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485112#M3940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fiona,&lt;/P&gt;&lt;P&gt;So 128K is 128000 in decimal.&lt;/P&gt;&lt;P&gt;So 128000(0x1F400) - 0x800 = 0x1EC00 (length of my_text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So 0x1EC00 is the length.so the start or origin address of my_text should be&lt;/P&gt;&lt;P&gt;0x1EC00(length of m_text) + 0x800(start address of m_text) = 0x1F400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,I think&amp;nbsp; 0x1F400 is the starting address of&amp;nbsp; my_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not please explain me with the calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2016 07:46:42 GMT</pubDate>
    <dc:creator>vigneshbalaji</dc:creator>
    <dc:date>2016-05-23T07:46:42Z</dc:date>
    <item>
      <title>Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485106#M3934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not able to understand the listing 10 in the document.Based on what are they calculating the origin address when 0x1000 is removed from existing m_text to form a new text. I want to know how they found out the origin address of my_text????&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the thing given in the document.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we need to edit linker file (.ld) to create a new segment where this function is going to be relocated. Compare listing 10 with listing 1 and notice that 0x1000 bytes were subtracted from segment ‘m_text’ to create segment ‘my_text’. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY {&amp;nbsp; &lt;/P&gt;&lt;P&gt;m_interrupts (rx) : ORIGIN = 0x00000000, LENGTH = 0x1E8&amp;nbsp; &lt;/P&gt;&lt;P&gt;m_cfmprotrom (rx) : ORIGIN = 0x00000400, LENGTH = 0x10&amp;nbsp; &lt;/P&gt;&lt;P&gt;m_text&amp;nbsp; (rx) : ORIGIN = 0x00000800, LENGTH = 0x1M - 0x1800&amp;nbsp; &lt;/P&gt;&lt;P&gt;my_text&amp;nbsp; (rx) : ORIGIN = 0x000FF000, LENGTH = 0x1000&amp;nbsp; /* New ROM Segment */&amp;nbsp; &lt;/P&gt;&lt;P&gt;m_data&amp;nbsp; (rwx) : ORIGIN = 0x1FFF0000, LENGTH = 64K&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;m_data2 (rwx) : ORIGIN = 0x20000000, LENGTH = 64K&amp;nbsp; &lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485106#M3934</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-05-19T11:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485107#M3935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;-------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;In list10,&amp;nbsp; The ‘m_text‘ is from 0x00000800 to 0x000FEFFF. The ‘my_text‘ is from 0x000FF000 to 0X000FFFFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;EM&gt;m_text (rx) : ORIGIN = 0x00000800, LENGTH = 0x1M - 0x1800 &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;EM&gt;my_text (rx) : ORIGIN = 0x000FF000, LENGTH = 0x1000 &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;-------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In list 1, the &lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;‘m_text‘ is from 0x00000800 to 0x000FFFFF. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;EM&gt;m_text (rx) : ORIGIN = 0x00000800, LENGTH = 1M - 0x800&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;-------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct that compared with list 1, the size of&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;‘m_text’ is 0x1000 bytes less.&amp;nbsp; This memory area is relocated for another section ‘.&lt;EM&gt;my_text&lt;/EM&gt;’.&amp;nbsp; That is how to relocate code that the author intent to show us.&amp;nbsp; The list 10 shows how to allocate a function at a fixed address, which is 0x000FF000 in this example. &lt;/SPAN&gt;&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;Fiona Kuang&lt;/P&gt;&lt;P&gt;TIC - Technical Information Center&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Mark Correct button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 03:49:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485107#M3935</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-05-20T03:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485108#M3936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want you to show the calculations.I can understand 0x1000 is getting subtracted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are:-&lt;/P&gt;&lt;P&gt;1)whether it is 0x1M or 1M. Since in your answerr at one place you have used 0x1M and at other you have used 1M???&lt;/P&gt;&lt;P&gt;2)what is the decimal value of 0x1M??&lt;/P&gt;&lt;P&gt;3)Please show me How we got the origin address of my_text??? After adding the m_text origin address plus length?? Please show me the calculations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 06:31:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485108#M3936</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-05-20T06:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485109#M3937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr" style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hi Jin,&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have splitted the text segment in KEA-128.I want to know whether it is right or not.Please Look at my project I have attached it.&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my text division.Please take a look at it and tell me whether I have divided it right or not as per KEA-128.I am confused about the start address of my_text.Is it right???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;MEMORY&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts (rx) : ORIGIN = 0x00000000, LENGTH = 0xC0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (rx) : ORIGIN = 0x00000400, LENGTH = 0x10&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&amp;nbsp; (rx) : ORIGIN = 0x00000800, LENGTH = 128K - 0x800&lt;/P&gt;&lt;P&gt;&amp;nbsp; my_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (rx) : ORIGIN = 0x0001EC00, LENGTH = 0x1000&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; /*New ROM segment*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp; (rwx) : ORIGIN = 0x1FFFF000, LENGTH = 16K /* SRAM */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="yj6qo ajU" style="padding: 10px 0; margin: 2px 0 0; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content" style="background-color: #f1f1f1;"&gt;&lt;IMG class="ajT jive-image" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 May 2016 18:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485109#M3937</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-05-22T18:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485110#M3938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Vignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;You found the problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;In list10, the ‘m_text‘ is from 0x00000800 to 0x000FEFFF. The ‘my_text‘ is&amp;nbsp; from 0x000FF000 to 0X000FFFFF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;The length of m_text (rx) should be (1M - 0x1800). 1M is in the decimal value. So it should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;m_text (rx) : ORIGIN = 0x00000800, LENGTH = 1M - 0x1800 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;my_text (rx) : ORIGIN = 0x000FF000, LENGTH = 0x1000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Fiona Kuang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;TIC - Technical Information Center&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 06:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485110#M3938</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-05-23T06:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485111#M3939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;In your code, 128K is in decimal format. So the section ‘ m_text ’ is from 0x00000800 to 0x0001FFFF.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;According to the memory map for KEAZ128, its flash address is from 0x0000_0000 to 0x0001FFFF. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;So there is no flash memory left for ‘my_text’. Please reduce the size of&amp;nbsp; ‘ m_text ’, so that there could be still memory space&amp;nbsp; left for ‘my_text’. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Fiona Kuang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;TIC - Technical Information Center&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 07:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485111#M3939</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-05-23T07:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485112#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fiona,&lt;/P&gt;&lt;P&gt;So 128K is 128000 in decimal.&lt;/P&gt;&lt;P&gt;So 128000(0x1F400) - 0x800 = 0x1EC00 (length of my_text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So 0x1EC00 is the length.so the start or origin address of my_text should be&lt;/P&gt;&lt;P&gt;0x1EC00(length of m_text) + 0x800(start address of m_text) = 0x1F400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,I think&amp;nbsp; 0x1F400 is the starting address of&amp;nbsp; my_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not please explain me with the calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 07:46:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485112#M3940</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-05-23T07:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting m_text in Linker File of CW</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485113#M3941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Vignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;128K is 131072 in decimal, 128*1024,&amp;nbsp; which is 0x20000 in hex. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Fiona Kuang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;TIC - Technical Information Center&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 08:35:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Splitting-m-text-in-Linker-File-of-CW/m-p/485113#M3941</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-05-23T08:35:30Z</dc:date>
    </item>
  </channel>
</rss>

