<?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>Processor Expert Software中的主题 Re: Is it possible to locate start up code generated by PE in a defined memory location?</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266749#M1705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had used #pragma sections on other sections of code i wanted in specific locations, the problem with the PE-generated start-up code was that i had no editing control over it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Took a while of throwing things at it to find this solution for the start-up code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One observation from the freescale documentation was that it claimed you could place a named .c file in the structure above, but i got linker errors when trying this.&lt;/P&gt;&lt;P&gt;It only worked for .a files from PE, and .obj files from my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i was looking to place entire .c files into specific locations, it was much easier to name the files as "filename_c.obj" in the linker structure rather than adding #pragma section lines to the files themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 13:39:51 GMT</pubDate>
    <dc:creator>leccy</dc:creator>
    <dc:date>2014-03-06T13:39:51Z</dc:date>
    <item>
      <title>Is it possible to locate start up code generated by PE in a defined memory location?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266746#M1702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to locate start up code generated by PE in a defined memory location?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__thumb_startup() and its subroutines etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking along the lines of using "#pragma define section...", but can't find anything in CW10.5 for doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to control locations of certain routines for field upgrade purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 13:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266746#M1702</guid>
      <dc:creator>leccy</dc:creator>
      <dc:date>2014-02-28T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to locate start up code generated by PE in a defined memory location?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266747#M1703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this structure in my lcf file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.startup :&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; librt_Thumb_LE_v7M.a (.text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN (0x4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; } &amp;gt; m_startup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;placed start up code in memory location of my choosing, by assigning a memory range to m_startup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 16:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266747#M1703</guid>
      <dc:creator>leccy</dc:creator>
      <dc:date>2014-03-04T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to locate start up code generated by PE in a defined memory location?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266748#M1704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the LCF file too, like Alex wrote,&amp;nbsp; in order to add section with specific address, then you can use this section in code with #pragma.&lt;/P&gt;&lt;P&gt;Look in freescale site for document about segmentation, and document about ELF linker.&lt;/P&gt;&lt;P&gt;If you still need detailed information let me know and I'll write a sample code with detailed information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 23:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266748#M1704</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2014-03-04T23:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to locate start up code generated by PE in a defined memory location?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266749#M1705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had used #pragma sections on other sections of code i wanted in specific locations, the problem with the PE-generated start-up code was that i had no editing control over it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Took a while of throwing things at it to find this solution for the start-up code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One observation from the freescale documentation was that it claimed you could place a named .c file in the structure above, but i got linker errors when trying this.&lt;/P&gt;&lt;P&gt;It only worked for .a files from PE, and .obj files from my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i was looking to place entire .c files into specific locations, it was much easier to name the files as "filename_c.obj" in the linker structure rather than adding #pragma section lines to the files themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 13:39:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Is-it-possible-to-locate-start-up-code-generated-by-PE-in-a/m-p/266749#M1705</guid>
      <dc:creator>leccy</dc:creator>
      <dc:date>2014-03-06T13:39:51Z</dc:date>
    </item>
  </channel>
</rss>

