<?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: Memory violation in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339567#M16306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a IAR IDE for microcontroler programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the answer you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 10:17:40 GMT</pubDate>
    <dc:creator>xavierbuhot</dc:creator>
    <dc:date>2014-09-05T10:17:40Z</dc:date>
    <item>
      <title>Memory violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339563#M16302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when I program my K60 kinetis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try an example and the programm block on this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;And then the k60 restart from the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why this happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 15:30:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339563#M16302</guid>
      <dc:creator>xavierbuhot</dc:creator>
      <dc:date>2014-09-04T15:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Memory violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339564#M16303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Xabier,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Check that the clock configuration (external oscillator, external crystal&lt;SPAN class="GramE"&gt;,..&lt;/SPAN&gt;) &lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;of&lt;/SPAN&gt; the board that SW was developed for (i.e. TWR-K60N512/TWR-K60D100) is the same you're using in your HW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And other possible issue is that SW is developed for silicon &lt;SPAN class="GramE"&gt;v1.x&lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt; (&lt;/SPAN&gt;TWR-K60N512) and your silicon is v2.x (TWR-K60D100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis &lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 15:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339564#M16303</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-09-04T15:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Memory violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339565#M16304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only have problem on my custom card. On the K60 TWR kit there are a PK60N512VMD100 and the clock is 50.000P&amp;nbsp; EC3953PBN.&lt;/P&gt;&lt;P&gt;On my board there are MK60DN512ZVLQ10 and the clock 50.000R EC3953 BN..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand that on my second card, the programmation works properly but on the first one, the programmation locks on this statement:&lt;/P&gt;&lt;P&gt;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;The version of the processor and the clock I use could creates that problem?&lt;/P&gt;&lt;P&gt;Why do I have different behavious on my two card?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 09:22:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339565#M16304</guid>
      <dc:creator>xavierbuhot</dc:creator>
      <dc:date>2014-09-05T09:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Memory violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339566#M16305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What code are you using, bare metal, &lt;SPAN class="GramE"&gt;MQX,..?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 09:53:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339566#M16305</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-09-05T09:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Memory violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339567#M16306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a IAR IDE for microcontroler programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the answer you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 10:17:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339567#M16306</guid>
      <dc:creator>xavierbuhot</dc:creator>
      <dc:date>2014-09-05T10:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Memory violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339568#M16307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;No. I think you started from some Freescale code, MQX distribution, SC code example package&lt;SPAN class="GramE"&gt;,…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your TWR uses a very early silicon &lt;SPAN&gt;PKxxx&lt;/SPAN&gt; and you board production silicon v1.x.&lt;/P&gt;&lt;P&gt;One possible issue is the wrong CLOCK configuration in the code for the silicon you use, other possibility is a HW problem y the clock layout. Your code stops because the PLL/FLL is not locked. Have you verified that clock signal is in the MCU pin correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 11:01:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-violation/m-p/339568#M16307</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-09-05T11:01:55Z</dc:date>
    </item>
  </channel>
</rss>

