<?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: How do you get the bootloader working for the FRDM-K22f board? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693311#M42707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get that project build by adding #define FREEDOM 1 and commenting out the FLASH_DRIVER_IS_FLASH_RESIDENT logic to make sure that equals 1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope that doesn't completely break it. Is the 128Kb chip able bootloader compatible or is there not enough space?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brendan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 May 2017 13:43:13 GMT</pubDate>
    <dc:creator>brendanmerna</dc:creator>
    <dc:date>2017-05-26T13:43:13Z</dc:date>
    <item>
      <title>How do you get the bootloader working for the FRDM-K22f board?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693308#M42704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I've been trying to the bootloader user guides to get a bootloader working on the FRDM-K22F board which I soon want working on evaluation board which will incorporate the MK22FN128 micro. I've looked at all of the documents on the KBOOT: Kinetis Bootloader page. Currently I'm following the Kinetis Bootloader Demo Application User's Guide (Doc. KBTLDRDEMOUG.pdf)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I've done everything up to 4 "The host utility application". I'm plugged into SDA USB port and I see the MBED (E:) and I see the COM33: mbed Serial Port (COM33). I try to run the command "blhost.exe -p COM33 -- get-property 1" and it fails with "Error UartPeripheral() cannot open PC UART port(COM33), speed(57600 Hz)"&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;When I plug it into the other USB port it registers as a mass storage device "FSL Loader (E:). This FSL Loader comes from me directly flashing the micro using the freedom bootloader project in the Bootloader SDK. I imported and built the project located at "C:\Freescale\NXP_Kinetis_Bootloader_2_0_0\targets\MK522F51212\kds. Then I used the multilink to program the Release version of this project on to the micro. I want to be able to use the bootloader in this chip to update over USB without the USB SDA interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong? Which USB connection am I supposed to do? What is this FSL Loader?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brendan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 12:57:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693308#M42704</guid>
      <dc:creator>brendanmerna</dc:creator>
      <dc:date>2017-05-25T12:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the bootloader working for the FRDM-K22f board?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693309#M42705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brendan Merna,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From your description, you need to use the USB bootloader to downloader your application code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now follow me to use the KBOOT2.0 to realize it in the FRDM-K22F board.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. Open \NXP_Kinetis_Bootloader_2_0_0\targets\MK22F51212&amp;nbsp; freedom_bootloader project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You said, you are using the KDS project, the KDS project need to modify one point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Add this below code in bootloader_config.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;#define BL_TARGET_FLASH 1&lt;/P&gt;&lt;P&gt;Just like this picture:&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/19683i638820B534729C8F/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;2. Build the release version&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/19738i2E1FEA04572486E3/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;After build, check the console, hex size, it should below 0XA000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;print size can be enabled by the following way:&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/19774i1B36039B1ECEDDC2/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;3. Download the build code to your FRDM-K22F board, with USB SDA, this is the bootloader code, you must download it with debugger at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then you can use the USB MSC to download your application code now.&lt;/P&gt;&lt;P&gt;4. find another USB cable connect the USB port in the FRDM board, J16.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can find the FSL Loader device, this is the USB MSC interface&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/19813iE9749F5890B0DB3A/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;5. Please refer to this post to prepare the app.sb file for your application code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332379"&gt;USB MSD Bootloader Implementation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have attached my modified .bin, .bd and generated .sb file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Copy the k22_image.sb to the FSL Loader disc.&lt;/P&gt;&lt;P&gt;wait the sending finished, then power off the board, power on it again, about 5 seconds, the on board LED will blinking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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>Fri, 26 May 2017 08:20:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693309#M42705</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-26T08:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the bootloader working for the FRDM-K22f board?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693310#M42706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;BR /&gt;&lt;BR /&gt;I was able to get this setup to work on the FRDM-K22F development board. Thank you!&lt;BR /&gt;&lt;BR /&gt;I'm trying to also do this with a evaluation board that uses the smaller version of the chip the MK22F12810. I tried to transfer these steps, but the bootloader projects were named differently.I tried &amp;nbsp;to build the flashloader project for this chip and it filed because some defines were undeclared. Also, I was unable to find a USB platform project for this chip.&lt;BR /&gt;&lt;BR /&gt;Can you guide me through what I need to do different for this chip?&lt;BR /&gt;&lt;BR /&gt;-Brendan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 13:17:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693310#M42706</guid>
      <dc:creator>brendanmerna</dc:creator>
      <dc:date>2017-05-26T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the bootloader working for the FRDM-K22f board?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693311#M42707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get that project build by adding #define FREEDOM 1 and commenting out the FLASH_DRIVER_IS_FLASH_RESIDENT logic to make sure that equals 1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope that doesn't completely break it. Is the 128Kb chip able bootloader compatible or is there not enough space?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brendan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 13:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693311#M42707</guid>
      <dc:creator>brendanmerna</dc:creator>
      <dc:date>2017-05-26T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the bootloader working for the FRDM-K22f board?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693312#M42708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brenda Merna,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 128Kb chip is able to use the flashloader,&amp;nbsp; flash address 0x0000-0x9ffff is used for the flash bootloader, your application code is start from the address 0xa000, so you just need to make sure your application code size - 40K is smaller than 128KB, then yoru 128KB will be work.&lt;/P&gt;&lt;P&gt;&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, 31 May 2017 01:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-get-the-bootloader-working-for-the-FRDM-K22f-board/m-p/693312#M42708</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-31T01:35:03Z</dc:date>
    </item>
  </channel>
</rss>

