<?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>Kinetis Design StudioのトピックRe: _start problem with KL05Z</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384130#M2175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is that problem that the GNU libraries in KDS require an excessive amount of heap memory. This problem does not exist for the ARM Embedded Lauchpad tools (that's why I'm using launchpad in many of my projects, see &lt;A href="http://mcuoneclipse.com/2014/07/11/switching-arm-gnu-tool-chain-and-libraries-in-kinetis-design-studio/" title="http://mcuoneclipse.com/2014/07/11/switching-arm-gnu-tool-chain-and-libraries-in-kinetis-design-studio/"&gt;Switching ARM GNU Tool Chain and Libraries in Kinetis Design Studio | MCU on Eclipse&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 17:43:44 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2014-11-06T17:43:44Z</dc:date>
    <item>
      <title>_start problem with KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384127#M2172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting up with the KL05Z and Kinetis Design Studio, but I'm having problems when my code arrives to _start. To put you in context, I've operated as follows:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - I've created a new Kinetis Design Studio: NEW_PROJECT -&amp;gt; KINETIS DESIGN STUDIO. &lt;/P&gt;&lt;P&gt;2 - Selected in the processor list the MKL05Z32xxx4&lt;/P&gt;&lt;P&gt;3 - I don't select the options Kinetis SDK (not available), neither the Processor Expert tick. I want a bare metal project.&lt;/P&gt;&lt;P&gt;4 - Click Finish&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The generated project compiles correctly, but has the problem that when arrives to _start hangs. I've replaced the _start function by main, and now the application runs correctly, but I think there's a problem with static and global variables, because they are not being initialized. It must be a problem with startup files.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix it?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you in advance&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:28:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384127#M2172</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2014-11-06T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: _start problem with KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384128#M2173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;can you check you linker file, if you have this:&lt;/P&gt;&lt;P&gt;/* Entry Point */&lt;/P&gt;&lt;P&gt;ENTRY(Reset_Handler)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEAP_SIZE&amp;nbsp; = DEFINED(__heap_size__)&amp;nbsp; ? __heap_size__&amp;nbsp; : 0x00000200;&lt;/P&gt;&lt;P&gt;STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x00000100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000000, LENGTH = 0x00000100&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_flash_config&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000410, LENGTH = 0x00007BF0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW)&amp;nbsp; : ORIGIN = 0x1FFFFC00, LENGTH = 0x00001000&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:57:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384128#M2173</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-11-06T15:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: _start problem with KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384129#M2174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you!!!!! The problem was in the HEAP_SIZE. The generated linker file configured this value to 100, instead 200 as yours. Correcting this value, the _start function is called now correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 16:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384129#M2174</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2014-11-06T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: _start problem with KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384130#M2175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is that problem that the GNU libraries in KDS require an excessive amount of heap memory. This problem does not exist for the ARM Embedded Lauchpad tools (that's why I'm using launchpad in many of my projects, see &lt;A href="http://mcuoneclipse.com/2014/07/11/switching-arm-gnu-tool-chain-and-libraries-in-kinetis-design-studio/" title="http://mcuoneclipse.com/2014/07/11/switching-arm-gnu-tool-chain-and-libraries-in-kinetis-design-studio/"&gt;Switching ARM GNU Tool Chain and Libraries in Kinetis Design Studio | MCU on Eclipse&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 17:43:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/start-problem-with-KL05Z/m-p/384130#M2175</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-11-06T17:43:44Z</dc:date>
    </item>
  </channel>
</rss>

