<?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: TWR-K60F120M hangs on debug in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329530#M15329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, awesome advice.  got the right project and all is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Aug 1, 2014 at 10:03 AM, David E Seymour &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Aug 2014 17:43:54 GMT</pubDate>
    <dc:creator>vanmalan</dc:creator>
    <dc:date>2014-08-02T17:43:54Z</dc:date>
    <item>
      <title>TWR-K60F120M hangs on debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329524#M15323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a new TWR-K60F12M rev C1.&amp;nbsp; I am trying to run any of the demos with the Eclipse CW ver 10.6.&amp;nbsp; I have tried the K60 gpio kinetis example project.&amp;nbsp; the RAM configured build.&amp;nbsp; the sample hangs in pll_init waiting for the lock...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (!(MCG_S &amp;amp; MCG_S_LOCK_MASK)){}; // Wait for LOCK bit to set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see others having trouble with this in the past but the suggested solutions don't seem to match my board support code.&amp;nbsp; any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 23:58:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329524#M15323</guid>
      <dc:creator>vanmalan</dc:creator>
      <dc:date>2014-07-31T23:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K60F120M hangs on debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329525#M15324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Van,&lt;/P&gt;&lt;P&gt;Please read the following:&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_1_0_GA\doc\MQX_Getting_Started.pdf&lt;BR /&gt;Page 57 has the TWR-K60F120M jumper configurations MQX expects for the MCU and TWR-SER cards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching a ZIP file that has pictures of my two cards as reference.&lt;/P&gt;&lt;P&gt;Please note most MQX applications are too big to run from SRAM only and need to be programmed to flash.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 16:49:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329525#M15324</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-08-01T16:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K60F120M hangs on debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329526#M15325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;thanks for the response.  the GPIO example is quite small and I got it to&lt;/P&gt;&lt;P&gt;go with some messing around.  maybe you could verify my settings as I had&lt;/P&gt;&lt;P&gt;to manipulate the values used for MCG_C5 and MCG_C6 in order to get pll&lt;/P&gt;&lt;P&gt;lock and for the baud rate to be correct at 115200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the original generated source in pll_init had&lt;/P&gt;&lt;P&gt;#if (defined(K60_CLK))&lt;/P&gt;&lt;P&gt;   MCG_C5 = MCG_C5_PRDIV(0x18);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which expands to MCG_C5 = 0x18;  I thought this strange since the manual&lt;/P&gt;&lt;P&gt;(K60P144M150SF3RM.pdf) shows bits 4 &amp;amp; 5 as read only.  so this was really&lt;/P&gt;&lt;P&gt;MCG_C5 = 0;  I changed to MCG_C5 = 5;  and now the PLL is happy.  the&lt;/P&gt;&lt;P&gt;effective baud rate was not good (through the USB cable) and so I looked&lt;/P&gt;&lt;P&gt;further and found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCG_C6 = MCG_C6_PLLS_MASK | MCG_C6_VDIV(24); //VDIV = 24 (x48)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again, this expands to MCG_C6 = 0x40 |  24;  this value seemed much to&lt;/P&gt;&lt;P&gt;large.  so after some experimentation and my oscope, I set it to&lt;/P&gt;&lt;P&gt;MCG_C6 = MCG_C6_PLLS_MASK | 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the PLL is happy and the effective baud rate is 115200 as it should be.&lt;/P&gt;&lt;P&gt; so, did I choose correctly?  is it possible in the latest release that the&lt;/P&gt;&lt;P&gt;macros for MCG_C5_PRDIV and MCG_C6_VDIV have changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Aug 1, 2014 at 6:50 AM, David E Seymour &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 19:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329526#M15325</guid>
      <dc:creator>vanmalan</dc:creator>
      <dc:date>2014-08-01T19:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K60F120M hangs on debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329527#M15326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Van,&lt;/P&gt;&lt;P&gt;What code are you running?&amp;nbsp; I'm guessing not MQX.&amp;nbsp; Correct?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 19:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329527#M15326</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-08-01T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K60F120M hangs on debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329528#M15327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I imported the sample application with CW from this folder...&lt;/P&gt;&lt;P&gt;C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Kinetis_Examples\k60\gpio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is part of the evaluation development tools from Freescale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Aug 1, 2014 at 9:27 AM, David E Seymour &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 19:43:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329528#M15327</guid>
      <dc:creator>vanmalan</dc:creator>
      <dc:date>2014-08-01T19:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K60F120M hangs on debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329529#M15328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Van,&lt;/P&gt;&lt;P&gt;That helps.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;The example you are pointing to and using is only for the TWR-K60N512 and not TWR-K60F120 (or even the TWR-K60D100M).&lt;/P&gt;&lt;P&gt;The TWR-K60N512 is K60-100MHz Rev1.x silicon (oldest and not recommended for new designs).&lt;/P&gt;&lt;P&gt;The TWR-K60D100M is K60-100MHz Rev 2.x silicon (newest).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your TWR-K60F120M is different silicon and 120MHz.&amp;nbsp; Therefore the clocking is different and the cause of your issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use CW10.6 to create a new bareboard K60F120M project.&amp;nbsp; But that gets messy as you need to configure clocks and more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or goto the TWR-K60F120M Product Page and click on the Downloads tab (&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-K60F120M&amp;amp;nodeId=0152106740B1ECDBC2&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-K60F120M&amp;amp;nodeId=0152106740B1ECDBC2&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;Kinetis K60 120 MHz Tower System Module|Freescale&lt;/A&gt;) and search for following:&lt;/P&gt;&lt;P&gt;KINETIS_120MHZ_SC.zip code that has baremetal projects for you.&amp;nbsp; Note the SC CodeWarrior projects for this device are labeled "k60" which is confusing and might be thought to be for any and all k60 devices but is only for the K60-120MHz devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or go to &lt;A href="http://www.freescale.com/mqx"&gt;www.freescale.com/mqx&lt;/A&gt; and download the latest MQX4.1 which has RTOS support for the TWR-K60F120M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 20:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329529#M15328</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-08-01T20:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K60F120M hangs on debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329530#M15329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, awesome advice.  got the right project and all is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Aug 1, 2014 at 10:03 AM, David E Seymour &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 17:43:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M-hangs-on-debug/m-p/329530#M15329</guid>
      <dc:creator>vanmalan</dc:creator>
      <dc:date>2014-08-02T17:43:54Z</dc:date>
    </item>
  </channel>
</rss>

