<?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: Re: Can the PE FSL_USB_STACK use Clock Source 1 in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374888#M1920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thanks for the response. I added the fix, and also looked at it to make sure it was there and follow the anatomy of the fix - I'm on a learning curve.:)&lt;/P&gt;&lt;P&gt;On downloading, it didn't seem to help. Still gets stuck in a delay loop as the Events.c:TI1_OnInterrupt() appears to be disabled.&lt;/P&gt;&lt;P&gt;For some reason&amp;nbsp; my component Timer TI1 I was using LPTIMER and your&amp;nbsp; FRDM-K20D example was using the FTM0_MOD timer - so I switched to it - and it works. Wow. &lt;STRONG&gt;Fantastic:smileyhappy:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or at least one of my USB Sticks can see and list the directory. Fantastic.!!!!&lt;/P&gt;&lt;P&gt;However another USB stick that was working with the FRDM-L25z mbed FAT doesn't show up&amp;nbsp; - oh well, next problem. But fantastic - can now play with the FAT:smileycool: parameters and filesizes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey, since Switzerland is pretty close to New Year - Happy New Year 2015.:smileysilly: &lt;/P&gt;&lt;P&gt;Maaaannnnnyyyy&lt;STRONG&gt; thanks&lt;/STRONG&gt; for the &lt;SPAN style="text-decoration: underline;"&gt;blog&lt;/SPAN&gt; and putting together the &lt;STRONG&gt;&lt;EM&gt;examples:heart:&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Talk to you next year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Dec 2014 17:57:11 GMT</pubDate>
    <dc:creator>neilhancock</dc:creator>
    <dc:date>2014-12-31T17:57:11Z</dc:date>
    <item>
      <title>Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374882#M1914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A qu before the xmas break from Ca(GMT-8hrs), maybe to Eric as its FSL_USB_STACK (and Eirc has already posted Xmas sunrise in Switzerland)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using KDS200 with ProcessorExpert FSL_USB_STACK and when I see the &lt;/P&gt;&lt;P&gt;FSL_USB_STACK . Settings.Clock settings. Clock Divider its marked as STOPPED&lt;/P&gt;&lt;P&gt;I've got my &lt;/P&gt;&lt;P&gt;ClockSource0 as a lowPower LowSpeed Clock on startup&lt;/P&gt;&lt;P&gt;ClockSource1 as 96Mhz clock&lt;/P&gt;&lt;P&gt;Is this why I'm getting STOPPED?&lt;/P&gt;&lt;P&gt;Is there anyway for it to use Clock Source 1?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18076_18076.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120111i97D2B51EB1329492/image-size/large?v=v2&amp;amp;px=999" role="button" title="18076_18076.jpg" alt="18076_18076.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PeFslUsbStackClockSettings.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48781i982E9C14AC06359C/image-size/large?v=v2&amp;amp;px=999" role="button" title="PeFslUsbStackClockSettings.JPG.jpg" alt="PeFslUsbStackClockSettings.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd Qu for FSL_USB_STACK &lt;/P&gt;&lt;P&gt;- I selected CPU Kinetis K20D72 - and it told me it wasn't available. Can I still set it to K20D50 - as they seem the same as far as the USB?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 00:31:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374882#M1914</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2014-12-25T00:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374883#M1915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;RE question 1: If it shows 'STOPPED', it means that this input clock to the USB module is not running. You problably have not selected the proper PLL/FLL clock in the output settings in the CPU component (setting shown for K64F, but should be similar for your K20):&lt;/P&gt;&lt;P&gt;&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/48780iD779E4B094932A54/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;Make sure you select 'PLL' there, so the PLL clock is routed to the USB peripheral.&lt;/P&gt;&lt;P&gt;That's something easily missed, so I try to point it out in my tutorials (e.g. &lt;A href="http://mcuoneclipse.com/2013/10/27/usb-with-the-twr-k60f120m-and-twr-k70f120m/" title="http://mcuoneclipse.com/2013/10/27/usb-with-the-twr-k60f120m-and-twr-k70f120m/"&gt;USB with the TWR-K60F120M and TWR-K70F120M | MCU on Eclipse&lt;/A&gt;), but the setting might be different for the given Kinetis Family.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RE question 2: Which USB device class are you using? K20D72 is supported (at least in the lastest release):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48782i880740F514EAA9D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are you using the latest drop from SourceForge (&lt;A href="http://mcuoneclipse.com/2014/10/21/mcuoneclipse-releases-on-sourceforge/" title="http://mcuoneclipse.com/2014/10/21/mcuoneclipse-releases-on-sourceforge/"&gt;McuOnEclipse Releases on SourceForge | MCU on Eclipse&lt;/A&gt;, &lt;A href="https://sourceforge.net/projects/mcuoneclipse/" title="https://sourceforge.net/projects/mcuoneclipse/"&gt;McuOnEclipse | SourceForge.net&lt;/A&gt;)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps, and Merry Christmas,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 09:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374883#M1915</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-12-25T09:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374884#M1916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Eric - Season Greetings, and thanks for the reply.&lt;/P&gt;&lt;P&gt;Also great to get an update for the "Components 2014-12-27.zip" wow on Saturday - I pulled that in and it now generates for the K20D72. Many thanks.&lt;/P&gt;&lt;P&gt;Here is my clock sources -&lt;/P&gt;&lt;P&gt;ClockConfiguration&lt;STRONG style="text-decoration: underline;"&gt;1&lt;/STRONG&gt; does have the PLL/FLL clock selection enabled, &lt;/P&gt;&lt;P&gt;but NOT ClockConfiguration&lt;STRONG style="text-decoration: underline;"&gt;0&lt;/STRONG&gt; - so I'm guess the FSL_USB_STACK is&amp;nbsp; keying off ClockConfiguration0. There isn't a choice that I can see of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="B022cLlsModeClockSources141225ann.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48795i132CA0A6339F3407/image-size/large?v=v2&amp;amp;px=999" role="button" title="B022cLlsModeClockSources141225ann.jpg" alt="B022cLlsModeClockSources141225ann.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="B022cLlsModeUsb0ClockSettings141227.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48796iE0B43E551E2D9404/image-size/large?v=v2&amp;amp;px=999" role="button" title="B022cLlsModeUsb0ClockSettings141227.JPG.jpg" alt="B022cLlsModeUsb0ClockSettings141227.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did have a look at the "ProcessorExpert.pe" file to see if there was anyway I could switch around the definitions of Clock Config/Source 0/1 - but the tags didn't match textually to what I see on the screen.&lt;/P&gt;&lt;P&gt;So I assume I'm going to have to work through recreating the clocks with the USB being defined in Clock Config 0&lt;/P&gt;&lt;P&gt;Its probably not a lot of work - I initially had ClockConfig0 as a low power startup, but I think there are other ways of ensuring a low power startup - still have to experiment.&lt;/P&gt;&lt;P&gt;Many thanks for your insights&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2014 19:25:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374884#M1916</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2014-12-27T19:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374885#M1917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is using clock configuration 0, I don't think there is a way to get around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 05:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374885#M1917</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-12-28T05:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374886#M1918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erich, Thanks for the response.&lt;/P&gt;&lt;P&gt;I've moved all the clock settings to ClockSourceSetting0&amp;nbsp; for 48Mhz and it compiles, downloads OK and runs.&lt;/P&gt;&lt;P&gt;All the settings for the USB stack are the same as your McuOnEclipse USB MSD settings for the FRDM-K20D50 except for selecting the K20D72&lt;/P&gt;&lt;P&gt;I've the two tasks - one Host and the other Shell.c&lt;/P&gt;&lt;P&gt;The shell responds with help/status.&lt;/P&gt;&lt;P&gt;I have the Hosttask instrumented with a led_neg() to see it polling the FsMSD1_appTask() and CheckStatus()&lt;/P&gt;&lt;P&gt;On power up - it services a USB_ISR and finds nothing, returns and carries on running. &lt;/P&gt;&lt;P&gt;On a USB Stick being plugged in - it generates a USB_ISR, runs and detects an attach in khci_kinetis.c&lt;/P&gt;&lt;P&gt;This is processed with &lt;/P&gt;&lt;P&gt;_usb_event_set(&amp;amp;khci_event, KHCI_EVENT_ATTACH);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it then does nothing with it.&lt;/P&gt;&lt;P&gt;It seems to disable some interrupts including &lt;/P&gt;&lt;P&gt;Events.c:TI1_OnInterrupt() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; delay_count++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;stops being called, which results in sitting in a delay loop waiting - I think in the hosttask.&lt;/P&gt;&lt;P&gt;This is pretty broad description - I've been reading the manual to understand UsbHost and ISRs better - i wonder if you have any pointers where to look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 04:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374886#M1918</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2014-12-31T04:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374887#M1919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;that looks like a reentrancy issue I just have fixed a few days ago on GitHub (&lt;A href="https://github.com/ErichStyger/McuOnEclipse_PEx/commit/dc5b4e74d4558da26284cced1a9514188c8159de" title="https://github.com/ErichStyger/McuOnEclipse_PEx/commit/dc5b4e74d4558da26284cced1a9514188c8159de"&gt;added flexible heap management to host stack, fixed critical section iss... ·&amp;nbsp; dc5b4e7 · ErichStyger/McuOnEclipse_PEx · …&lt;/A&gt;). The problem only exists for Kinetis K (not L).&lt;/P&gt;&lt;P&gt;Because these changes are not in a *.PEupd release on &lt;A href="https://sourceforge.net/projects/mcuoneclipse/" title="https://sourceforge.net/projects/mcuoneclipse/"&gt;SourceForge.net&lt;/A&gt;, I have attached the latest components for USB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 08:17:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374887#M1919</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-12-31T08:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374888#M1920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thanks for the response. I added the fix, and also looked at it to make sure it was there and follow the anatomy of the fix - I'm on a learning curve.:)&lt;/P&gt;&lt;P&gt;On downloading, it didn't seem to help. Still gets stuck in a delay loop as the Events.c:TI1_OnInterrupt() appears to be disabled.&lt;/P&gt;&lt;P&gt;For some reason&amp;nbsp; my component Timer TI1 I was using LPTIMER and your&amp;nbsp; FRDM-K20D example was using the FTM0_MOD timer - so I switched to it - and it works. Wow. &lt;STRONG&gt;Fantastic:smileyhappy:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or at least one of my USB Sticks can see and list the directory. Fantastic.!!!!&lt;/P&gt;&lt;P&gt;However another USB stick that was working with the FRDM-L25z mbed FAT doesn't show up&amp;nbsp; - oh well, next problem. But fantastic - can now play with the FAT:smileycool: parameters and filesizes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey, since Switzerland is pretty close to New Year - Happy New Year 2015.:smileysilly: &lt;/P&gt;&lt;P&gt;Maaaannnnnyyyy&lt;STRONG&gt; thanks&lt;/STRONG&gt; for the &lt;SPAN style="text-decoration: underline;"&gt;blog&lt;/SPAN&gt; and putting together the &lt;STRONG&gt;&lt;EM&gt;examples:heart:&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Talk to you next year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 17:57:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374888#M1920</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2014-12-31T17:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Can the PE FSL_USB_STACK use Clock Source 1</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374889#M1921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;ah, that now makes sense: the LPTIMER is not running unless you are in low power mode or have configured the timer in a special way. This explains the problem. Still, the other fix is necessary, otherwise you would have been running into another problem :smileysilly:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy New Year (in 3.5h) :-)&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 19:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-the-PE-FSL-USB-STACK-use-Clock-Source-1/m-p/374889#M1921</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-12-31T19:37:33Z</dc:date>
    </item>
  </channel>
</rss>

