<?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>Kinetis MicrocontrollersのトピックRe: TWR-K21 USB device</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423407#M24310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajiani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few things need your confirmation. Which USB device example code your are using and which demo in the stack?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you are using USB stack 4.1.1, right? If so, then the default demo in the stack only supports MK21D512xxx5, which is 50MHz part instead of 120MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to support MK21 120MHz part, you need to make a few changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change the clock settings in pll_init() in main_kinetis.c file so you locked PLL at 120MHz, at the same time, you need to change SIM_CLKDIV2 register so USB clock is at 48MHz&lt;/LI&gt;&lt;LI&gt;Make sure MPU_CESR is set to 0, the major difference between MK21D5 with MK21F12 is there is MPU on MK21F which by default will disable USB access&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or more simply, you could try latest USB stack code in KSDK1.2, it already supports MK21F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;tid=redKINETIS_SDK" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;tid=redKINETIS_SDK"&gt;Software Development Kit for Kinetis MCUs|Freescale&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 03:43:48 GMT</pubDate>
    <dc:creator>cutworth</dc:creator>
    <dc:date>2015-06-24T03:43:48Z</dc:date>
    <item>
      <title>TWR-K21 USB device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423406#M24309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using TWR-K21 120Mhz. I am using usb device example code provided in the project fron freescale. While debugging, it is waiting for the enumeration to happen(It will happen only when USB ISR happens), parallely I am connecting K21 device USB to Windows XP PC. On PC it is been detected as unknown device. Kindly guide me through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anupriya Ajani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 12:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423406#M24309</guid>
      <dc:creator>anupriyaajani</dc:creator>
      <dc:date>2015-06-23T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21 USB device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423407#M24310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajiani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few things need your confirmation. Which USB device example code your are using and which demo in the stack?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you are using USB stack 4.1.1, right? If so, then the default demo in the stack only supports MK21D512xxx5, which is 50MHz part instead of 120MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to support MK21 120MHz part, you need to make a few changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change the clock settings in pll_init() in main_kinetis.c file so you locked PLL at 120MHz, at the same time, you need to change SIM_CLKDIV2 register so USB clock is at 48MHz&lt;/LI&gt;&lt;LI&gt;Make sure MPU_CESR is set to 0, the major difference between MK21D5 with MK21F12 is there is MPU on MK21F which by default will disable USB access&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or more simply, you could try latest USB stack code in KSDK1.2, it already supports MK21F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;tid=redKINETIS_SDK" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;tid=redKINETIS_SDK"&gt;Software Development Kit for Kinetis MCUs|Freescale&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 03:43:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423407#M24310</guid>
      <dc:creator>cutworth</dc:creator>
      <dc:date>2015-06-24T03:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21 USB device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423408#M24311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS USB device code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to find USB stack?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 . For clock, I have checked the settings for PLL with 120Mhz clock which is divided to 48Mhz using SIM_CLKDIV2.&lt;/P&gt;&lt;P&gt;2. I have checked for MCU_CESR also. It is set to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anupriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 04:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423408#M24311</guid>
      <dc:creator>anupriyaajani</dc:creator>
      <dc:date>2015-06-24T04:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21 USB device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423409#M24312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean KDS or KSDK? Please check if you have this folder image on your PC after installing KSDK1.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57007iC3A7CAA39E143284/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 05:57:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423409#M24312</guid>
      <dc:creator>cutworth</dc:creator>
      <dc:date>2015-06-24T05:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21 USB device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423410#M24313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For USB device I am using Kinetis Design Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested by you, I am downloading KSDK now. Will check for this image and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anupriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 06:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423410#M24313</guid>
      <dc:creator>anupriyaajani</dc:creator>
      <dc:date>2015-06-24T06:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21 USB device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423411#M24314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To verify the operation of USB device you can also load imges from the links below (for 50 and 120MHz boards).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis/TWR-K21D50M.html" title="http://www.utasker.com/kinetis/TWR-K21D50M.html"&gt;µTasker Kinetis TWR-K21D50M support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis/TWR-K21F120M.html" title="http://www.utasker.com/kinetis/TWR-K21F120M.html"&gt;µTasker Kinetis TWR-K21F120M support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These will show composite USB-CDC operation with mutliple interfaces.&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;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;K21: &lt;A href="http://www.utasker.com/kinetis/TWR-K21D50M.html" title="http://www.utasker.com/kinetis/TWR-K21D50M.html"&gt;µTasker Kinetis TWR-K21D50M support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-K21F120M.html" title="http://www.utasker.com/kinetis/TWR-K21F120M.html"&gt;µTasker Kinetis TWR-K21F120M support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;USB User's Guide: &lt;A href="http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF" title="http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF"&gt;http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Composite USB: &lt;A href="http://www.utasker.com/kinetis/USB_Device.html" title="http://www.utasker.com/kinetis/USB_Device.html"&gt;µTasker USB Device Configuration&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 12:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21-USB-device/m-p/423411#M24314</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-06-24T12:13:00Z</dc:date>
    </item>
  </channel>
</rss>

