<?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: rename main function in startup in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/rename-main-function-in-startup/m-p/611119#M36126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="254240" data-username="darnaiadam" href="https://community.nxp.com/people/darnaiadam"&gt;Darnai Adam&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;According to the statement, I've learned that you want to rename the main function in the main.c file.&lt;/P&gt;&lt;P&gt;And I wan wondering if you can upload your demo, as the different IDE has its particular startup files.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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, 31 Oct 2016 01:58:12 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-10-31T01:58:12Z</dc:date>
    <item>
      <title>rename main function in startup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/rename-main-function-in-startup/m-p/611118#M36125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to rename the main function mentioned in my question, but I can't find out, how should I do it. If I change the name in the "startup_&amp;lt;device_name&amp;gt;.S" based on the function I created in my main.c source, the compiler returns an error message:&lt;/P&gt;&lt;P&gt;"...crt0.o: In function `_start':&lt;BR /&gt;(.text+0x4a): undefined reference to `main'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is two problems with the crt0.o:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - this file is part of a prebuilt library&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - crt0.o is a part of the compiler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented a line in linker script, as follows:&lt;/P&gt;&lt;P&gt;main = created_main;&lt;/P&gt;&lt;P&gt;With this change I could compile my code, and it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way instead of this solution to make it working? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 15:56:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/rename-main-function-in-startup/m-p/611118#M36125</guid>
      <dc:creator>darnaiadam</dc:creator>
      <dc:date>2016-10-28T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: rename main function in startup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/rename-main-function-in-startup/m-p/611119#M36126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="254240" data-username="darnaiadam" href="https://community.nxp.com/people/darnaiadam"&gt;Darnai Adam&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;According to the statement, I've learned that you want to rename the main function in the main.c file.&lt;/P&gt;&lt;P&gt;And I wan wondering if you can upload your demo, as the different IDE has its particular startup files.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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, 31 Oct 2016 01:58:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/rename-main-function-in-startup/m-p/611119#M36126</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-10-31T01:58:12Z</dc:date>
    </item>
  </channel>
</rss>

