-
Notifications
You must be signed in to change notification settings - Fork 238
[nrf noup] nRF54h20: support for S2RAM resume for DIRECT-XIP mode #545
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
base: main
Are you sure you want to change the base?
Conversation
(DT_REG_ADDR(DT_GPARENT(DT_NODELABEL(node_label)))))) | ||
|
||
#define S2RAM_SLOT_INFO_A 0x37 | ||
#define S2RAM_SLOT_INFO_B 0xA4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory, you have a full 32-bit field here, so you may go crazy with those magic numbers 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, rest 24 b are reserve for somethin...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-init RAM is garbage when the device is powered on, so the chance that one of these values just happens to be in the RAM location that is checked is 1 in 128? I don't like those odds, and there is no CRC or anything to confirm it's even valid from the image itself Have checked rest of code and can see it is properly protected, 1 byte for this is sufficient
Added direct-xip support: * new API for marking active slot to be used by boot_go() routines. * jump vector assignment which is basing on above designation. Signed-off-by: Andrzej Puzdrowski <[email protected]>
Added call which designate active slot so MCUBoot can jump to proper slot when CPU is resuming from S2RAM. Signed-off-by: Andrzej Puzdrowski <[email protected]>
cf62803
to
5d5f1ec
Compare
|
Added direct-xip support to pm_s2ram nRF54h bootloader's resume implementation:
Dragged in above feature into boot_go() using API provided.
manifest-pr-skip