<?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>MCU BootloaderのトピックRe: Blhost.exe Reading back data written to flash</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067445#M1210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see this same behavior if you use UART instead of USB to connect to the bootloader with the blhost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2020 21:11:31 GMT</pubDate>
    <dc:creator>Sebastian_Del_Rio</dc:creator>
    <dc:date>2020-04-29T21:11:31Z</dc:date>
    <item>
      <title>Blhost.exe Reading back data written to flash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067442#M1207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way that blhost.exe (v2.0.0) can read back new data written to flash without having to reset the target first?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What actually happens is that old data is read back until the target is reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target is a MKL27z64vLh4 in a FRDM-KL27z eval board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the attached log shows it is attached via USB HID (J10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target is reset with the SW1 button held down in order to start the ROM bootloader rather than the demo flash application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067442#M1207</guid>
      <dc:creator>admin6</dc:creator>
      <dc:date>2020-04-22T13:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Blhost.exe Reading back data written to flash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067443#M1208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, &lt;/P&gt;&lt;P&gt;After changing the content of flash it is apparently necessary to read a large number of bytes (2048), then re-read the number of bytes required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore it seems this might be a buffer flushing issue, possibly in the USB interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:46:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067443#M1208</guid>
      <dc:creator>admin6</dc:creator>
      <dc:date>2020-04-22T14:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Blhost.exe Reading back data written to flash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067444#M1209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same problem with more recent blhost.exe version 2.4.1 (December 2019 vintage).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 17:36:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067444#M1209</guid>
      <dc:creator>admin6</dc:creator>
      <dc:date>2020-04-22T17:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Blhost.exe Reading back data written to flash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067445#M1210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see this same behavior if you use UART instead of USB to connect to the bootloader with the blhost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 21:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067445#M1210</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-04-29T21:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Blhost.exe Reading back data written to flash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067446#M1211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking the trouble to help. Yes I am OK for now thank you, I hope you are well too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is an interesting question, the answer would reveal if it was a USB buffering problem, or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly, right now, due to working from home during the lockdown, I am unable to test blhost.exe diectly with a UART&amp;nbsp;&lt;EM&gt; (unless there is a way of making the OpenSDA see a UART I/O and forward its data over USB to a virtual com port. Not something I would normally do because using the excellent blhost.exe directly on the KL27z USB port provides independence from additional hardware in the field. )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 10:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067446#M1211</guid>
      <dc:creator>admin6</dc:creator>
      <dc:date>2020-05-01T10:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Blhost.exe Reading back data written to flash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067447#M1212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UART peripheral can be used through the OpenSDA interface included in the FRDM-KL27 by using the -p argument, with the desired speed and COM port as arguments. This can be seen explained in Chapter 4 of the blhost User's Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an additional note, a new release of the blhost utility is available to download from the &lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT?tab=Design_Tools_Tab"&gt;MCUBOOT page&lt;/A&gt; of our website. Could you please try with this new version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know of your results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care, best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2020 17:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067447#M1212</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-05-05T17:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Blhost.exe Reading back data written to flash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067448#M1213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;Sebastián,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your helpful reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; To answer your question;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; yes I do still see the same behaviour with the &lt;STRONG&gt;UART&lt;/STRONG&gt; (LPUART0 thru SDA to COM5 on Windows 10).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; To provide more detail; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; it is only necessary to read a block of &lt;STRONG&gt;512&lt;/STRONG&gt; bytes before reading the written addresses to verify the content.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; it still happens with &lt;STRONG&gt;v2.6.2&lt;/STRONG&gt; blhost on both the USB and UART ports, it is not a timing issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; the write is &lt;STRONG&gt;working perfectly&lt;/STRONG&gt;, but it &lt;STRONG&gt;&lt;EM&gt;might be a bit confusing&lt;/EM&gt;&lt;/STRONG&gt; not verifying the write until after a block read.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please find logs of 2 sessions with blhost.exe v2.6.2&amp;nbsp; (to KL27x64VLH4 on a FRDM-KL27z).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; one using the UART&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; -&amp;nbsp; other using the USB &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; Many thanks, blhost is very useful and robust!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2020 21:54:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Blhost-exe-Reading-back-data-written-to-flash/m-p/1067448#M1213</guid>
      <dc:creator>admin6</dc:creator>
      <dc:date>2020-05-31T21:54:25Z</dc:date>
    </item>
  </channel>
</rss>

