<?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: Kinetis K20 &amp;quot;A request for the USB device descriptor failed.&amp;quot; in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928818#M54009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what i originally tried, however when I do so&amp;nbsp;I get the compilation error "..\..\..\Hardware\Kinetis\kinetis.c(2031): error:&amp;nbsp; #35: #error directive: crystal speed support needs to be added!". I tried adding the crystal support manually in the MCG settings, which made it compile, but the crystal didn't activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Håkon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2019 11:32:47 GMT</pubDate>
    <dc:creator>haakonl</dc:creator>
    <dc:date>2019-10-30T11:32:47Z</dc:date>
    <item>
      <title>Kinetis K20 "A request for the USB device descriptor failed."</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928814#M54005</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 trying to set up USB on a custom board with an MK20DX256VLL7. I am using the MCUOnEclipse HID-USB component and used his tutorial for the Teensy 3.1 USB to set it up, which uses the 87-pin version of the same microcontroller. The problem is that when I connect it to any Windows PC I get "Unknown USB Device" with the error "A request for the USB device descriptor failed.". I have googled a lot and most results suggest a hardware failure by connecting VOUT33 or VREGIN incorrectly which is something I originally did, however I think I have fixed&amp;nbsp;that problem. Here's the schematic for the USB:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91649i7264832B9C2C1FA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;On VOUT33 I have placed a 2.2uF capacitor which goes to ground at R12, so I think the hardware is fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I think it's a software problem, I just can't see why, as I have followed the MCUOnEclipse tutorial down to the last detail (except setting the crystal to 32Mhz, as that's what I am using) and double checked many times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 10:40:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928814#M54005</guid>
      <dc:creator>haakonl</dc:creator>
      <dc:date>2019-10-16T10:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 "A request for the USB device descriptor failed."</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928815#M54006</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;An incorrect USB clock frequency is a typical problem - USB will not work even if the clock is off slightly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the free open source uTasker project to test your HW. If will work on a Teensy 3.1 or any other HW without needing different libraries etc. It allows you to simulate the USB in Visual Studio and tells you of anything that is not suitable for USB operation.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;i.MX RT project compatibility: &lt;A href="http://www.utasker.com/iMX.html" target="test_blank"&gt;http://www.utasker.com/iMX.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Kinetis K20:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-K20D50M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-K20D50M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K20D50M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K20D50M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K20D72M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K20D72M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TEENSY_3.1.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TEENSY_3.1.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/tinyK20.html" target="test_blank"&gt;http://www.utasker.com/kinetis/tinyK20.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USB: &lt;A href="http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USB composites: &lt;A href="http://www.utasker.com/kinetis/USB_Device.html" target="test_blank"&gt;http://www.utasker.com/kinetis/USB_Device.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USB-CDC host&amp;lt;-&amp;gt;device video: &lt;A href="https://www.youtube.com/watch?v=XhISV1czIo4&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=16" target="test_blank"&gt;https://www.youtube.com/watch?v=XhISV1czIo4&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=16&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Request Free emergency remote desk-top consulting at &lt;A href="http://www.utasker.com/services.html" target="test_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/512558" target="test_blank"&gt;https://community.nxp.com/thread/512558&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/352862" target="test_blank"&gt;https://community.nxp.com/thread/352862&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/498809" target="test_blank"&gt;https://community.nxp.com/thread/498809&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 20:51:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928815#M54006</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-10-16T20:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 "A request for the USB device descriptor failed."</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928816#M54007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer, and sorry for the late reply, though I figured it out just now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were correct regarding the problem being the clock frequency. I was using a 32Mhz crystal, which it says is compatible in the datasheet. When I tested with uTasker like you suggested, I noticed that 32Mhz crystals were not supported. I then replaced the crystal with a 16Mhz one and now it works! Luckily this project is not dependent on having a such fast crystal, so it's fine using a slower one. I'm however still not sure if the problem was that the Processor expert components didn't support 32Mhz or if it is the microcontroller itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks a lot for the help and getting me in the right direction!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Håkon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:22:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928816#M54007</guid>
      <dc:creator>haakonl</dc:creator>
      <dc:date>2019-10-29T13:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 "A request for the USB device descriptor failed."</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928817#M54008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Håkon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your K20 can be run from a 32MHz crystal (this is its max. specified input frequency).&lt;/P&gt;&lt;P&gt;With a 16MHz crystal the setup for Teensy 3.1 is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define OSC_LOW_GAIN_MODE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define CRYSTAL_FREQUENCY&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;16000000&lt;/STRONG&gt;&lt;/SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 16 MHz crystal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define _EXTERNAL_CLOCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CRYSTAL_FREQUENCY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define CLOCK_DIV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // input must be divided to 2MHz..4MHz range (/1 to /25 possible)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define CLOCK_MUL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the PLL multiplication factor to achieve operating frequency of 48MHz (x24 to x55 possible)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define USB_CLOCK_GENERATED_INTERNALLY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // use USB clock from internal source rather than external pin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the input must be divided to the 2..4MHz range and so an input divider of &lt;SPAN style="text-decoration: underline;"&gt;8&lt;/SPAN&gt; is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case a 32MHz crystal is used instead the only changes needed are&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define CRYSTAL_FREQUENCY&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #000080; "&gt;32000000&lt;/STRONG&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 32 MHz crystal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define CLOCK_DIV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #000080; "&gt;16&lt;/STRONG&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // input must be divided to 2MHz..4MHz range (/1 to /25 possible)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By dividing by 16 instead the input frequency is the same as when a 16MHz crystal in used; the rest remains identical.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 22:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928817#M54008</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-10-29T22:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 "A request for the USB device descriptor failed."</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928818#M54009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what i originally tried, however when I do so&amp;nbsp;I get the compilation error "..\..\..\Hardware\Kinetis\kinetis.c(2031): error:&amp;nbsp; #35: #error directive: crystal speed support needs to be added!". I tried adding the crystal support manually in the MCG settings, which made it compile, but the crystal didn't activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Håkon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 11:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928818#M54009</guid>
      <dc:creator>haakonl</dc:creator>
      <dc:date>2019-10-30T11:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 "A request for the USB device descriptor failed."</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928819#M54010</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 see - the Open Source version uses an old method that requires each crystal used to have a suitable divider value. This is however not critical when using the PLL and a simple modification is to change&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #elif CRYSTAL_FREQUENCY &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;== 24000000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C1 = (MCG_C1_CLKS_EXTERN_CLK | MCG_C1_FRDIV_1024);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // switch to external source (the FLL input clock is set to as close to its input range as possible, although this is not absolutely necessary if the FLL will not be used)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #elif CRYSTAL_FREQUENCY &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&amp;gt;= 24000000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C1 = (MCG_C1_CLKS_EXTERN_CLK | MCG_C1_FRDIV_1024);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // switch to external source (the FLL input clock is set to as close to its input range as possible, although this is not absolutely necessary if the FLL will not be used)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the crystal doesn't start it is possible that you have some additional loading in the HW (such as capacitors or feedback resistor) The TEENSY 3.1 has no loading and so uses the setting&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define OSC_LOW_GAIN_MODE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This must however suit the HW and so this may need to be un-commented (to use high gain mode instead) in order to allow a 32MHz crystal to start.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 19:00:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928819#M54010</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-10-30T19:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 "A request for the USB device descriptor failed."</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928820#M54011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;That probably explains it. I'll try that if I go back to the 32Mhz crystal again. Thank you so much for the help!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Håkon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 12:07:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-quot-A-request-for-the-USB-device-descriptor-failed/m-p/928820#M54011</guid>
      <dc:creator>haakonl</dc:creator>
      <dc:date>2019-10-31T12:07:16Z</dc:date>
    </item>
  </channel>
</rss>

