<?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>Kinetis Design Studio中的主题 undefined reference to __STACK_TOP</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-STACK-TOP/m-p/694921#M9116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm porting an older project to SDK_2.2, and I'm getting:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;undefined reference to __STACK_TOP&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the original&amp;nbsp;project -- which compiles correctly --&amp;nbsp;I see references to __STACK_TOP but as far as I can tell, there's no definition for it.&amp;nbsp; This&amp;nbsp;leads me to think it's a special symbol, perhaps defined by the linker?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the right remedy to make __STACK_TOP known to my project?&amp;nbsp; Or has the mechanism changed in SDK 2.x?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 20:42:18 GMT</pubDate>
    <dc:creator>robertpoor</dc:creator>
    <dc:date>2017-09-28T20:42:18Z</dc:date>
    <item>
      <title>undefined reference to __STACK_TOP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-STACK-TOP/m-p/694921#M9116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm porting an older project to SDK_2.2, and I'm getting:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;undefined reference to __STACK_TOP&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the original&amp;nbsp;project -- which compiles correctly --&amp;nbsp;I see references to __STACK_TOP but as far as I can tell, there's no definition for it.&amp;nbsp; This&amp;nbsp;leads me to think it's a special symbol, perhaps defined by the linker?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the right remedy to make __STACK_TOP known to my project?&amp;nbsp; Or has the mechanism changed in SDK 2.x?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 20:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-STACK-TOP/m-p/694921#M9116</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-09-28T20:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to __STACK_TOP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-STACK-TOP/m-p/694922#M9117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay - figured it out: __STACK_TOP defined in the .ld file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the old project, the .ld file defines both __StackTop and __STACK_TOP:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;.stack :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; . = ALIGN(8);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; __StackLimit = .;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; . += STACK_SIZE;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; __StackTop = .;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; __STACK_TOP = .;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; PROVIDE(__stack = __StackTop);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; } &amp;gt; m_data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The newer project only defines __StackTop:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;/* Initializes stack on the end of block */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; __StackTop = ORIGIN(m_data) + LENGTH(m_data);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; __StackLimit = __StackTop - STACK_SIZE;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt; PROVIDE(__stack = __StackTop);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I could alias __StackTop to __STACK_TOP as in the old project, or change references&amp;nbsp;in my code to _StackTop.&amp;nbsp; The latter appears to be stylistically more correct.&amp;nbsp; And it now compiles without error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 21:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-STACK-TOP/m-p/694922#M9117</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-09-28T21:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to __STACK_TOP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-STACK-TOP/m-p/694923#M9118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rotert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your sharing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 06:39:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-STACK-TOP/m-p/694923#M9118</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-09-29T06:39:28Z</dc:date>
    </item>
  </channel>
</rss>

