mcuboot icon indicating copy to clipboard operation
mcuboot copied to clipboard

How to know what is the active image?

Open GiulioDallaVecchia opened this issue 1 year ago • 4 comments

Hi all,

I'm working on a project where I've set loading mode from RAM. The final application is copied to external RAM and run. I've set two slot on flash: primary and secondary slot. How can I know in which slot there is the active image? I need to know that in order to copy the newest application image to the correct slot.

GiulioDallaVecchia avatar May 05 '23 05:05 GiulioDallaVecchia

Anyone?

I'm using RAMLOAD mode. With this mode the newer image will be executed. I need to know where is the newer image (slot 1 or 2?) in order to understand what is the slot that I can erase when I have to upload a new image.

Thanks a lot!

GiulioDallaVecchia avatar Aug 29 '23 14:08 GiulioDallaVecchia

From the image running itself? You can use shared boot data to get the current running image number and then use that to determine which slot to erase from the application.

nordicjm avatar Aug 31 '23 07:08 nordicjm

Can you provie me a detailed procedure of making a signed application binary using ther imgtool.

abdulafroz04 avatar Feb 21 '24 05:02 abdulafroz04

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

github-actions[bot] avatar Aug 20 '24 01:08 github-actions[bot]