Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to know what is the active image? #1699

Open
GiulioDallaVecchia opened this issue May 5, 2023 · 3 comments
Open

How to know what is the active image? #1699

GiulioDallaVecchia opened this issue May 5, 2023 · 3 comments

Comments

@GiulioDallaVecchia
Copy link

GiulioDallaVecchia commented May 5, 2023

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 GiulioDallaVecchia changed the title SWAP ON RAM LOAD MODE How to know what is the active image? May 5, 2023
@GiulioDallaVecchia
Copy link
Author

GiulioDallaVecchia commented Aug 29, 2023

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!

@nordicjm
Copy link
Collaborator

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.

@abdulafroz04
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants