<?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: Settings COSMIC compiler for 9S12G48? ELF-file in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Settings-COSMIC-compiler-for-9S12G48-ELF-file/m-p/256984#M9734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PFlash map for the S12G is basically the same as the S12P. Here are the +seg definitions I used in an S12P64 project with the Cosmic compiler, using the Hiwave debugger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+seg .text -b 0x4000 -m 0x4000 -x -f 0x3f&lt;/P&gt;&lt;P&gt;+seg .text -b 0x38000 -o 0x8000 -m 0x4000 -x -f 0x3f&lt;/P&gt;&lt;P&gt;+seg .text -b 0xc000 -m 0x3f00 -n .text&lt;/P&gt;&lt;P&gt;+seg .const -a .text -f 0x3f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The -f option fills unused space within a segment with the SWI instruction (0x3f). The -x option allows one segment to automatically "spill over" into the next non-contiguous segment when the segment becomes full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the cvdwarf utility to create an ELF/DWARF file for Hiwave, make sure to use the +page1 option on the command line. i.e. cvdwarf +page1 -o &amp;lt;OutputPathFileName&amp;gt; &amp;lt;InputPathFileName&amp;gt;.h12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 21:59:27 GMT</pubDate>
    <dc:creator>GordonD</dc:creator>
    <dc:date>2013-02-14T21:59:27Z</dc:date>
    <item>
      <title>Settings COSMIC compiler for 9S12G48? ELF-file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Settings-COSMIC-compiler-for-9S12G48-ELF-file/m-p/256983#M9733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just have a problem with the linker or ELF-producer (clabs.exe) for getting a ELF-File that can be downloaded and debugged with the Hiware debugger using Multilink.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem does not occur when I am downloading a S19-file. The firmware runs correctly but debugging is not possible. With all tried settings I always get the error from the elf-loader "no memory at location..." when tring the ELF-file.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;extract from linker:&lt;/P&gt;&lt;P&gt;+seg .text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -b0xC000 -o0xC000 -n.text -m0x3F00 -s flash&amp;nbsp;&amp;nbsp; --&amp;gt; no memory at location 0x00C000&lt;/P&gt;&lt;P&gt;when using this setting:&lt;/P&gt;&lt;P&gt;+seg .text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -b0xF8000 -o0xC000 -n.text -m0x3F00 -s flash&amp;nbsp;&amp;nbsp; --&amp;gt; no memory at location 0x0F8000&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The S19 always looks correct and works.&lt;/P&gt;&lt;P&gt;Has anyone a hint what settings I have to change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 10:47:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Settings-COSMIC-compiler-for-9S12G48-ELF-file/m-p/256983#M9733</guid>
      <dc:creator>christiangaertn</dc:creator>
      <dc:date>2013-02-13T10:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Settings COSMIC compiler for 9S12G48? ELF-file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Settings-COSMIC-compiler-for-9S12G48-ELF-file/m-p/256984#M9734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PFlash map for the S12G is basically the same as the S12P. Here are the +seg definitions I used in an S12P64 project with the Cosmic compiler, using the Hiwave debugger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+seg .text -b 0x4000 -m 0x4000 -x -f 0x3f&lt;/P&gt;&lt;P&gt;+seg .text -b 0x38000 -o 0x8000 -m 0x4000 -x -f 0x3f&lt;/P&gt;&lt;P&gt;+seg .text -b 0xc000 -m 0x3f00 -n .text&lt;/P&gt;&lt;P&gt;+seg .const -a .text -f 0x3f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The -f option fills unused space within a segment with the SWI instruction (0x3f). The -x option allows one segment to automatically "spill over" into the next non-contiguous segment when the segment becomes full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the cvdwarf utility to create an ELF/DWARF file for Hiwave, make sure to use the +page1 option on the command line. i.e. cvdwarf +page1 -o &amp;lt;OutputPathFileName&amp;gt; &amp;lt;InputPathFileName&amp;gt;.h12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 21:59:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Settings-COSMIC-compiler-for-9S12G48-ELF-file/m-p/256984#M9734</guid>
      <dc:creator>GordonD</dc:creator>
      <dc:date>2013-02-14T21:59:27Z</dc:date>
    </item>
  </channel>
</rss>

