<?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 does blhost cut build files in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933862#M981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhao,&lt;/P&gt;&lt;P&gt;Attachment is MCUboot bootloader user's manual. It has the detail of communication protocol. Please take a look.&lt;/P&gt;&lt;P&gt;Blhost source code is not opened to customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Aug 2019 07:04:57 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2019-08-01T07:04:57Z</dc:date>
    <item>
      <title>How does blhost cut build files</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933861#M980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to understand how does blhost execute the flash process. I ran this command to flash the build file to the device&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;SPAN style="color: #6a9955;"&gt;./blhost -p /dev/ttyUSB0,xxxxx -- write-memory&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #6a9955;"&gt;0xxxxxxx&amp;nbsp;buildFile.bin&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I then use wireshark to intercept usb0's traffic, I found that blhost cut the big .bin file into several segments, and send these segments one by one to flash the device.&lt;/DIV&gt;&lt;DIV&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/85377iFDE0C4B431FF00EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;At here, the blhost sends out two 320 bytes segments, followed with a 70 bytes segments each time. In the first 8 bytes of the first 320 bytes segment, it has the same hex data (5a a5 00 02).&amp;nbsp;&lt;/DIV&gt;&lt;DIV&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/85290i0545D38884464347/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&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/85378i8399020B00B8656A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;My questions:&lt;/DIV&gt;&lt;DIV&gt;1. Why does blhost cut the data into 2 * 320 bytes of data + 1 * 70 bytes of data, then repeat?&lt;/DIV&gt;&lt;DIV&gt;2. Why the first 8 bytes are the same? What does this 8 bytes mean?&lt;/DIV&gt;&lt;DIV&gt;3. How does blhost knows that every segment is received correctly?&lt;/DIV&gt;&lt;DIV&gt;4. Where can I get blhost source code?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 02:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933861#M980</guid>
      <dc:creator>longzhao1</dc:creator>
      <dc:date>2019-08-01T02:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: How does blhost cut build files</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933862#M981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhao,&lt;/P&gt;&lt;P&gt;Attachment is MCUboot bootloader user's manual. It has the detail of communication protocol. Please take a look.&lt;/P&gt;&lt;P&gt;Blhost source code is not opened to customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 07:04:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933862#M981</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-01T07:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How does blhost cut build files</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933863#M982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reasons that I couldn't use blhost to flash the device, just wondering that is it possible to send hex data directly to the device to trigger the flash process?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 16:52:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933863#M982</guid>
      <dc:creator>longzhao1</dc:creator>
      <dc:date>2019-08-01T16:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How does blhost cut build files</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933864#M983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds too difficult. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 02:43:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/How-does-blhost-cut-build-files/m-p/933864#M983</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-02T02:43:53Z</dc:date>
    </item>
  </channel>
</rss>

