Skip to content

Conversation

nvlsianpu
Copy link
Contributor

Added direct-xip support to pm_s2ram nRF54h bootloader's resume implementation:

  • new API for marking active slot to be used by boot_go() routines.
  • jump vector assignment which is basing on above designation.

Dragged in above feature into boot_go() using API provided.

manifest-pr-skip

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]>
@nvlsianpu nvlsianpu requested a review from tomchy September 30, 2025 12:33
@nvlsianpu nvlsianpu marked this pull request as draft September 30, 2025 12:33
Copy link

(DT_REG_ADDR(DT_GPARENT(DT_NODELABEL(node_label))))))

#define S2RAM_SLOT_INFO_A 0x37
#define S2RAM_SLOT_INFO_B 0xA4
Copy link
Contributor

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 🙂

Copy link
Contributor Author

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...

Copy link
Contributor

@nordicjm nordicjm Oct 1, 2025

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

@nvlsianpu nvlsianpu marked this pull request as ready for review September 30, 2025 16:47
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.

4 participants