Skip to content

Commit

Permalink
samples: openthread: Do not use Partition Manager on nRF52 dongle
Browse files Browse the repository at this point in the history
Partition Manager is redundant on nRF52840 dongle while sysbuild
is in use.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
  • Loading branch information
ArekBalysNordic authored and LuDuda committed Aug 26, 2024
1 parent 01c2e80 commit f7b59d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion samples/openthread/cli/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"
# Do not use partition manager on nRF52840 dongle.
config PARTITION_MANAGER
default n if BOARD_NRF52840DONGLE_NRF52840

config NRF_DEFAULT_IPC_RADIO
default y

source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"
2 changes: 1 addition & 1 deletion samples/openthread/cli/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(void)
uint32_t dtr = 0U;

ret = usb_enable(NULL);
if (ret != 0) {
if (ret != 0 && ret != -EALREADY) {
LOG_ERR("Failed to enable USB");
return 0;
}
Expand Down

0 comments on commit f7b59d2

Please sign in to comment.