<?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: Porting KBOOT v1.2.0 to K21F Processor in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449706#M26646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark, I did end up trying the K22 code, it turns out that the flash configuration between K21 and K22 is different. I seemed to have remembered wrong, I wasn't using K22 to do the port before, I was using the K64 to do it. I tried the K64 KBOOT as is, and was able to get the USB to come up, but the programming did not end up working. However, with the files that Ping gave me, and a port of the K64 code instead, I was able to get everything up and running. I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2015 19:19:13 GMT</pubDate>
    <dc:creator>mjohn</dc:creator>
    <dc:date>2015-09-16T19:19:13Z</dc:date>
    <item>
      <title>Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449700#M26640</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;I am attempting to port the KBOOT v1.2.0 to a K21F processor (MK21FN1M0AVLQ12). I have done this port before with the previous version of KBOOT successfully. It seems that the new version of KBOOT requires updated board specific CMSIS files, which I do not have. Are these files available yet for my processor, so that I can continue my port? Or should I just stick with KBOOT v1.1.0 for now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am required to get USB working with the bootloader, and I noticed that there are board specific files for the usb_stack as well. Are there equivalents for the K21F? or should I just try to copy and modify the files from an existing processor? (I have been porting from the MK22F512 version of KBOOT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 17:36:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449700#M26640</guid>
      <dc:creator>mjohn</dc:creator>
      <dc:date>2015-09-14T17:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449701#M26641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find any (functional) differences between V1.1.0 and V1.2.0 nor between K21 and K22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your project's budget prefers to avoid any porting you can also get KBOOT (UART and USB) compatibility (plus more options such as USB-MSD composite or SD card loading in parallel) at the links below.&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; / &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;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>Mon, 14 Sep 2015 22:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449701#M26641</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-14T22:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449702#M26642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I'd highly recommend you to follow the steps of the porting by referring to the attachment.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 08:04:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449702#M26642</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-09-15T08:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449703#M26643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been following the porting steps in this document. The problem that I am running into is that I do not see any of the header files on the product page (&lt;A href="http://www.freescale.com/products/arm-processors/kinetis-cortex-m/k-series/k2x-usb-mcus/kinetis-k21-120-mhz-usb-tamper-detection-security-encryption-microcontrollers-mcus:K21_120" title="http://www.freescale.com/products/arm-processors/kinetis-cortex-m/k-series/k2x-usb-mcus/kinetis-k21-120-mhz-usb-tamper-detection-security-encryption-microcontrollers-mcus:K21_120"&gt;K21_120 |Kinetis K21 120 MHz MCUs|Freescale&lt;/A&gt; ) for the K21F processor I have, as outlined in section 10.3.1. I have device header files for K21F that I used when porting from v1.1.0 of Kinetis Bootloader, but it seems that v1.2.0 code calls variables that have been either renamed or added since v1.1.0. I am just wondering if there are any updated device header files for the K21F that will work with v1.2.0? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:47:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449703#M26643</guid>
      <dc:creator>mjohn</dc:creator>
      <dc:date>2015-09-15T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449704#M26644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned before, KBOOT code for the K22 should run on a K21, so you can just build for the K22 and use the K22 headers.&lt;/P&gt;&lt;P&gt;The only thing to be aware of is that the K21 has some additional pin mux possibilities (although don't need to be used) - it also has additional peripherals but this is not an issue since they won't be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you going to add more features and customise you can modify the K22 headers if needed, but the differences are very small.&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, 15 Sep 2015 14:29:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449704#M26644</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-15T14:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449705#M26645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I've attached the header file of MK21 which from the KSDK 1.2.0 (~\KSDK_1.2.0\platform\devices\MK21FA12).&lt;/P&gt;&lt;P&gt;Please refer to it for details.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 01:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449705#M26645</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-09-16T01:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449706#M26646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark, I did end up trying the K22 code, it turns out that the flash configuration between K21 and K22 is different. I seemed to have remembered wrong, I wasn't using K22 to do the port before, I was using the K64 to do it. I tried the K64 KBOOT as is, and was able to get the USB to come up, but the programming did not end up working. However, with the files that Ping gave me, and a port of the K64 code instead, I was able to get everything up and running. I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 19:19:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449706#M26646</guid>
      <dc:creator>mjohn</dc:creator>
      <dc:date>2015-09-16T19:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449707#M26647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ping! Those files did it! I was able to port from the K64 KBOOT code and use those files to get the bootloader up and running with USB. Also, the bootloader was successful in programming the device with my firmware as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 19:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449707#M26647</guid>
      <dc:creator>mjohn</dc:creator>
      <dc:date>2015-09-16T19:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449708#M26648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The K21F uses phrase programming and the K22F long word programming. This would explain why the programming part was not successful if using K22 Flash driver; I missed this due to the fact that it is automated in the solution that I use, so didn't "jump out" as an obvious difference.&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, 16 Sep 2015 19:50:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449708#M26648</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-16T19:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Porting KBOOT v1.2.0 to K21F Processor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449709#M26649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt，&lt;/P&gt;&lt;P&gt;I'm glad to hear that you had already finished the porting working.&lt;/P&gt;&lt;P&gt;And I was wondering if you can share the modified demo, and it can help other guys a lot.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 02:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-KBOOT-v1-2-0-to-K21F-Processor/m-p/449709#M26649</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-09-05T02:36:43Z</dc:date>
    </item>
  </channel>
</rss>

