Hello,
Using nRFConnect 2.1.0
I am trying to build the peripheral_iso zephyr sample, for the nRF52840 DK
It compiles fine as is (with the original board qemu_cortex_m3 ).
Now I have created another build config using the nRF52840 DK NRF52840
Do you know if this sample cannot be adapted for my DK ?
I tried to satisfy the config dependencies, but always fall on configs that cannot be set (not editable) like BT_CONN - CONFIG_BT_CONN
Nota : even if I set CONFIG_BT_ISO_TX_MTU, the build fails the same way.
Also tried some .config winmerge between the working and non working one, but there are so many CONFIG_BT that I am not surprised that it does not work.
I don't even find in the working build log config files listed , like qemu_cortex_m3 board specific config files (defcong + extra_kconfig_options) anything related to BT.
all these many BT configs seem to be auto generated
a ninja guiconfig shows a lot of red but I don't know what to think of it. I see BT_ISO in red.
here is the build log
Building peripheral_isowest build --build-dir d:\lc\ndapp\peripheral_iso\build d:\lc\ndapp\peripheral_iso --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="d:/lc/ndapp/radio_test;d:/lc/ndapp/dtm;d:/lc/ndapp/smp_server;d:/lc/ndapp/bootloader;d:/lc/ndapp/peripheral_hr;d:/lc/ndapp/llpm;d:/lc/ndapp/radio_test_orig;d:/lc/ndapp/bt_radio_test;d:/lc/ndapp/no_mcuboot_radio_test;d:/lc/ndapp/bt_hci_spi;d:/lc/ndapp/peripheral_hr_host_only_hci;d:/lc/ndapp/iso_receive" -DCONFIG_DEBUG_OPTIMIZATIONS:STRING="y" -DCONFIG_DEBUG_THREAD_INFO:STRING="y" -DCONF_FILE:STRING="d:/lc/ndapp/peripheral_iso/prj.conf"
-- west build: generating a build systemLoading Zephyr default modules (Zephyr base).-- Application: D:/lc/ndapp/peripheral_iso-- Found Python3: D:/ncs/toolchains/v2.1.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Cache files will be written to: D:/ncs/v2.1.0/zephyr/.cache-- Zephyr version: 3.1.99 (D:/ncs/v2.1.0/zephyr)-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")-- Board: nrf52840dk_nrf52840-- Found host-tools: zephyr 0.14.1 (D:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)-- Found dtc: D:/ncs/toolchains/v2.1.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")-- Found toolchain: zephyr 0.14.1 (D:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)-- Found BOARD.dts: D:/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts-- Generated zephyr.dts: D:/lc/ndapp/peripheral_iso/build/zephyr/zephyr.dts-- Generated devicetree_unfixed.h: D:/lc/ndapp/peripheral_iso/build/zephyr/include/generated/devicetree_unfixed.h-- Generated device_extern.h: D:/lc/ndapp/peripheral_iso/build/zephyr/include/generated/device_extern.h-- Including generated dts.cmake file: D:/lc/ndapp/peripheral_iso/build/zephyr/dts.cmakeParsing D:/ncs/v2.1.0/zephyr/KconfigLoaded configuration 'D:/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'Merged configuration 'd:/lc/ndapp/peripheral_iso/prj.conf'Merged configuration 'D:/lc/ndapp/peripheral_iso/build/zephyr/misc/generated/extra_kconfig_options.conf'Configuration saved to 'D:/lc/ndapp/peripheral_iso/build/zephyr/.config'Kconfig header saved to 'D:/lc/ndapp/peripheral_iso/build/zephyr/include/generated/autoconf.h'
warning: BT_SMP (defined at D:/ncs/v2.1.0/zephyr/subsys/bluetooth/host/Kconfig:317,subsys/bluetooth\host/Kconfig:317) was assigned the value 'y' but got the value 'n'. Check theseunsatisfied dependencies: ((BT_CONN && BT_HCI_HOST && BT_RPC_STACK) || (BT_CONN && BT_HCI_HOST &&BT_HCI && BT)) (=n). See docs.zephyrproject.org/.../kconfig.html and/or lookup BT_SMP in the menuconfig/guiconfig interface. The Application Development Primer, SettingConfiguration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpfultoo.
warning: BT_KEYS_OVERWRITE_OLDEST (defined atD:/ncs/v2.1.0/zephyr/subsys/bluetooth/host/Kconfig:489, subsys/bluetooth\host/Kconfig:489) wasassigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: ((BT_SMP &&BT_CONN && BT_HCI_HOST && BT_RPC_STACK) || (BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT)) (=n).See docs.zephyrproject.org/.../kconfig.html and/or look upBT_KEYS_OVERWRITE_OLDEST in the menuconfig/guiconfig interface. The Application Development Primer,Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might behelpful too.
warning: BT_ISO_PERIPHERAL (defined at subsys/bluetooth\Kconfig.iso:19) was assigned the value 'y'but got the value 'n'. Check these unsatisfied dependencies: (!BT_CTLR ||BT_CTLR_PERIPHERAL_ISO_SUPPORT) (=n). Seedocs.zephyrproject.org/.../kconfig.html and/or look upBT_ISO_PERIPHERAL in the menuconfig/guiconfig interface. The Application Development Primer, SettingConfiguration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpfultoo.
-- The C compiler identification is GNU 10.3.0-- The CXX compiler identification is GNU 10.3.0-- The ASM compiler identification is GNU-- Found assembler: D:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe-- Configuring done-- Generating done-- Build files have been written to: D:/lc/ndapp/peripheral_iso/build-- west build: building application[1/226] Generating include/generated/version.h-- Zephyr version: 3.1.99 (D:/ncs/v2.1.0/zephyr), build: v3.1.99-ncs1[2/226] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json[3/226] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h[4/226] Generating include/generated/driver-validation.h[5/226] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h[6/226] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj[7/226] Generating include/generated/offsets.h[8/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj[9/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_init.c.obj[10/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj[11/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj[12/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj[13/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj[14/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings.c.obj[15/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj[16/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_store.c.obj[17/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_backend_rtt.c.obj[18/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj[19/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_line.c.obj[20/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_none.c.obj[21/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj[22/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_backend_uart.c.obj[23/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj[24/226] Building C object zephyr/CMakeFiles/zephyr.dir/D_/ncs/v2.1.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj[25/226] Building C object zephyr/CMakeFiles/zephyr.dir/D_/ncs/v2.1.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj[26/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj[27/226] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj[28/226] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj[29/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj[30/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj[31/226] Generating linker_zephyr_pre0.cmd[32/226] Generating linker_zephyr_pre1.cmd[33/226] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj[34/226] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj[35/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj[36/226] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj[37/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj[38/226] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj[39/226] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj[40/226] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj[41/226] Linking C static library zephyr\arch\common\libisr_tables.a[42/226] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj[43/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj[44/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj[45/226] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj[46/226] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj[47/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj[48/226] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj[49/226] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj[50/226] Linking C static library zephyr\arch\common\libarch__common.a[51/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj[52/226] Building C object CMakeFiles/app.dir/src/main.c.objFAILED: CMakeFiles/app.dir/src/main.c.obj D:\ncs\toolchains\v2.1.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -ID:/ncs/v2.1.0/zephyr/samples/bluetooth -ID:/ncs/v2.1.0/nrf/drivers/mpsl/clock_control -ID:/ncs/v2.1.0/zephyr/include/zephyr -ID:/ncs/v2.1.0/zephyr/include -Izephyr/include/generated -ID:/ncs/v2.1.0/zephyr/soc/arm/nordic_nrf/nrf52 -ID:/ncs/v2.1.0/zephyr/soc/arm/nordic_nrf/common/. -ID:/ncs/v2.1.0/zephyr/subsys/bluetooth -ID:/ncs/v2.1.0/zephyr/subsys/settings/include -ID:/ncs/v2.1.0/nrf/include -ID:/ncs/v2.1.0/nrf/lib/multithreading_lock/. -ID:/ncs/v2.1.0/nrf/subsys/bluetooth/controller/. -ID:/ncs/v2.1.0/zephyr/drivers/flash -ID:/ncs/v2.1.0/modules/hal/cmsis/CMSIS/Core/Include -ID:/ncs/v2.1.0/modules/hal/nordic/nrfx -ID:/ncs/v2.1.0/modules/hal/nordic/nrfx/drivers/include -ID:/ncs/v2.1.0/modules/hal/nordic/nrfx/mdk -ID:/ncs/v2.1.0/zephyr/modules/hal_nordic/nrfx/. -ID:/ncs/v2.1.0/modules/debug/segger/SEGGER -ID:/ncs/v2.1.0/modules/debug/segger/Config -ID:/ncs/v2.1.0/zephyr/modules/segger/. -ID:/ncs/v2.1.0/nrfxlib/mpsl/include -ID:/ncs/v2.1.0/nrfxlib/mpsl/include/protocol -ID:/ncs/v2.1.0/nrfxlib/softdevice_controller/include -isystem D:/ncs/v2.1.0/zephyr/lib/libc/minimal/include -isystem d:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem d:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem D:/ncs/v2.1.0/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros D:/lc/ndapp/peripheral_iso/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/ncs/v2.1.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=D:/lc/ndapp/peripheral_iso=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/ncs/v2.1.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/ncs/v2.1.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.cd:\lc\ndapp\peripheral_iso\src\main.c:115:9: error: 'CONFIG_BT_ISO_TX_MTU' undeclared here (not in a function); did you mean 'CONFIG_BT_HCI_TX_PRIO'? 115 | .sdu = CONFIG_BT_ISO_TX_MTU, | ^~~~~~~~~~~~~~~~~~~~ | CONFIG_BT_HCI_TX_PRIO[53/226] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj[54/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj[55/226] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a[56/226] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj[57/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj[58/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj[59/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj[60/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj[61/226] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.objninja: build stopped: subcommand failed.FATAL ERROR: command exited with status 1: 'd:\ncs\toolchains\v2.1.0\opt\bin\cmake.EXE' --build 'd:\lc\ndapp\peripheral_iso\build'