<?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 how to offset flash-image</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786352#M780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use command line with blhost : "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; blhost -p COMx -- flash-image blink.hex erase" for update hex file through bootloader. It's ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2019 08:54:59 GMT</pubDate>
    <dc:creator>nguyentam</dc:creator>
    <dc:date>2019-07-03T08:54:59Z</dc:date>
    <item>
      <title>blhost how to offset flash-image</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786349#M777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've ported mcuboot to MCUXpresso and am trying to use blhost to flash an image with the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$ blhost -- flash-image blink.hex erase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Ping responded in 1 attempt(s)&lt;BR /&gt;Inject command 'flash-image'&lt;BR /&gt;Wrote 96300 bytes to address 0x10000000&lt;BR /&gt;Successful generic response to command 'write-memory'&lt;BR /&gt;Data phase write aborted by status 0x2712 kStatus_AbortDataPhase&lt;BR /&gt;Response status = 10200 (0x27d8) kStatusMemoryRangeInvalid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently it's trying to write the image to the start of flash (0x10000000), which of course isn't going to work.&amp;nbsp; How do I make blhost put the image after the bootloader in unreserved flash?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a possibly related not if I get property 11 I see that the bootloader is reserving literally all memory addresses.&amp;nbsp; How would I go about fixing that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Ping responded in 1 attempt(s)&lt;BR /&gt;Inject command 'get-property'&lt;BR /&gt;Response status = 0 (0x0) Success.&lt;BR /&gt;Response word 1 = 268435456 (0x10000000)&lt;BR /&gt;Response word 2 = 536879103 (0x20001fff)&lt;BR /&gt;Response word 3 = 268435456 (0x10000000)&lt;BR /&gt;Response word 4 = 537001983 (0x2001ffff)&lt;BR /&gt;Reserved Regions = Flash: 0x10000000-0x20001FFF (256.008 MB), RAM: 0x10000000-0x2001FFFF (256.125 MB)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 01:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786349#M777</guid>
      <dc:creator>wilkinsw</dc:creator>
      <dc:date>2018-07-06T01:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: blhost how to offset flash-image</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786350#M778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like I hadn't defined __DATA_END properly, it should be (__DATA_ROM + (_edata - _data))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also had to adjust __RAM_START and __RAM_END to count from the end of RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My reserved flash is now only 48KB, much more reasonable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Ping responded in 1 attempt(s)&lt;BR /&gt;Inject command 'get-property'&lt;BR /&gt;Response status = 0 (0x0) Success.&lt;BR /&gt;Response word 1 = 268435456 (0x10000000)&lt;BR /&gt;Response word 2 = 268484607 (0x1000bfff)&lt;BR /&gt;Response word 3 = 537001983 (0x2001ffff)&lt;BR /&gt;Response word 4 = 537001984 (0x20020000)&lt;BR /&gt;Reserved Regions = Flash: 0x10000000-0x1000BFFF (48 KB), RAM: 0x2001FFFF-0x20020000 (2 bytes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 16:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786350#M778</guid>
      <dc:creator>wilkinsw</dc:creator>
      <dc:date>2018-07-06T16:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: blhost how to offset flash-image</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786351#M779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looked through the source and found that the address comes from the hex file.&amp;nbsp; I had to divide the flash region of my test project to have a 48KB space for the bootloader with the project code starting at address 0x1000c000.&amp;nbsp; Everything seems to be in order now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 17:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786351#M779</guid>
      <dc:creator>wilkinsw</dc:creator>
      <dc:date>2018-07-06T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: blhost how to offset flash-image</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786352#M780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use command line with blhost : "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; blhost -p COMx -- flash-image blink.hex erase" for update hex file through bootloader. It's ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 08:54:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/blhost-how-to-offset-flash-image/m-p/786352#M780</guid>
      <dc:creator>nguyentam</dc:creator>
      <dc:date>2019-07-03T08:54:59Z</dc:date>
    </item>
  </channel>
</rss>

