Skip to content

Conversation

jonathannilsen
Copy link
Contributor

manifest-pr-skip

@jonathannilsen jonathannilsen force-pushed the regtool-removal branch 2 times, most recently from b351710 to a2c6d16 Compare September 11, 2025 07:18
…PET_ROOT

When SNIPPET is added to the build, it is added to all images. But not
all images have the test directory added to their SNIPPET_ROOT, so we
also update the SNIPPET_ROOT.

This allows, for instance, the uicr image of nrf54H to find this
snippet.

Ref: NCSDK-NONE

Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit 5f9d20c)
Reorganize how gen_uicr.py is invoked.

Instead of invoking it from one of the Zephyr images we invoke it from
a new special Zephyr image called uicr.

This uicr Zephyr image is flashed in the same way as normal Zephyr
images so special handling in the runner is no longer necessary.

Also, we simplify gen_uicr.py by moving parsing of Kconfig/DT from
gen_uicr.py to CMake.

Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit ac851ca)
…E bug

Fix bug where users were unable to name their binary Bøe when building
for nrf54h20.

Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit 180f1f8)
Update the C struct for UICR to the latest revision.

Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit 67b0e04)
Add support for secondary firmware in gen_uicr.py.

Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit 3648cd8)
Added support for the IronSide bootmode service which allows requesting
a reboot into secondary firmware boot mode. In this mode, the secondary
configuration defined in UICR is applied instead of the primary one.

The service provides the ironside_bootmode_secondary_reboot() function
that can pass message data to the boot report of the CPU booted in the
secondary boot mode.

Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit 377a18c)
Clean up error code docs.

Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit 363bad0)
Although not reproducible locally, it has been observed in CI that the
uicr image will not always be the last image to be run.

To ensure it is the last image to be run we have it depend on the
'image' image when defined.

The uicr image is generated based on all other images in the build and
must therefore run last.

Upstream PR #: 95785

Signed-off-by: Sebastian Bøe <[email protected]>
@jonathannilsen jonathannilsen force-pushed the regtool-removal branch 2 times, most recently from 2807ba3 to de23c5c Compare September 11, 2025 13:56
Add a script that is used by the build system to generate macros for
populating the PERIPHCONF (global domain peripheral configuration),
based on nodes and properties found in the devicetree.
The script does the same job as nrf-regtool did when building for
nrf54h20 before the move to using IronSide SE, and should make it
so all samples and tests function correctly without workarounds or
manual steps.

The script will also be used on nrf9280, therefore it is placed in
the common uicr directory.

Signed-off-by: Jonathan Nilsen <[email protected]>
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.

2 participants