AnsweredAssumed Answered

blhost how to offset flash-image

Question asked by Wilkins White on Jul 5, 2018
Latest reply on Jul 6, 2018 by Wilkins White

I've ported mcuboot to MCUXpresso and am trying to use blhost to flash an image with the following command:

 

$ blhost -- flash-image blink.hex erase

 

This returns the following:

 

Ping responded in 1 attempt(s)
Inject command 'flash-image'
Wrote 96300 bytes to address 0x10000000
Successful generic response to command 'write-memory'
Data phase write aborted by status 0x2712 kStatus_AbortDataPhase
Response status = 10200 (0x27d8) kStatusMemoryRangeInvalid

 

Apparently it's trying to write the image to the start of flash (0x10000000), which of course isn't going to work.  How do I make blhost put the image after the bootloader in unreserved flash?

 

On a possibly related not if I get property 11 I see that the bootloader is reserving literally all memory addresses.  How would I go about fixing that?

 

Ping responded in 1 attempt(s)
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 268435456 (0x10000000)
Response word 2 = 536879103 (0x20001fff)
Response word 3 = 268435456 (0x10000000)
Response word 4 = 537001983 (0x2001ffff)
Reserved Regions = Flash: 0x10000000-0x20001FFF (256.008 MB), RAM: 0x10000000-0x2001FFFF (256.125 MB)

Outcomes