Issue setting NFC_OOB_PAIRING config option in prj.conf for peripheral_hids_keyboard sample application

Hi there,

        I have built and run the peripheral_hids_keyboard sample from the nrf samples folder in SDK V2.10.

It works fine for the HID keyboard service.

I want to try out the NFC OOB pairing that it implements but I am unable to change the config option 

NFC_OOB_PAIRING defined in the kconfig file.
I have updated prj.cong file with
CONFIG_NFC_OOB_PAIRING=y
but always get the warning "CONFIG_NFC_OOB_PAIRING was assigned the value y, but got the value n. Missing dependencies:
HAS_HW_NRF_NFCT"
The kconfig file is as follows..
 
source "Kconfig.zephyr"

menu "Nordic BLE HIDS Keyboard sample"

config NFC_OOB_PAIRING
	bool "Enable NFC OOB pairing"
	depends on HAS_HW_NRF_NFCT
	default y
	select NFC_T2T_NRFXLIB
	select NFC_NDEF
	select NFC_NDEF_MSG
	select NFC_NDEF_RECORD
	select NFC_NDEF_LE_OOB_REC

endmenu
It seems that it is enabled by default by I can't see how to pull that through to my prj.conf file.
Looking at the Guiconfig shows this..
What am I doing wrong?
Cheers
Duncan
Parents
  • Sorry forgot to add build info etc..

    --- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Nordic/myapps/peripheral_hids_keyboard
    -- Found Python3: C:/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: C:/ncs/v2.1.0/zephyr/.cache
    -- Zephyr version: 3.1.99 (C:/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 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
    -- Found dtc: C:/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 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/dts.cmake
    Parsing C:/Nordic/myapps/peripheral_hids_keyboard/Kconfig
    Loaded configuration 'C:/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/Nordic/myapps/peripheral_hids_keyboard/prj.conf'
    Configuration saved to 'C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/.config'
    Kconfig header saved to 'C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/include/generated/autoconf.h'
    -- 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: C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.1.0/zephyr/CMakeLists.txt:1839 (message):
    __ASSERT() statements are globally ENABLED

Reply
  • Sorry forgot to add build info etc..

    --- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Nordic/myapps/peripheral_hids_keyboard
    -- Found Python3: C:/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: C:/ncs/v2.1.0/zephyr/.cache
    -- Zephyr version: 3.1.99 (C:/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 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
    -- Found dtc: C:/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 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/dts.cmake
    Parsing C:/Nordic/myapps/peripheral_hids_keyboard/Kconfig
    Loaded configuration 'C:/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/Nordic/myapps/peripheral_hids_keyboard/prj.conf'
    Configuration saved to 'C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/.config'
    Kconfig header saved to 'C:/Nordic/myapps/peripheral_hids_keyboard/build/zephyr/include/generated/autoconf.h'
    -- 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: C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.1.0/zephyr/CMakeLists.txt:1839 (message):
    __ASSERT() statements are globally ENABLED

Children
No Data
Related