<?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: Hello world program for Kinetis in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-world-program-for-Kinetis/m-p/168123#M1051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also look at the GPIO example in the Kinetis Sample Code for more examples of blinking the LED's: &lt;A href="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_SC" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_SC&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 06:19:48 GMT</pubDate>
    <dc:creator>anthony_huereca</dc:creator>
    <dc:date>2011-01-26T06:19:48Z</dc:date>
    <item>
      <title>Hello world program for Kinetis</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-world-program-for-Kinetis/m-p/168121#M1049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a small hello world program for the Kinetis K60 but it's not working. It's just a pin I want to toggle.&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;&lt;BR /&gt;#include "derivative.h" /* include peripheral declarations */&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//MCU_init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;GPIOC_POER |= (1&amp;lt;&amp;lt;0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("Hello World!\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;GPIOC_PTOR = (1&amp;lt;&amp;lt;0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;&lt;BR /&gt;}&lt;BR /&gt;[/code]&lt;/P&gt;&lt;P&gt;Using MCU_init or not makes no difference. The pin simply does nothing.&lt;/P&gt;&lt;P&gt;I also tryed to use a DAC but when I add the DAC0 settings in the "Target CPU" view the program crashes and jumps to PE_ISR(isrINT_NMI) when calling the MCU_init method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Why is here no extra forum for Kinetis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:30:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-world-program-for-Kinetis/m-p/168121#M1049</guid>
      <dc:creator>FabianS</dc:creator>
      <dc:date>2010-12-08T15:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hello world program for Kinetis</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-world-program-for-Kinetis/m-p/168122#M1050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for the main function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//MCU_init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5 = 0x800;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTC_PCR0 = 0x00000100;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIOC_POER |= (1&amp;lt;&amp;lt;0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("Hello World!\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;GPIOC_PTOR = (1&amp;lt;&amp;lt;0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The GPIO is a lot different for Kinetis than it used to be for Star 12's.&amp;nbsp; The PortC clock needs to be enabled and the Pin Mux needs to be set to use the GPIO functionality.&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 03:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-world-program-for-Kinetis/m-p/168122#M1050</guid>
      <dc:creator>MikeRC</dc:creator>
      <dc:date>2010-12-14T03:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hello world program for Kinetis</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-world-program-for-Kinetis/m-p/168123#M1051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also look at the GPIO example in the Kinetis Sample Code for more examples of blinking the LED's: &lt;A href="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_SC" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_SC&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 06:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-world-program-for-Kinetis/m-p/168123#M1051</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2011-01-26T06:19:48Z</dc:date>
    </item>
  </channel>
</rss>

