<?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: Generating position-independent code for Kinetis KEA64 causes MCU to crash in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-position-independent-code-for-Kinetis-KEA64-causes/m-p/716944#M14213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position-independent executable is not supported by CodeWarrior, you can add this flags to your project, but if you check the disassembly code, this code still has absolute paths, moreover, you need to add special code loader which can understand where to place this code (as it suppose to be independent, it shouldn't have any specific address).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconveniences that this may cause you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 00:37:31 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2018-04-17T00:37:31Z</dc:date>
    <item>
      <title>Generating position-independent code for Kinetis KEA64 causes MCU to crash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-position-independent-code-for-Kinetis-KEA64-causes/m-p/716943#M14212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I add the -fpie option to the compiler command line and the -pie option to the linker command line, I can build fine, but no longer debug my application - launching debug results in the following error (after a successful build):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error launching&amp;nbsp;&amp;lt;snip&amp;gt;:&lt;BR /&gt;Can't find executable file. It may need to be rebuilt.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Running the application results in an immediate crash. However, without PIC turned on, the application compiles/runs/debugs fine (until I need to use the position-independent features)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 00:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-position-independent-code-for-Kinetis-KEA64-causes/m-p/716943#M14212</guid>
      <dc:creator>erikjohnson</dc:creator>
      <dc:date>2018-04-10T00:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generating position-independent code for Kinetis KEA64 causes MCU to crash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-position-independent-code-for-Kinetis-KEA64-causes/m-p/716944#M14213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position-independent executable is not supported by CodeWarrior, you can add this flags to your project, but if you check the disassembly code, this code still has absolute paths, moreover, you need to add special code loader which can understand where to place this code (as it suppose to be independent, it shouldn't have any specific address).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconveniences that this may cause you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 00:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-position-independent-code-for-Kinetis-KEA64-causes/m-p/716944#M14213</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-04-17T00:37:31Z</dc:date>
    </item>
  </channel>
</rss>

