<?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: C/C++ startup for CodeWarrior and/or GCC ? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304572#M10833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes, I want to locate specific function at a specific position in memory. The problem is, it is a library function. So I can't use commands like "__attribute__" without rebuilding all the libraries. With the "OBJECT" command from CodeWarrior-Linker-Syntax you could place specific function at every position in memory without rebuilding some lib's. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Sven Kämmer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 06:09:08 GMT</pubDate>
    <dc:creator>sven_kaemmer</dc:creator>
    <dc:date>2014-04-04T06:09:08Z</dc:date>
    <item>
      <title>C/C++ startup for CodeWarrior and/or GCC ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304568#M10829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm in the process of (re)writing a CompactFlash boot loader, and if I knew the intimate details of the linker file and startup process, I think I could reduce the load times and memory image.&amp;nbsp; By leaving the C initialization data on the CompactFlash and performing that task in the bootloader, for instance.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there documents that explain this for the CodeWarrior (Coldfire 52xx) and GNU compilers (recognizing that they'll be similar but different) ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304568#M10829</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2014-03-26T14:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ startup for CodeWarrior and/or GCC ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304569#M10830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I understand correctly. Are you working with both ColdFire and Kinetis?&lt;/P&gt;&lt;P&gt;In any case, you have the required documents in CodeWarrior installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;GNU GCC TOOLS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;General guide on GNU compiler and linker: &lt;/STRONG&gt;..\Freescale\CW MCU v10.5\MCU\Help\PDF\MCU_Kinetis_GCC.pdf&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GNU Linker file: ..&lt;/STRONG&gt;\Freescale\CW MCU v10.5\Cross_Tools\arm-none-eabi-gcc-4_7_3\share\doc\gcc-arm-none-eabi\pdf\ld.pdf&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GNU Compiler:&lt;/STRONG&gt; ..\Freescale\CW MCU v10.5\Cross_Tools\arm-none-eabi-gcc-4_7_3\share\doc\gcc-arm-none-eabi\pdf\gcc\gcc.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the startup process you can create a new bareboard project and refer to the startup files (_arm_start.c, kinetis_sysinit.c), as well as the next file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..\Freescale\CW MCU v10.5\MCU\ARM_GCC_Support\ewl\EWL_Runtime\src\arm\__arm_eabi_init.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;CW COLDFIRE TOOLS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Compiler and linker information:&lt;/STRONG&gt; C:\Freescale\CW MCU v10.5\MCU\Help\PDF\MCU_ColdFire_Compiler.pdf&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For the startup routines, refer to the next file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..\Freescale\CW MCU v10.5\MCU\ColdFire_Support\ewl\EWL_Runtime\Runtime_ColdFire\Source\CF_startup.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;Jorge Gonzalez&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>Sun, 30 Mar 2014 06:25:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304569#M10830</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-03-30T06:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ startup for CodeWarrior and/or GCC ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304570#M10831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these documents are very helpful, but in the linker file syntax for Freescale Linker&amp;nbsp; the command "OBJECT" accessible. Is there an &lt;SPAN class="short_text" lang="en" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="hps" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;equivalent command&lt;/SPAN&gt; for&lt;SPAN class="hps" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; the GCC-Linker?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="short_text" lang="en" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:20:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304570#M10831</guid>
      <dc:creator>sven_kaemmer</dc:creator>
      <dc:date>2014-03-31T09:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ startup for CodeWarrior and/or GCC ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304571#M10832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is not an equivalent command that does the same thing as OBJECT. You want to locate specific functions according to your needs, right? In such case there is an alternative, please check the next tutorial by colleague Erich Styger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/" title="http://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/"&gt;Defining Variables at Absolute Addresses with gcc | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also the next threads in this community with explanations by myself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/391758"&gt;Re: Controlling data and function placement in memory&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/364619"&gt;Re: Re: Syntax to allocate memory assignments to faster memory&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;Jorge Gonzalez&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>Tue, 01 Apr 2014 18:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304571#M10832</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-04-01T18:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ startup for CodeWarrior and/or GCC ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304572#M10833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes, I want to locate specific function at a specific position in memory. The problem is, it is a library function. So I can't use commands like "__attribute__" without rebuilding all the libraries. With the "OBJECT" command from CodeWarrior-Linker-Syntax you could place specific function at every position in memory without rebuilding some lib's. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Sven Kämmer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 06:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-C-startup-for-CodeWarrior-and-or-GCC/m-p/304572#M10833</guid>
      <dc:creator>sven_kaemmer</dc:creator>
      <dc:date>2014-04-04T06:09:08Z</dc:date>
    </item>
  </channel>
</rss>

