Skip to content

Conversation

nordicjm
Copy link
Collaborator

This changes the default mcuboot configuration for zephyr applications to clean up before booting the user application. The reason for this change is that mcuboot may configure protection (e.g. MPU stack guard) which is then used by the user application during its startup code prior to cleaning the configuration up, this can lead to a unbootable application and potentially irrecoverable module, therefore cleaning up is now being enabled by default.

Fixes #1634

This changes the default mcuboot configuration for zephyr
applications to clean up before booting the user application. The
reason for this change is that mcuboot may configure protection (e.g.
MPU stack guard) which is then used by the user application during
its startup code prior to cleaning the configuration up, this can
lead to a unbootable application and potentially irrecoverable
module, therefore cleaning up is now being enabled by default.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
@nordicjm
Copy link
Collaborator Author

@de-nordic @d3zd3z @utzig This is an urgent fix, can you please review.

@de-nordic de-nordic requested review from d3zd3z and utzig February 27, 2023 12:57
nordicjm added a commit to nordicjm/sdk-mcuboot that referenced this pull request Feb 27, 2023
This changes the default mcuboot configuration for zephyr
applications to clean up before booting the user application. The
reason for this change is that mcuboot may configure protection (e.g.
MPU stack guard) which is then used by the user application during
its startup code prior to cleaning the configuration up, this can
lead to a unbootable application and potentially irrecoverable
module, therefore cleaning up is now being enabled by default.

Upstream PR: mcu-tools/mcuboot#1635

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
tmon-nordic pushed a commit to nrfconnect/sdk-mcuboot that referenced this pull request Feb 27, 2023
This changes the default mcuboot configuration for zephyr
applications to clean up before booting the user application. The
reason for this change is that mcuboot may configure protection (e.g.
MPU stack guard) which is then used by the user application during
its startup code prior to cleaning the configuration up, this can
lead to a unbootable application and potentially irrecoverable
module, therefore cleaning up is now being enabled by default.

Upstream PR: mcu-tools/mcuboot#1635

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
@de-nordic de-nordic merged commit 9e8eddc into mcu-tools:main Feb 27, 2023
@nordicjm nordicjm deleted the cleanupboot branch December 12, 2023 15:01
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

Successfully merging this pull request may close these issues.

Zephyr: Chain loaded application has possibility of not working and faulting
4 participants