<?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 for MCU中的主题 Re: problem using __SEG_END_ feature</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/problem-using-SEG-END-feature/m-p/179041#M5930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The linker is always allocating a section at the beginning of the segment where it is placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cannot direct it to allocate the section at the end of a memory area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See following post for instruction on how to request an extension in the tool chain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="77166" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/77166" jivemacro="thread" title="https://community.freescale.com/thread/77166"&gt;https://community.freescale.com/thread/77166&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 18:43:09 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2011-01-26T18:43:09Z</dc:date>
    <item>
      <title>problem using __SEG_END_ feature</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/problem-using-SEG-END-feature/m-p/179040#M5929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using CodeWarrio ver 5.0, build 9061 for S12X with build tool update 5.0.1, build 10038&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put the following in my code:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN style="color: #808000;"&gt;#pragma&lt;/SPAN&gt; &lt;SPAN&gt;DATA_SEG&lt;/SPAN&gt; &lt;SPAN&gt;EOLPROG&lt;/SPAN&gt;&lt;SPAN&gt;vunsigned short&lt;/SPAN&gt; &lt;SPAN&gt;EOLcode&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;#pragma&lt;/SPAN&gt; &lt;SPAN&gt;DATA_SEG&lt;/SPAN&gt; &lt;SPAN&gt;DEFAULT&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;extern&lt;/SPAN&gt; &lt;SPAN&gt;unsigned short&lt;/SPAN&gt; &lt;SPAN&gt;__SEG_END_EOLPROG&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[]&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then, in my PRM file, in the PLACEMENT section:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;EOLPROG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp;&amp;nbsp;&amp;nbsp; NO_INIT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x7F6C00'G TO 0x7F6FFF'G;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, &amp;nbsp;the address of __SEG_END_EOLPROG was 0x7F6C02. I was expecting it to be 0x7F7000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I can unserstand that "EOLPROG INTO EOLRESERVED" would get that result, here I am directly defining the address range for EOLPROG, so it would be reasonable to expect the address of __SEG_END_EOLPROG would be 0x7F7000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other way to get what I am looking for? (other than defining 2 ranges)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/problem-using-SEG-END-feature/m-p/179040#M5929</guid>
      <dc:creator>rlw</dc:creator>
      <dc:date>2020-10-29T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem using __SEG_END_ feature</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/problem-using-SEG-END-feature/m-p/179041#M5930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The linker is always allocating a section at the beginning of the segment where it is placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cannot direct it to allocate the section at the end of a memory area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See following post for instruction on how to request an extension in the tool chain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="77166" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/77166" jivemacro="thread" title="https://community.freescale.com/thread/77166"&gt;https://community.freescale.com/thread/77166&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 18:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/problem-using-SEG-END-feature/m-p/179041#M5930</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-01-26T18:43:09Z</dc:date>
    </item>
  </channel>
</rss>

