<?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 mc9s12XEG128 gcc linker script in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560071#M12784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i am looking for a sample of a gcc linker script, using flash banking (to use the whole 128K of flash). Even for a similar model is ok.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 17:01:37 GMT</pubDate>
    <dc:creator>angelo_d</dc:creator>
    <dc:date>2016-08-25T17:01:37Z</dc:date>
    <item>
      <title>mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560071#M12784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i am looking for a sample of a gcc linker script, using flash banking (to use the whole 128K of flash). Even for a similar model is ok.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 17:01:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560071#M12784</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2016-08-25T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560072#M12785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;Unfortunately, I never use GCC toolchain yet for S12(X/Z).&lt;/P&gt;&lt;P&gt;The banked system split memory into pages ( space is not linear) and we should define every page separately. For example:&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_E0 (rx) : ORIGIN = 0xE08000, LENGTH = 16K&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_E1 (rx) : ORIGIN = 0xE18000, LENGTH = 16K&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_E2 (rx) : ORIGIN = 0xE28000, LENGTH = 16K&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_E3 (rx) : ORIGIN = 0xE38000, LENGTH = 16K&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_FC (rx) : ORIGIN = 0xFC8000, LENGTH = 16K&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_FD (rx) : ORIGIN = 0x4000, LENGTH = 16K&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_FE (rx) : ORIGIN = 0xFE8000, LENGTH = 16K&lt;/P&gt;&lt;P&gt;&amp;nbsp; rom_FF (rx) : ORIGIN = 0xC000, LENGTH = 16128&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_cfmprotrom (rx) : ORIGIN = 0xFF00, LENGTH = 16&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts (rx) : ORIGIN = 0xFF10, LENGTH = 240&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;&amp;nbsp; ram (rwx) : ORIGIN = 0x2000, LENGHT = 0x2000&lt;/P&gt;&lt;P&gt;&amp;nbsp; paged_ram (rwx) : ORIGIN = 0xFD1000, LENGTH = 0x1000&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;In SECTION area, you may define placement different objects into these memory segments.&lt;/P&gt;&lt;P&gt;Unfortunately, I didn’t found any GCC guide how to concatenate these chunks into one region and use it in SECTION area – keep allocation on linker across all pages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We could simply assign several segments into one user segment in CodeWarrior linker. Or we could use global addresses for define linear address space like 0x780000’G..0x78FFFF’G. Unfortunately, I don’t know how to implemented such things on GNU toolchain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The most useful links about GNU linker where I searched:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf"&gt;http://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.scoberlin.de/content/media/http/informatik/gcc_docs/ld_3.html"&gt;http://www.scoberlin.de/content/media/http/informatik/gcc_docs/ld_3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://richardgoyette.com/Research/Papers/FreeRTOSPaperAnnA.pdf"&gt;http://richardgoyette.com/Research/Papers/FreeRTOSPaperAnnA.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.msextra.com/tools/"&gt;http://www.msextra.com/tools/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The S12XE memory map is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:53:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560072#M12785</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-08-29T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560073#M12786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radek,&lt;/P&gt;&lt;P&gt;a special thanks for your very kind support. Will see what i can do and will post something here once things are up and running.&lt;/P&gt;&lt;P&gt;I am planning to still use hi-wave, so a mixed solution, gcc produced binary and hiwave for programming (of course only asm step debug will be possible), but will live with uart debug traces.&lt;/P&gt;&lt;P&gt;Still many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 09:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560073#M12786</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2016-09-07T09:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560074#M12787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally we migrated to mc9s12xep100, found clear gcc explanations on megasquirt open firmware. Banked accesses from local (PPAGE), xgate code and all works fine with gcc. I can build with gcc and program though hiwave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 09:10:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560074#M12787</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2016-09-22T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560075#M12788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, How can you load .elf files created with GCC GNU in Hiwave????&lt;/P&gt;&lt;P&gt;I receive: Warning:Error in object file (debug information)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 08:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560075#M12788</guid>
      <dc:creator>jawwaj</dc:creator>
      <dc:date>2017-04-17T08:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560076#M12789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://groups.yahoo.com/neo/groups/gnu-m68hc11/conversations/topics/8424" title="https://groups.yahoo.com/neo/groups/gnu-m68hc11/conversations/topics/8424"&gt;Yahoo! Groups&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:33:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560076#M12789</guid>
      <dc:creator>jawwaj</dc:creator>
      <dc:date>2017-04-17T13:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560077#M12790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I load the .s19 and all works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 22:25:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560077#M12790</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2017-04-25T22:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560078#M12791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works, but is it possible to use Hiwave as a C debugger ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was working with Noice12 on 9S12 microcontrollers, but now with 9S12X, I can not see the Xgate core.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hiwave can debug Xgate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing elf files generated with the Cosmic compiler, and It work properlytly, but the elf files generated with GCC show me "Error in Object-File (debug-info)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What is the difference?&lt;/P&gt;&lt;P&gt;Not all ELF / DWARF 2.0 are similar?&lt;/P&gt;&lt;P&gt;Is it possible to convert elf files from GNU to Hiwave ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560078#M12791</guid>
      <dc:creator>jawwaj</dc:creator>
      <dc:date>2017-04-28T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560079#M12792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, on hiwave i use always .s19 images, since elf was giving me some trouble. s19 images works fine with hiwave. Whatever mc9s12 compiler you use, compiler or a supplied tool should be able to generate s19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, as far as i know, in hiwave you can debug only C source generated with CodeWarrior. Otherwise assembly steps only of whatever s19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using a proper linker script for GCC ? Btw, generate and try the s19 with hiwave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2017 01:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560079#M12792</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2017-04-29T01:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560080#M12793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes yes, Hiwave with .S19 files generated with GCC GNU work well. But..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hiwave can debug elf files from IDEA COSMIC Compiler (cross compliler as GNU GCC), using the tool "Cvdwarf". The result is a ELF/DWARF file that can be debug with Hiwave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In GCC you can use the flag option -gdwarf-version for 2.0 but the debugger show "error in object file".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 08:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560080#M12793</guid>
      <dc:creator>jawwaj</dc:creator>
      <dc:date>2017-05-02T08:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560081#M12794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://groups.yahoo.com/neo/groups/gnu-m68hc11/conversations/topics/3098" title="https://groups.yahoo.com/neo/groups/gnu-m68hc11/conversations/topics/3098"&gt;Yahoo! Groups&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"HiWave does not care for LMA versus VMA, that's why flashing ELF files&lt;BR /&gt; does not work (only the Metrowerks guys do no accept it, they claim the ELF &lt;BR /&gt; is wrong)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a "Error objecti-info"??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 09:14:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560081#M12794</guid>
      <dc:creator>jawwaj</dc:creator>
      <dc:date>2017-05-02T09:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12XEG128 gcc linker script</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560082#M12795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABI gcc/CodeWarrior are not object file level compatible???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink10" href="https://groups.yahoo.com/neo/groups/gnu-m68hc11/conversations/topics/8987" title="https://groups.yahoo.com/neo/groups/gnu-m68hc11/conversations/topics/8987"&gt;https://groups.yahoo.com/neo/groups/gnu-m68hc11/conversations/topics/8987&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 11:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12XEG128-gcc-linker-script/m-p/560082#M12795</guid>
      <dc:creator>jawwaj</dc:creator>
      <dc:date>2017-05-03T11:50:38Z</dc:date>
    </item>
  </channel>
</rss>

