-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] soc: nrf54l: Add custom section for KMU
Add a custom section in the linker which should always be placed in the top of RAM. This will be used by the KMU to push keys into it. Since when you provision a key into the KMU you need to set specific a memory location for the PUSH operation we need to keep this memory location static across images/dfus. This is a noup since the KMU is not supported upstream. Ref: NCSDK-25121 Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This section must be loaded first of all the | ||
# custom sections because we want it to be placed | ||
# at the top address of RAM. | ||
SECTION_PROLOGUE(NRF_KMU_RESERVED_PUSH_SECTION,(NOLOAD) ,) | ||
{ | ||
__nrf_kmu_reserved_push_area = .; | ||
*(.nrf_kmu_reserved_push_area) | ||
__nrf_kmu_reserved_push_area_end = .; | ||
} GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, RAMABLE_REGION) | ||
|
||
# It doesn't seem to be possible to enforce placing a section | ||
# at a specific address in memory using the Zephyr SECTION macros. | ||
# So this assert is necessary to avoid accidentatly moving this | ||
# section to a different address. | ||
ASSERT(__nrf_kmu_reserved_push_area == RAM_ADDR, "Error: \ | ||
The section NRF_KMU_RESERVED_PUSH_SECTION needs to be \ | ||
placed on the top RAM address but it is not, please edit \ | ||
your linker scripts to make sure that it is placed on \ | ||
the to RAM address.") |