<?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>MQX Software SolutionsのトピックRe: Booting MQX from FNET works _sometimes_ (and solution)</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Booting-MQX-from-FNET-works-sometimes-and-solution/m-p/145780#M47</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think I am also having similar problems. I am using FNET and MQX3.8. In my case the application hangs only when I download a new application using FNET. Once the TFTP download completes, the application starts as expected but stops after some time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I power cycle the K60, the application runs fine. Are you seeing similar kind of issue and did you find any solutions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin455&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 16:18:13 GMT</pubDate>
    <dc:creator>Mohsin455</dc:creator>
    <dc:date>2012-09-18T16:18:13Z</dc:date>
    <item>
      <title>Booting MQX from FNET works _sometimes_ (and solution)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Booting-MQX-from-FNET-works-sometimes-and-solution/m-p/145779#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using IAR + FNET + MQX + a custom K60 board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use this script&amp;nbsp;from the FNET shell example application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"dhcp; erase all; tftp; save; go"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now first of all, I have hardcoded the start address in the go-command to 0xC411.&lt;/P&gt;&lt;P&gt;(see &lt;A __default_attr="100780" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/100780" jivemacro="thread" title="https://community.freescale.com/thread/100780"&gt;https://community.freescale.com/thread/100780&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when after the application has been transfered and flashed by the TFTP command, the application starts _sometimes_ , about 50% of the time it hangs and the CPU is unresponsive (I cannot connect to it using the JTEG debugger. (in my case a Segger J-LINK).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must say at this time, I am not sure how exactly the MCG is setup, as I do not understand that part yet.&lt;/P&gt;&lt;P&gt;I can tell from the source that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define FNET_CFG_CPU_CLOCK_HZ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (48000000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is configured and the pll_init() function that is called in FNET's sysinit()&amp;nbsp;&amp;nbsp;seems to work (it does not hang).&lt;/P&gt;&lt;P&gt;Also I have serial port communcation on ttyd: (connected to a serial port to my PC, no USB-&amp;gt;serial stuff &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, so, what do we have: a working FNET example, dhcp works, tftp works.&lt;/P&gt;&lt;P&gt;However 'go' does not always work, even after a reset + 'go' , same problem, sometimes it works, sometimes it hangs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect that MQX assumes that the MCG is in FEI mode (FLL Engaged Internal), since&amp;nbsp;this is the default after a reset.&lt;/P&gt;&lt;P&gt;I do not understand in what mode the MCG is after&amp;nbsp;&lt;SPAN&gt;pll_init(), but looking at the MCG state-diagram I can see that not all transistions are possible.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I would like to do is put the MCG back into FEI mode before starting the MQX application, but I am not sure how to do that. (or what modes to go through, since several transistion might be needed).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have however found an escape &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;, I found that calling&amp;nbsp;mcg_pee_2_blpi() puts the MCG in BLPI mode and appearently MQX finds that more acceptable because my application now always starts correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone shed some light on this, namely: what happens in&amp;nbsp;&lt;SPAN&gt;pll_init() ? what mode is the result of this function and how can I get the MCG safely back in FEI mode ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 23:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Booting-MQX-from-FNET-works-sometimes-and-solution/m-p/145779#M46</guid>
      <dc:creator>Skyhawk</dc:creator>
      <dc:date>2012-03-13T23:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Booting MQX from FNET works _sometimes_ (and solution)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Booting-MQX-from-FNET-works-sometimes-and-solution/m-p/145780#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think I am also having similar problems. I am using FNET and MQX3.8. In my case the application hangs only when I download a new application using FNET. Once the TFTP download completes, the application starts as expected but stops after some time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I power cycle the K60, the application runs fine. Are you seeing similar kind of issue and did you find any solutions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin455&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 16:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Booting-MQX-from-FNET-works-sometimes-and-solution/m-p/145780#M47</guid>
      <dc:creator>Mohsin455</dc:creator>
      <dc:date>2012-09-18T16:18:13Z</dc:date>
    </item>
  </channel>
</rss>

