2019-04-06 09:08:09 -04:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2022-09-14 22:23:15 +02:00
|
|
|
# Copyright (c) 2023 Nordic Semiconductor ASA
|
2019-04-06 09:08:09 -04:00
|
|
|
|
2023-09-12 10:26:24 +02:00
|
|
|
if SOC_SERIES_BSIM_NRFXX
|
2018-09-14 16:20:11 +02:00
|
|
|
|
|
|
|
config BUILD_OUTPUT_BIN
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BUILD_OUTPUT_EXE
|
2023-10-24 15:16:27 +02:00
|
|
|
# When the IPC service is used, the net core image requires the application core image, as it needs
|
|
|
|
# access to its IPC buffer. Without it, the executable cannot be built.
|
|
|
|
default y if !(BOARD_NRF5340BSIM_NRF5340_CPUNET && IPC_SERVICE && (NATIVE_SIMULATOR_EXTRA_IMAGE_PATHS = ""))
|
2018-09-14 16:20:11 +02:00
|
|
|
|
|
|
|
config OUTPUT_PRINT_MEMORY_USAGE
|
|
|
|
default n
|
|
|
|
|
2023-09-12 10:26:24 +02:00
|
|
|
config NATIVE_SIMULATOR_NUMBER_MCUS
|
|
|
|
default 2 if BOARD_NRF5340BSIM_NRF5340_CPUNET || BOARD_NRF5340BSIM_NRF5340_CPUAPP
|
|
|
|
default 1
|
2018-09-14 16:20:11 +02:00
|
|
|
|
2023-09-11 17:25:38 +02:00
|
|
|
config NATIVE_SIMULATOR_MCU_N
|
2023-09-12 10:26:24 +02:00
|
|
|
default 1 if BOARD_NRF5340BSIM_NRF5340_CPUNET
|
2023-08-31 16:03:31 +02:00
|
|
|
default 0
|
|
|
|
|
2023-09-18 12:22:16 +02:00
|
|
|
config NATIVE_SIMULATOR_AUTOSTART_MCU
|
|
|
|
default y if BOARD_NRF5340BSIM_NRF5340_CPUNET
|
|
|
|
|
2023-09-21 13:12:06 +02:00
|
|
|
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
|
|
|
default 1 if SOC_SERIES_BSIM_NRF53X
|
|
|
|
default 0
|
|
|
|
|
2023-03-02 17:20:43 +01:00
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
2024-05-06 13:07:31 +02:00
|
|
|
default 1000000 if NRF_GRTC_TIMER
|
2023-03-02 17:20:43 +01:00
|
|
|
default 32768
|
|
|
|
|
|
|
|
config SYS_CLOCK_TICKS_PER_SEC
|
|
|
|
default 128 if !TICKLESS_KERNEL
|
2024-05-06 13:07:31 +02:00
|
|
|
default 10000 if NRF_GRTC_TIMER
|
2023-03-02 17:20:43 +01:00
|
|
|
default 32768
|
|
|
|
|
2023-11-29 11:41:23 +02:00
|
|
|
config HEAP_MEM_POOL_ADD_SIZE_BOARD
|
|
|
|
int
|
2023-08-28 21:04:28 +02:00
|
|
|
default 4096 if BT_HCI_IPC
|
2023-10-09 15:49:47 +02:00
|
|
|
default 4096 if NRF_802154_SER_HOST && BOARD_NRF5340BSIM_NRF5340_CPUAPP
|
|
|
|
default 4096 if NRF_802154_SER_RADIO && BOARD_NRF5340BSIM_NRF5340_CPUNET
|
|
|
|
|
|
|
|
if BOARD_NRF5340BSIM_NRF5340_CPUAPP
|
|
|
|
|
|
|
|
config IPC_SERVICE_BACKEND_RPMSG_SHMEM_RESET
|
|
|
|
default y if IPC_SERVICE_BACKEND_RPMSG
|
|
|
|
|
2024-05-06 16:15:43 +03:00
|
|
|
config BT_HCI_IPC
|
|
|
|
default y if BT
|
2023-10-09 15:49:47 +02:00
|
|
|
|
|
|
|
endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP
|
|
|
|
|
2024-11-12 17:07:33 +01:00
|
|
|
if BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM
|
|
|
|
|
|
|
|
# BT relies on PSA Crypto API to perform crypto operations. On this platform
|
|
|
|
# this is implemented by Mbed TLS which requires a (possibly true) random
|
|
|
|
# number generator to initialize properly. We enable ENTROPY_GENERATOR here
|
|
|
|
# instead of manually adding it to all samples/tests configuration files because
|
|
|
|
# it looks more compact and easier to maintain.
|
|
|
|
config ENTROPY_GENERATOR
|
|
|
|
bool
|
|
|
|
default y if BT
|
|
|
|
|
|
|
|
endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM
|
|
|
|
|
2023-03-30 13:29:33 +02:00
|
|
|
# The 15.4 driver Tx encryption is currently not functional with this
|
|
|
|
# simulated board => we disable it by default. With this Openthread will normally
|
|
|
|
# default to encrypt packets on its own.
|
|
|
|
config NRF_802154_ENCRYPTION
|
|
|
|
default n
|
|
|
|
|
2023-04-21 16:34:19 +02:00
|
|
|
if CONSOLE
|
|
|
|
|
2023-05-23 17:04:00 +02:00
|
|
|
config POSIX_ARCH_CONSOLE
|
2023-12-21 13:09:40 +01:00
|
|
|
default y
|
2023-04-21 16:34:19 +02:00
|
|
|
|
|
|
|
endif # CONSOLE
|
|
|
|
|
2023-09-12 10:26:24 +02:00
|
|
|
endif # SOC_SERIES_BSIM_NRFXX
|