<?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: KBOOT for K64F while modify clock system</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440451#M25770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kyle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your work is non-commercial the uTasker package is free of charge but still supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an application note about crystal-less operation which shows how to do it - search in the K64 documentation.&lt;/P&gt;&lt;P&gt;Basically these lines of code are required:&lt;/P&gt;&lt;P&gt;SIM_SOPT2 |= (SIM_SOPT2_USBSRC | SIM_SOPT2_PLLFLLSEL_IRC48M); // set the source to IRC48M&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SIM_CLKDIV2 = SIM_CLKDIV2_USBDIV_1;&lt;/TD&gt;&lt;TD&gt;// no divide when IRC48M is used&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;USB_CLK_RECOVER_IRC_EN = USB_CLK_RECOVER_IRC_EN_IRC_EN;&lt;/P&gt;&lt;P&gt;USB_CLK_RECOVER_CTRL = USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN&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 class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K64: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-K64F.html" target="_blank"&gt;µTasker Kinetis FRDM-K64F support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" target="_blank"&gt;µTasker Kinetis TWR-K64F120M support&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;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 10:42:06 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2015-04-24T10:42:06Z</dc:date>
    <item>
      <title>KBOOT for K64F while modify clock system</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440448#M25767</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 found that KBOOT for K64F default clock system is 120MHz PEE mode and clock source input 50MHz.&lt;/P&gt;&lt;P&gt;But for bootloader typically use, default FEI and use internal reference clock source would be better idea.&lt;/P&gt;&lt;P&gt;I need UART and HID bootloader function, so I have to use FEI and use internal 48MHz for USB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original example code for K64F bootloader include a "system_MK64F12.c", but it is an old version.&lt;/P&gt;&lt;P&gt;I found a newer version is at "FSL_Kinetis_Bootloader_1_1_0\src\startup\MK64F12" and modify to use "CLOCK_SETUP 0".&lt;/P&gt;&lt;P&gt;UART for bootloader is functional but HID is not work.&lt;/P&gt;&lt;P&gt;Is there any idea regarding how to modify to make HID functional?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 03:33:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440448#M25767</guid>
      <dc:creator>kyleyang</dc:creator>
      <dc:date>2015-04-24T03:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: KBOOT for K64F while modify clock system</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440449#M25768</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;You can use the crystal-less USB device mode in the K64 for USB device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is done in the following KBOOT compatible loaders, which additionally allow USB-MSD, Ethernet and SD card loading in parallel.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis/FRDM-K64F.html" title="http://www.utasker.com/kinetis/FRDM-K64F.html"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis/TWR-K64F120M.html" title="http://www.utasker.com/kinetis/TWR-K64F120M.html"&gt;µTasker Kinetis TWR-K64F120M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the present KBOOT HID mode is very slow (due to errors in the operation of KinetisUdater) - UART loading is several times faster than it but USB-MSD is very fast.&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;K64: &lt;A href="http://www.utasker.com/kinetis/FRDM-K64F.html" title="http://www.utasker.com/kinetis/FRDM-K64F.html"&gt;µTasker Kinetis FRDM-K64F support&lt;/A&gt; / &lt;A href="http://www.utasker.com/kinetis/TWR-K64F120M.html" title="http://www.utasker.com/kinetis/TWR-K64F120M.html"&gt;µTasker Kinetis TWR-K64F120M support&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>Fri, 24 Apr 2015 09:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440449#M25768</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-04-24T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: KBOOT for K64F while modify clock system</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440450#M25769</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 your reply.&lt;/P&gt;&lt;P&gt;I am trying to use crystal-less USB device mode, but something missed while modify the code.&lt;/P&gt;&lt;P&gt;I also try the uTasker, but need to pay fee for bootloader full function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 10:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440450#M25769</guid>
      <dc:creator>kyleyang</dc:creator>
      <dc:date>2015-04-24T10:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: KBOOT for K64F while modify clock system</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440451#M25770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kyle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your work is non-commercial the uTasker package is free of charge but still supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an application note about crystal-less operation which shows how to do it - search in the K64 documentation.&lt;/P&gt;&lt;P&gt;Basically these lines of code are required:&lt;/P&gt;&lt;P&gt;SIM_SOPT2 |= (SIM_SOPT2_USBSRC | SIM_SOPT2_PLLFLLSEL_IRC48M); // set the source to IRC48M&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SIM_CLKDIV2 = SIM_CLKDIV2_USBDIV_1;&lt;/TD&gt;&lt;TD&gt;// no divide when IRC48M is used&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;USB_CLK_RECOVER_IRC_EN = USB_CLK_RECOVER_IRC_EN_IRC_EN;&lt;/P&gt;&lt;P&gt;USB_CLK_RECOVER_CTRL = USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN&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 class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K64: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-K64F.html" target="_blank"&gt;µTasker Kinetis FRDM-K64F support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" target="_blank"&gt;µTasker Kinetis TWR-K64F120M support&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;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 10:42:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440451#M25770</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-04-24T10:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: KBOOT for K64F while modify clock system</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440452#M25771</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 your help.&lt;/P&gt;&lt;P&gt;After try&amp;amp;error, finally find the root cause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 07:13:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KBOOT-for-K64F-while-modify-clock-system/m-p/440452#M25771</guid>
      <dc:creator>kyleyang</dc:creator>
      <dc:date>2015-04-28T07:13:29Z</dc:date>
    </item>
  </channel>
</rss>

