<?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 Flash/debug configurations with separate linker maps in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-debug-configurations-with-separate-linker-maps/m-p/664200#M8790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question, probably kind of an advanced thing for KDS.&amp;nbsp; Here's the lowdown.&amp;nbsp; We use LOTS of different build configurations, but they all have similar post-build steps.&amp;nbsp; We split off a separate memory region and generate two S-records, one with the Kinetis flash and one with an external EEPROM region.&amp;nbsp; As we found out recently, when we added a second external EEPROM region, the debugger had problems with these "fake" memory regions appearing in the ELF.&amp;nbsp; One easy solution is make a separate debug configuration which uses a different linker map which has these memory regions set to NOLOAD.&amp;nbsp; That still works, and there are no crashes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The downside to making the separate debug/flash configurations is if any settings have to change, we would have to make sure the settings match exactly between the two.&amp;nbsp; The other problem we've noticed is keeping the .cproject file in sync as build configurations are added.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a nice way (without writing out all the command line switches manually) of invoking the linker in the post-build steps and just having it re-link with a different linker map?&amp;nbsp; That way, we could have one build configuration which could still generate all the S-records we need, but it could create a different ELF in the end with the "debug" linker map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 19:51:21 GMT</pubDate>
    <dc:creator>davidsherman</dc:creator>
    <dc:date>2016-10-24T19:51:21Z</dc:date>
    <item>
      <title>Flash/debug configurations with separate linker maps</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-debug-configurations-with-separate-linker-maps/m-p/664200#M8790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question, probably kind of an advanced thing for KDS.&amp;nbsp; Here's the lowdown.&amp;nbsp; We use LOTS of different build configurations, but they all have similar post-build steps.&amp;nbsp; We split off a separate memory region and generate two S-records, one with the Kinetis flash and one with an external EEPROM region.&amp;nbsp; As we found out recently, when we added a second external EEPROM region, the debugger had problems with these "fake" memory regions appearing in the ELF.&amp;nbsp; One easy solution is make a separate debug configuration which uses a different linker map which has these memory regions set to NOLOAD.&amp;nbsp; That still works, and there are no crashes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The downside to making the separate debug/flash configurations is if any settings have to change, we would have to make sure the settings match exactly between the two.&amp;nbsp; The other problem we've noticed is keeping the .cproject file in sync as build configurations are added.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a nice way (without writing out all the command line switches manually) of invoking the linker in the post-build steps and just having it re-link with a different linker map?&amp;nbsp; That way, we could have one build configuration which could still generate all the S-records we need, but it could create a different ELF in the end with the "debug" linker map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-debug-configurations-with-separate-linker-maps/m-p/664200#M8790</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-10-24T19:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flash/debug configurations with separate linker maps</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-debug-configurations-with-separate-linker-maps/m-p/664201#M8791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From i know , it seems there isn't this function for KDS to generate two s19 files .&lt;/P&gt;&lt;P&gt;While maybe &lt;A _jive_internal="true" data-avatarid="27153" data-content-finding="Community" data-externalid="" data-online="false" data-presence="null" data-userid="11093" data-username="BlackNight" href="https://community.nxp.com/people/BlackNight"&gt;Erich Styger&lt;/A&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Employee"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122405i536731171E3AE8CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Employee" alt="Employee" /&gt;&lt;/span&gt; know this clearly .&lt;/P&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-avatarid="27153" data-content-finding="Community" data-externalid="" data-online="false" data-presence="null" data-userid="11093" data-username="BlackNight" href="https://community.nxp.com/people/BlackNight"&gt;Erich Styger&lt;/A&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Employee"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122406i10A3DD5A000C246F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Employee" alt="Employee" /&gt;&lt;/span&gt; , could you please help ? Thanks !&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>Wed, 02 Nov 2016 09:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-debug-configurations-with-separate-linker-maps/m-p/664201#M8791</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-11-02T09:23:26Z</dc:date>
    </item>
  </channel>
</rss>

