<?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 Custom K22FN256LH12 Bootloader in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794053#M48322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am currently using KDS v3.2 with Processor Expert. I have a K22FN256LH12 microcontroller that I would like to be able to put a bootloader on and update the application code through USB. I have completed this task similiar on the K22- FRDM Board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem/Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Am I supposed to use the KBOOT tower_bootloader or could I use the freedom_bootloader and do I need to change anything?&lt;/P&gt;&lt;P&gt;2. My USB pins are connected to the K22 as shown below. Is there any setup I need to do for my microcontroller to make use of that USB port for bootloading? Do I need a processor expert component to make use of this USB (such as USB-HID)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61948i6690A768033DB1AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. I'm not sure as to why I am getting these errors when I try to setup my application for bootloading. Is there a wrong assumption I have? The first image below this is the default and the second is my calculated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61949i9CF4DC04273C5985/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61950iBB12AE58988E0A63/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks! Tagging Kerry since you seem to have a lot of experience with this and have been very helpful!&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2018 21:28:23 GMT</pubDate>
    <dc:creator>burgeh</dc:creator>
    <dc:date>2018-06-18T21:28:23Z</dc:date>
    <item>
      <title>Custom K22FN256LH12 Bootloader</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794053#M48322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am currently using KDS v3.2 with Processor Expert. I have a K22FN256LH12 microcontroller that I would like to be able to put a bootloader on and update the application code through USB. I have completed this task similiar on the K22- FRDM Board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem/Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Am I supposed to use the KBOOT tower_bootloader or could I use the freedom_bootloader and do I need to change anything?&lt;/P&gt;&lt;P&gt;2. My USB pins are connected to the K22 as shown below. Is there any setup I need to do for my microcontroller to make use of that USB port for bootloading? Do I need a processor expert component to make use of this USB (such as USB-HID)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61948i6690A768033DB1AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. I'm not sure as to why I am getting these errors when I try to setup my application for bootloading. Is there a wrong assumption I have? The first image below this is the default and the second is my calculated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61949i9CF4DC04273C5985/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61950iBB12AE58988E0A63/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks! Tagging Kerry since you seem to have a lot of experience with this and have been very helpful!&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 21:28:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794053#M48322</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-06-18T21:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom K22FN256LH12 Bootloader</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794054#M48323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you prefer a more flexible loader for your K22 (with support) you can also check out 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/kinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K22:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/kinetis/FRDM-K22F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/kinetis/TWR-K22F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K22F120M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/kinetis/BLAZE_K22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/BLAZE_K22.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/kinetis/tinyK22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/tinyK22.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Serial Loader: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Free Open Source solution: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/github.com/uTasker/uTasker-Kinetis" rel="nofollow" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Working project in 15 minutes video: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/youtu.be/K8ScSgpgQ6M" rel="nofollow" target="_blank"&gt;https://youtu.be/K8ScSgpgQ6M&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/support.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 22:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794054#M48323</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-06-18T22:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom K22FN256LH12 Bootloader</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794055#M48324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher Burg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.Bootloader :&amp;nbsp; I suggest you to use the freedom_bootloader.bin file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Folder:NXP_Kinetis_Bootloader_2_0_0\targets\MK22F51212\kds\freedom_bootloader&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. About the USB hardware, please refer to our FRDM-K22F120M board schematic:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/schematics/FRDM-K22F-SCH.pdf" title="https://www.nxp.com/downloads/en/schematics/FRDM-K22F-SCH.pdf"&gt;https://www.nxp.com/downloads/en/schematics/FRDM-K22F-SCH.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you use the HID, you need to power on the board, and connect the USB port, if you are using the FRDM-K22 board, you need to find 2 USB cable, and connect it to J5 and J16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I highly suggest you use our official FRDM-K22 board to test the HID bootloader at first, it works OK on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. About the app PE configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think it is the PE bugs, but don't worry, you can modify the ld file directly like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62048iACC5CBC352D4573B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;MEMORY {&lt;BR /&gt;&amp;nbsp; m_interrupts (RX) : ORIGIN = 0x0000a000, LENGTH = 0x00000198&lt;BR /&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x0000a410, LENGTH = 0x0003FBF0-0XA000&lt;BR /&gt;&amp;nbsp; m_data_1FFFC000 (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x00004000&lt;BR /&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000&lt;BR /&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (RX) : ORIGIN = 0x0000A400, LENGTH = 0x00000010&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After generate the .hex file, you can find APP is from 0xa000 like the following picture, if you still find the one line code from 0x400, you can delete it directly in the .hex file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&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/62049iD7BDE3B070442D0E/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;&lt;/P&gt;&lt;P&gt;I attached my test bootloader and app.hex file, app function is the RED LED blink in the FRDM-K22 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the test result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62050iEA47C7D83A73A291/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After download the app.hex to my FRDM-K22 board with HID bootloader, my red led is blinking.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 20 Jun 2018 06:49:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794055#M48324</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-06-20T06:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom K22FN256LH12 Bootloader</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794056#M48325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for replying,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have had &lt;STRONG&gt;no issues &lt;/STRONG&gt;being able to do this on the &lt;STRONG&gt;K22-FRDM board,&lt;/STRONG&gt; but should I use the FRDM_bootloader (which is for the K22FN512LH12) I am using the &lt;STRONG&gt;K22FN&lt;EM&gt;256&lt;/EM&gt;LH12&amp;nbsp;&lt;/STRONG&gt;chip. I have my USB attached to the same pins that K22-FRDM uses, Pins 5 and 6, but I cannot connect to my chip using the KinetisFlashTool.&amp;nbsp; I need to set my chip in some sort of bootloader mode correct? Using a reset pin maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed my old application code still runs after I flash my chip with the bootloader, that isn't right is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 20:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794056#M48325</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-06-20T20:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom K22FN256LH12 Bootloader</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794057#M48326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher Burg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes, you can use the FRDM k22 bootloader in your &lt;STRONG&gt;K22FN&lt;EM&gt;256&lt;/EM&gt;LH12 &lt;/STRONG&gt;, but you need to do the following modification, actually, just modify the flash size.&lt;/P&gt;&lt;P&gt;1. memory_map_k22f512.c with this:&lt;/P&gt;&lt;P&gt;memory_map_entry_t g_memoryMap[] = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 0x00000000, 0x0003ffff, kMemoryIsExecutable, &amp;amp;g_flashMemoryInterface },&amp;nbsp;&amp;nbsp; // Flash array (256KB)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 0x1fffc000, 0x20007fff, kMemoryIsExecutable, &amp;amp;g_normalMemoryInterface },&amp;nbsp; // SRAM (48KB)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 0x40000000, 0x4007ffff, kMemoryNotExecutable, &amp;amp;g_deviceMemoryInterface }, // AIPS peripherals&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 0x400ff000, 0x400fffff, kMemoryNotExecutable, &amp;amp;g_deviceMemoryInterface }, // GPIO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 0xe0000000, 0xe00fffff, kMemoryNotExecutable, &amp;amp;g_deviceMemoryInterface }, // M4 private peripherals&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 0 }&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;&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; // Terminator&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. MK22FN512xxx12_application_0x0000.ld, KDS IDE.&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; m_interrupts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt;&amp;nbsp; m_flash_config&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt;&amp;nbsp; m_text&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; (RX)&amp;nbsp; : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0&lt;BR /&gt;&amp;nbsp; m_data&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; (RW)&amp;nbsp; : ORIGIN = 0x1FFFC000, LENGTH = 0x0000C000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;No other point need to modify, yes, you need to use the reset pin to enter the bootloader mode.&lt;/P&gt;&lt;P&gt;If you still have problems, you also can try the UART bootloader on your own board, whether you UART bootloader have problems or not?&lt;/P&gt;&lt;P&gt;Besides, when you build the bootloader code, you can use the release mode, otherwise, the code size may larger than 0xa000, then you can't port your application to relocate in 0xa000.&lt;/P&gt;&lt;P&gt;From my own viewpoint, even you don't modify it, you also can download the code, because your bootloader didn't larger than 256K, so I think you can download freedom_bootloader.bin in folder NXP_Kinetis_Bootloader_2_0_0\targets\MK22F51212\iar\binaries to your own chip directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try it on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Thu, 21 Jun 2018 01:36:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-K22FN256LH12-Bootloader/m-p/794057#M48326</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-06-21T01:36:54Z</dc:date>
    </item>
  </channel>
</rss>

