<?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 MQX code difference between Kinetis K60 and K20 MCU in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230321#M6287</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We need to develop a custom board with K20 MCU. For this we have developed our code using TWR K60 board.&lt;/P&gt;&lt;P&gt;Can i use the same code developed for TWR K60&amp;nbsp; directly in the K20 board. We could able to download "Hello' example project in the K60 board.&lt;/P&gt;&lt;P&gt;in K20 board. Is there any other changes will be required. We are getting the external interrupts also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 06:45:32 GMT</pubDate>
    <dc:creator>kirankunnath</dc:creator>
    <dc:date>2014-02-13T06:45:32Z</dc:date>
    <item>
      <title>MQX code difference between Kinetis K60 and K20 MCU</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230321#M6287</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We need to develop a custom board with K20 MCU. For this we have developed our code using TWR K60 board.&lt;/P&gt;&lt;P&gt;Can i use the same code developed for TWR K60&amp;nbsp; directly in the K20 board. We could able to download "Hello' example project in the K60 board.&lt;/P&gt;&lt;P&gt;in K20 board. Is there any other changes will be required. We are getting the external interrupts also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 06:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230321#M6287</guid>
      <dc:creator>kirankunnath</dc:creator>
      <dc:date>2014-02-13T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: MQX code difference between Kinetis K60 and K20 MCU</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230322#M6288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN class="SpellE"&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 class="SpellE"&gt;Kiran&lt;/SPAN&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;First, I understand your K20 will be 100Mhz like the TWR-K60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, you should clone the TWR-K60 BSP, paying attention to the silicon version of K20 will use. Rev1.x use TWR-K60N512 BSP, for K20 Rev2.x silicon, use TWR-K60D100 BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After cloning, you have to remove the code associated to the peripherals in the K60 BSP that you don't have in the K20, for example Ethernet code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you will be able to run your MQX applications. Otherwise, you will get hardware faults when the code try to init the peripherals that don't exist in the K20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And of course, adapt the &lt;SPAN class="SpellE"&gt;init_bsp.c&lt;/SPAN&gt;, &lt;SPAN class="SpellE"&gt;init_hw.c&lt;/SPAN&gt;, &lt;SPAN class="SpellE"&gt;init_gpio.c&lt;/SPAN&gt; to your board and K20 peripherals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230322#M6288</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-02-13T12:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: MQX code difference between Kinetis K60 and K20 MCU</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230323#M6289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luis,&lt;/P&gt;&lt;P&gt;Thank you for your response. &lt;/P&gt;&lt;P&gt;We are facing an issue in the i2c interface with our MCU ( K20 ) in our custom board.&lt;/P&gt;&lt;P&gt;We have changed the i/o settings from Port pin for i2c0 ( PTD8 and PTD9 in TWR-K60 ) to PTB0 and PTB1 to suit our custom board.&lt;/P&gt;&lt;P&gt;For this we have edited init_gpio.c file to&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; pctl = (PORT_MemMapPtr)PORTB_BASE_PTR;&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; pctl-&amp;gt;PCR[0] = PORT_PCR_MUX(ALT2) | PORT_PCR_ODE_MASK;&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; pctl-&amp;gt;PCR[1] = PORT_PCR_MUX(ALT2) | PORT_PCR_ODE_MASK;&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; sim-&amp;gt;SCGC4 |= SIM_SCGC4_I2C0_MASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we are not able to communicate with the device. Is there any other settings required?&lt;/P&gt;&lt;P&gt;The SCK and SDA lines are always set to high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While running the MQX code it hangs in the i2c_pol_ki2c.c file ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (0 == (i2c_ptr-&amp;gt;S &amp;amp; I2C_S_IICIF_MASK))&lt;/P&gt;&lt;P&gt; { };&amp;nbsp;&amp;nbsp; /* wait for address transferred */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have connected 3 slave devices in the same i2c0 line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help us to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 14:16:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230323#M6289</guid>
      <dc:creator>kirankunnath</dc:creator>
      <dc:date>2014-02-13T14:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: MQX code difference between Kinetis K60 and K20 MCU</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230324#M6290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;Attached are two very good PDF's to help explain porting the BSP from super set RTOS.&amp;nbsp; They will be in the MQX4.1 release late this month is schedule holds.&lt;/P&gt;&lt;P&gt;Please review and let us know if this resolved your issue.&amp;nbsp; They cover the details quite well of which one may have been missed causing you your issue.&amp;nbsp; Sorry.&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>Thu, 13 Feb 2014 17:17:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-code-difference-between-Kinetis-K60-and-K20-MCU/m-p/230324#M6290</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-02-13T17:17:28Z</dc:date>
    </item>
  </channel>
</rss>

