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

simulator: also test doing the revert jump after having done the erase/write #2169

Open
nordicjm opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
area: sim Affects the simulator

Comments

@nordicjm
Copy link
Collaborator

nordicjm commented Jan 9, 2025

At present, the jump out of the revert tests happens when an erase or write is about to happen, however when developing the swap using offset algorithm, it was noticed (on a real board) that if the device was reset after the final sector erase but before the function returned to the loader.c file, upon reboot MCUboot failed to read the image headers and boot failed. Therefore, it would also be good to have a mirrored fail with revert setup whereby the requested write/erase is allowed then the simulated reboot occurs, which would allow for tested these sorts of edge cases

@nordicjm nordicjm added the area: sim Affects the simulator label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: sim Affects the simulator
Projects
None yet
Development

No branches or pull requests

2 participants