-
Notifications
You must be signed in to change notification settings - Fork 1.4k
bootloader: Fix NSIB on nrf54l15dk/nrf54l15/cpuapp/ns #25708
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
Conversation
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.
Pull Request Overview
This PR fixes a boot failure on the nrf54l15dk/nrf54l15/cpuapp/ns target when NSIB (Nordic Secure Immutable Bootloader) is used. The root cause was B0's SRAM being incorrectly placed in the nonsecure region instead of the secure region, which caused KMU hardware errors.
Key changes:
- Introduces
CONFIG_SECURE_BOOT_IN_BUILDto track secure boot presence across the build system - Adds partition manager configuration to properly place B0's SRAM in the secure region
- Ensures proper memory region allocation for the bootloader
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sysbuild/CMakeLists.txt | Sets the new CONFIG_SECURE_BOOT_IN_BUILD flag in the default image to signal secure boot presence |
| subsys/partition_manager/pm.yml.b0 | Defines B0 SRAM partition spanning the secure SRAM region |
| subsys/partition_manager/CMakeLists.txt | Conditionally includes B0 partition configuration when secure boot is in build |
| subsys/bootloader/Kconfig | Defines the new CONFIG_SECURE_BOOT_IN_BUILD configuration option |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CI InformationTo view the history of this post, click the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 6b7a0f04d63acd7b6e8de14c551fa3edb8e12cc0 more detailssdk-nrf:
Github labels
List of changed files detected by CI (2)Outputs:ToolchainVersion: df3cc9d822 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
|
You can find the documentation preview for this PR here. |
2f07c7b to
7acba95
Compare
This commit fixes the device not booting on nrf54l15dk/nrf54l15/cpuapp/ns target when NSIB is used. The issue was being a result of the SRAM used by B0 not being properly placed (at sram_nonsecure, while it should be at sram_secure). This resulted in KMU hardware errors. Signed-off-by: Artur Hadasz <[email protected]>
7acba95 to
6b7a0f0
Compare
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Memory footprint analysis revealed the following potential issuesapplications.hpf.gpio.icbmsg[nrf54l15dk/nrf54l15/cpuflpr]: High RAM usage: 12744[B] - link (cc: @nrfconnect/ncs-ll-ursus) Note: This message is automatically posted and updated by the CI (latest/sdk-nrf/PR-25708/4) |
This commit fixes the device not booting on
nrf54l15dk/nrf54l15/cpuapp/ns target when NSIB is used.
The issue was being a result of the SRAM used by B0 not being properly placed (at sram_nonsecure, while it should be at sram_secure). This resulted in KMU hardware errors.