Skip to content

Conversation

anhmolt
Copy link
Contributor

@anhmolt anhmolt commented Aug 26, 2025

Add a new Kconfig option CONFIG_PROGRAM_SOFTDEVICE_WITH_APP. When enabled, the SoftDevice hex will be programmed together with the application image. This only applies to the none MCUboot board variants.

depends on #324

nordicjm and others added 3 commits August 26, 2025 14:27
Now selects the SoftDevice Kconfig for all board targets rather
than just the MCUboot board variants

Signed-off-by: Jamie McCrae <[email protected]>
Selects the Kconfig in target images indicating what SoftDevice is
selected

Signed-off-by: Jamie McCrae <[email protected]>
Remove a duplicate custom command dependency item.

Signed-off-by: Andreas Moltumyr <[email protected]>
@anhmolt anhmolt requested review from a team as code owners August 26, 2025 16:16
Copy link

You can find the documentation preview for this PR here.

Allow apache 2.0 license for this forked file

Signed-off-by: Andreas Moltumyr <[email protected]>
Add a new Kconfig option CONFIG_PROGRAM_SOFTDEVICE_WITH_APP.
When enabled, the SoftDevice hex will be programmed together with
the application image. This only applies to the none MCUboot board
variants.

For the MCUboot board variants, the SoftDevice is already programmed
together with the MCUboot bootloader.

Signed-off-by: Andreas Moltumyr <[email protected]>
@anhmolt anhmolt force-pushed the program-sd-with-app branch from 95dcd4c to f26022f Compare August 26, 2025 16:29
Copy link
Contributor

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this properly with a dedicated image, use zephyrproject-rtos/zephyr#94796 to see how to create and flash a fake image which isn't actually a zephyr project

Comment on lines +25 to +31
set_target_properties(runners_yaml_props_target PROPERTIES "hex_file"
"${ZEPHYR_BINARY_DIR}/${KERNEL_NAME}_softdevice_merged.hex"
)
set(BYPRODUCT_KERNEL_APP_SD_HEX_NAME
"${ZEPHYR_BINARY_DIR}/${KERNEL_NAME}_softdevice_merged.hex"
CACHE FILEPATH "Application with SoftDevice hex file" FORCE
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need another merged file like this no

@anhmolt
Copy link
Contributor Author

anhmolt commented Aug 27, 2025

do this properly with a dedicated image, use zephyrproject-rtos/zephyr#94796 to see how to create and flash a fake image which isn't actually a zephyr project

Alright. I agree that sounds better. Thanks!

@eivindj-nordic eivindj-nordic added this to the v0.9.0 milestone Aug 27, 2025
@anhmolt anhmolt added the DNM Do not merge label Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM Do not merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants