Skip to content

Commit 31c42e4

Browse files
ahasztagtomchy
authored andcommitted
drivers: mpsl: Disable flash sync if no DFU on nRF54H
This commit disables the flash synchronization via RPC on nRF54H20 if there is no SUIT. This is done to fix test samples for which a different radio core image than ipc_radio is used, thus RPC communication fails to bind. Ref: DRGN-25035 Signed-off-by: Artur Hadasz <[email protected]>
1 parent b8c6d1f commit 31c42e4

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

applications/ipc_radio/Kconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ config BT_MAX_CONN
6767

6868
endif # IPC_RADIO_BT
6969

70-
config IPC_RADIO_USE_RPC_FLASH_SYNC_CONTROLLER
71-
bool
72-
default y if SOC_NRF54H20_CPURAD
73-
imply SOC_FLASH_NRF_RADIO_SYNC_RPC_CONTROLLER
74-
7570
module = IPC_RADIO
7671
module-str = "ipc_radio"
7772
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

drivers/mpsl/flash_sync/Kconfig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
if SOC_FLASH_NRF || SOC_FLASH_NRF_RRAM || SOC_NRF54H20
88

9+
config SOC_FLASH_NRF_RADIO_SYNC_RPC
10+
bool "Enable flash driver synchronization with radio protocols through RPC"
11+
help
12+
Enable the flash synchronization between the application core and the radio core.
13+
This Kconfig option is set based on the value of the SB_CONFIG_SOC_FLASH_NRF_RADIO_SYNC_RPC
14+
sysbuild configuration option.
15+
916
choice SOC_FLASH_NRF_RADIO_SYNC_CHOICE
1017
prompt "Nordic nRFx flash driver synchronization"
1118
default SOC_FLASH_NRF_RADIO_SYNC_MPSL if MPSL
@@ -19,7 +26,8 @@ config SOC_FLASH_NRF_RADIO_SYNC_MPSL
1926
config SOC_FLASH_NRF_RADIO_SYNC_RPC_HOST
2027
bool "Nordic nRFx flash driver synchronized on the application core via RPC"
2128
depends on SOC_NRF54H20_CPUAPP
22-
depends on BT # If synchronization with other radio protocols is needed, extend this
29+
depends on BT # If sync with other radio protocols is needed, extend this
30+
depends on SOC_FLASH_NRF_RADIO_SYNC_RPC
2331
select NRF_RPC
2432
select NRF_RPC_CBOR
2533
help
@@ -32,6 +40,7 @@ endif
3240

3341
config SOC_FLASH_NRF_RADIO_SYNC_RPC_CONTROLLER
3442
bool "Nordic nRFx flash driver RPC synchronization controller"
43+
default y if SOC_FLASH_NRF_RADIO_SYNC_RPC
3544
depends on SOC_FLASH_NRF_RADIO_SYNC_MPSL
3645
select NRF_RPC
3746
select NRF_RPC_CBOR

samples/suit/ab/sysbuild/hci_ipc.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
1212
CONFIG_LOG=n
1313
CONFIG_LOG_PRINTK=n
1414
CONFIG_UART_CONSOLE=n
15-
16-
CONFIG_SOC_FLASH_NRF_RADIO_SYNC_RPC_CONTROLLER=y

samples/suit/smp_transfer/sysbuild/hci_ipc.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
1212
CONFIG_LOG=n
1313
CONFIG_LOG_PRINTK=n
1414
CONFIG_UART_CONSOLE=n
15-
16-
CONFIG_SOC_FLASH_NRF_RADIO_SYNC_RPC_CONTROLLER=y

sysbuild/Kconfig.suit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ endif # SUIT_BUILD_FLASH_COMPANION
314314

315315
config SUIT_BUILD_AB_UPDATE
316316
bool "Build AB variant"
317+
imply SUIT_SOC_FLASH_NRF_RADIO_SYNC_RPC
317318
help
318319
Build two applications for the A and B update.
319320

321+
config SUIT_SOC_FLASH_NRF_RADIO_SYNC_RPC
322+
bool "Enable flash driver synchronization with radio protocols through RPC"
323+
320324
endmenu

sysbuild/suit.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,11 @@ if(SB_CONFIG_SUIT_BUILD_AB_UPDATE)
6565
set_config_bool(${variant_image} CONFIG_NRF_REGTOOL_GENERATE_UICR n)
6666
endforeach()
6767
endif()
68+
69+
if(SB_CONFIG_SUIT_SOC_FLASH_NRF_RADIO_SYNC_RPC)
70+
get_property(images GLOBAL PROPERTY sysbuild_images)
71+
72+
foreach(image ${images})
73+
set_config_bool(${image} CONFIG_SOC_FLASH_NRF_RADIO_SYNC_RPC y)
74+
endforeach()
75+
endif()

0 commit comments

Comments
 (0)