<?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 to burn mcuboot into FRDM_K64F Board in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/how-to-burn-mcuboot-into-FRDM-K64F-Board/m-p/730029#M645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mcuboot is for OTA upgrade and doesn't replace the mbed bootloader. The mbed bootloader runs on the K20 OpenSDA MCU, whereas mcuboot runs on the K64 target MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2018 19:02:58 GMT</pubDate>
    <dc:creator>maureen</dc:creator>
    <dc:date>2018-03-27T19:02:58Z</dc:date>
    <item>
      <title>how to burn mcuboot into FRDM_K64F Board</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/how-to-burn-mcuboot-into-FRDM-K64F-Board/m-p/730028#M644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All:&lt;/P&gt;&lt;P&gt;I have a problem. It is described as follow:&lt;/P&gt;&lt;P&gt;I need to replace mbed bootloader of freescale frdm_k64 board with mcuboot. I followed the steps described by mcuboot docs :&lt;/P&gt;&lt;P&gt;It is listed in file that located in&amp;nbsp;mcuboot-master/samples/zephyr/Makefile and the content is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# This is an example Makefile to demonstrate how to use mcuboot to&lt;BR /&gt;# deploy and upgrade images. The image building should work on any&lt;BR /&gt;# supported target, however flashing will likely require changes to&lt;BR /&gt;# the flash addresses, depending on the partition layout of the device&lt;BR /&gt;# in question.&lt;BR /&gt;#&lt;BR /&gt;# running&lt;BR /&gt;#&lt;BR /&gt;# make BOARD=frdm_k64f all&lt;BR /&gt;#&lt;BR /&gt;# should generate three "*.bin" files in this directory:&lt;BR /&gt;#&lt;BR /&gt;# mcuboot.bin: The bootloader itself&lt;BR /&gt;# signed-hello1.bin: A signed sample.&lt;BR /&gt;# signed-hello2.bin: An upgrade image, signed and marked for&lt;BR /&gt;# upgrade.&lt;BR /&gt;#&lt;BR /&gt;# "make flash_boot" should flash the bootloader into the flash,&lt;BR /&gt;# erasing the rest of the device. If you examine the device at this&lt;BR /&gt;# time, you should see a message about the bootloader not being able&lt;BR /&gt;# to find a bootable image.&lt;BR /&gt;#&lt;BR /&gt;# "make flash_hello1" will then flash the first application into&lt;BR /&gt;# "slot0". This should boot into this app, print a small message, and&lt;BR /&gt;# give the zephyr console.&lt;BR /&gt;#&lt;BR /&gt;# "make flash_hello2" will flash hello2 into the second slot. The&lt;BR /&gt;# reset should upgrade and run the new image. Resetting again should&lt;BR /&gt;# then revert back to the first app, since we did not mark this image&lt;BR /&gt;# as good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compile the code successfully and generate the three files:&lt;/P&gt;&lt;P&gt;[root@localhost zephyr]# ll[root@localhost zephyr]# ll&lt;/P&gt;&lt;P&gt;总用量 478&lt;/P&gt;&lt;P&gt;drwxrwxrwx 1 root root &amp;nbsp; &amp;nbsp; &amp;nbsp;0 9月 &amp;nbsp;20 2017 bad-keys&lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 root root &amp;nbsp;31388 3月 &amp;nbsp;20 18:47 bak.mcuboot.bin&lt;/P&gt;&lt;P&gt;-rwxrwxrwx 2 root root &amp;nbsp; &amp;nbsp;501 9月 &amp;nbsp;20 2017 build-boot.sh&lt;/P&gt;&lt;P&gt;-rwxrwxrwx 2 root root &amp;nbsp; &amp;nbsp;510 9月 &amp;nbsp;20 2017 build-hello.sh&lt;/P&gt;&lt;P&gt;drwxrwxrwx 1 root root &amp;nbsp; 4096 3月 &amp;nbsp;22 18:20 hello-world&lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 root root &amp;nbsp; 9038 9月 &amp;nbsp;20 2017 Makefile&lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 root root &amp;nbsp;31312 3月 &amp;nbsp;24 10:35 mcuboot.bin-rwxrwxrwx 1 root root &amp;nbsp; &amp;nbsp;426 9月 &amp;nbsp;20 2017 README.md&lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 root root &amp;nbsp;11640 3月 &amp;nbsp;22 18:24 signed-hello1.bin&lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 root root 393216 3月 &amp;nbsp;22 18:24 signed-hello2.bin&lt;/P&gt;&lt;P&gt;[root@localhost zephyr]#&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the I use pyocd tool to burn these bins into flash of frdm_k64f board:&lt;/P&gt;&lt;P&gt;[root@localhost zephyr]# make flash_boot&lt;BR /&gt;pyocd-flashtool -ce -a 0 mcuboot.bin&lt;BR /&gt;INFO:root:DAP SWD MODE initialised&lt;BR /&gt;WARNING:root:K64F in secure state: will try to unlock via mass erase&lt;BR /&gt;WARNING:root:K64F secure state: unlocked successfully&lt;BR /&gt;INFO:root:ROM table #0 @ 0xe00ff000 cidr=b105100d pidr=4000bb4c4&lt;BR /&gt;INFO:root:[0]&amp;lt;e000e000:SCS-M4 cidr=b105e00d, pidr=4000bb00c, class=14&amp;gt;&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x0&lt;BR /&gt;INFO:root:[1]&amp;lt;e0001000: cidr=0, pidr=0, component invalid&amp;gt;&lt;BR /&gt;INFO:root:[2]&amp;lt;e0002000:FPB cidr=b105e00d, pidr=4002bb003, class=14&amp;gt;&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0xb1b1b1b1&lt;BR /&gt;INFO:root:[3]&amp;lt;e0000000: cidr=b1b1b1b1, pidr=b1b1b1b1b1b1b1b1, component invalid&amp;gt;&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x0&lt;BR /&gt;INFO:root:[4]&amp;lt;e0040000: cidr=0, pidr=0, component invalid&amp;gt;&lt;BR /&gt;INFO:root:[5]&amp;lt;e0041000:ETM-M4 cidr=b105900d, pidr=4000bb925, class=9, devtype=13, devid=0&amp;gt;&lt;BR /&gt;INFO:root:[6]&amp;lt;e0042000:ETB cidr=b105900d, pidr=4003bb907, class=9, devtype=21, devid=0&amp;gt;&lt;BR /&gt;INFO:root:[7]&amp;lt;e0043000:CSTF cidr=b105900d, pidr=4001bb908, class=9, devtype=12, devid=28&amp;gt;&lt;BR /&gt;INFO:root:CPU core is Cortex-M4&lt;BR /&gt;INFO:root:FPU present&lt;BR /&gt;targetXML:&lt;BR /&gt; &amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;!DOCTYPE feature SYSTEM "gdb-target.dtd"&amp;gt;&amp;lt;Element 'target' at 0x7f87e15de1d8&amp;gt;&lt;BR /&gt;xml_root:&lt;BR /&gt; &amp;lt;Element 'target' at 0x7f87e15de1d8&amp;gt;&lt;BR /&gt;INFO:root:6 hardware breakpoints, 4 literal comparators&lt;BR /&gt;INFO:root:4 hardware watchpoints&lt;BR /&gt;[====================] 100%&lt;BR /&gt;INFO:root:Programmed 32768 bytes (8 pages) at 14.30 kB/s&lt;BR /&gt;[root@localhost zephyr]# make flash_hello1&lt;BR /&gt;pyocd-flashtool -a 0x20000 signed-hello1.bin&lt;BR /&gt;INFO:root:DAP SWD MODE initialised&lt;BR /&gt;INFO:root:K64F not in secure state&lt;BR /&gt;INFO:root:ROM table #0 @ 0xe00ff000 cidr=b105100d pidr=4000bb4c4&lt;BR /&gt;INFO:root:[0]&amp;lt;e000e000:SCS-M4 cidr=b105e00d, pidr=4000bb00c, class=14&amp;gt;&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x0&lt;BR /&gt;INFO:root:[1]&amp;lt;e0001000: cidr=0, pidr=0, component invalid&amp;gt;&lt;BR /&gt;INFO:root:[2]&amp;lt;e0002000:FPB cidr=b105e00d, pidr=4002bb003, class=14&amp;gt;&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x1010101&lt;BR /&gt;INFO:root:[3]&amp;lt;e0000000: cidr=1010101, pidr=101010101010101, component invalid&amp;gt;&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x0&lt;BR /&gt;INFO:root:[4]&amp;lt;e0040000: cidr=0, pidr=0, component invalid&amp;gt;&lt;BR /&gt;INFO:root:[5]&amp;lt;e0041000:ETM-M4 cidr=b105900d, pidr=4000bb925, class=9, devtype=13, devid=0&amp;gt;&lt;BR /&gt;INFO:root:[6]&amp;lt;e0042000:ETB cidr=b105900d, pidr=4003bb907, class=9, devtype=21, devid=0&amp;gt;&lt;BR /&gt;INFO:root:[7]&amp;lt;e0043000:CSTF cidr=b105900d, pidr=4001bb908, class=9, devtype=12, devid=28&amp;gt;&lt;BR /&gt;INFO:root:CPU core is Cortex-M4&lt;BR /&gt;INFO:root:FPU present&lt;BR /&gt;targetXML:&lt;BR /&gt; &amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;!DOCTYPE feature SYSTEM "gdb-target.dtd"&amp;gt;&amp;lt;Element 'target' at 0x7f693e1b4c78&amp;gt;&lt;BR /&gt;xml_root:&lt;BR /&gt; &amp;lt;Element 'target' at 0x7f693e1b4c78&amp;gt;&lt;BR /&gt;INFO:root:6 hardware breakpoints, 4 literal comparators&lt;BR /&gt;INFO:root:4 hardware watchpoints&lt;BR /&gt;[====================] 100%&lt;BR /&gt;INFO:root:Programmed 12288 bytes (3 pages) at 10.68 kB/s&lt;BR /&gt;[root@localhost zephyr]# pyocd-tool reset&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x0&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x1010101&lt;BR /&gt;WARNING:root:Invalid coresight component, cidr=0x0&lt;BR /&gt;targetXML:&lt;BR /&gt; &amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;!DOCTYPE feature SYSTEM "gdb-target.dtd"&amp;gt;&amp;lt;Element 'target' at 0x7f8d0b83d2c8&amp;gt;&lt;BR /&gt;xml_root:&lt;BR /&gt; &amp;lt;Element 'target' at 0x7f8d0b83d2c8&amp;gt;&lt;BR /&gt;Resetting target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I restarted&amp;nbsp;the board,and I found the mcuboot is not workable. The bootloader is still the mbed bootloader.&lt;/P&gt;&lt;P&gt;That is, The replacement of bootloader is not successful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that when frdm_k64f is working in Normal Mode(mapping to Mbed disk),we can not replace it's bootloader.&lt;/P&gt;&lt;P&gt;but I pull the mcuboot.bin into the disk MAINTENANCE (under bootloader upgrade mode),there has &amp;nbsp;an error. The mcuboot&lt;/P&gt;&lt;P&gt;cannot burn into it.&lt;/P&gt;&lt;P&gt;before burning&lt;/P&gt;&lt;P&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/12110i75095B04228C9A7E/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;is burning&lt;/P&gt;&lt;P&gt;&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/12162iF0EE856DE48AB3EA/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;after burning&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12367i0A68F4D9692E4C70/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can the mcboot burn into the frdm_k64f board as bootloader?&lt;/P&gt;&lt;P&gt;so,I need your help to solve this problem, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2018 03:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/how-to-burn-mcuboot-into-FRDM-K64F-Board/m-p/730028#M644</guid>
      <dc:creator>duncan_chan</dc:creator>
      <dc:date>2018-03-24T03:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to burn mcuboot into FRDM_K64F Board</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/how-to-burn-mcuboot-into-FRDM-K64F-Board/m-p/730029#M645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mcuboot is for OTA upgrade and doesn't replace the mbed bootloader. The mbed bootloader runs on the K20 OpenSDA MCU, whereas mcuboot runs on the K64 target MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:02:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/how-to-burn-mcuboot-into-FRDM-K64F-Board/m-p/730029#M645</guid>
      <dc:creator>maureen</dc:creator>
      <dc:date>2018-03-27T19:02:58Z</dc:date>
    </item>
  </channel>
</rss>

