This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CONFIG_BT_LL_NRFXLIB_DEFAULT causes prj.conf:9: warning: attempt to assign the value 'y' to the undefined symbol BT_LL_NRFXLIB_DEFAULT

trying to build a long range coded phy broadcast/scanning application. as I know zephyr doesn't support that so we have to include nordic link layer based on this post

https://devzone.nordicsemi.com/f/nordic-q-a/62619/coded-phy-advertising-on-nrf-connect-sdk/255352#255352

the problem is, Zehpyr can't see the NRFxlib

I followed this tutorial to install NRFx with zephyr with no luck

https://jimmywongiot.com/2019/12/18/step-by-step-on-nordic-connect-sdk-for-development/

tried also to copy the nrfxlib and import the kconfig file into my zephyr enviroment.

https://github.com/nrfconnect/sdk-nrfxlib

actually, I find nowhere in any file on nrfx library this text "LL_NRFXLIB"

tried also to include CONFIG_SOFTDEVICE_CONTROLLER_S140 with no luck.

so, What do i miss?

I always get

prj.conf:9: warning: attempt to assign the value 'y' to the undefined symbol BT_LL_NRFXLIB_DEFAULT

this is my prj.conf

CONFIG_BT=y
CONFIG_BT_BROADCASTER=y
CONFIG_BT_OBSERVER=y
CONFIG_BOARD_NRF52840DONGLE_NRF52840=y

# Link Layer
#NRF
#CONFIG_SOFTDEVICE_CONTROLLER_S140=y
CONFIG_BT_LL_NRFXLIB_DEFAULT=y
#NRF
CONFIG_BT_EXT_ADV=y
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_GPIO=y

CONFIG_USB=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Qoudra BLE"
CONFIG_USB_UART_CONSOLE=y

CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_LINE_CTRL=y
CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"                                                

Parents
  • Hi,

     

    Have you checked out zephyr upstream instead of the NCS forked sdk-zephyr?

    You can check this by entering the path/to/ncs/zephyr and writing "git remote -v". It should show:

    13:59 $ git remote -v
    ncs	https://github.com/nrfconnect/sdk-zephyr (fetch)
    ncs	https://github.com/nrfconnect/sdk-zephyr (push)
    

     

    Kind regards,

    Håkon

  • this is what it shows. I believe it's ok

    ~/sources/zephyrNrf/ncs/zephyr$ git remote -v
    ncs     github.com/.../sdk-zephyr (fetch)
    ncs     github.com/.../sdk-zephyr (push)

  • Hi,

     

    Does this happen if you try to enable LL_NRFXLIB on any other example as well?

    Is there a specific sample that fails?

     

    Could you paste the full build log?

     

    Kind regards,

    Håkon

  • I managed to get coded phy to work. but today I tried building it again getting this error. strange that it builds then it stops building with no modifications...

    this is my prj.conf

    CONFIG_BT=y
    CONFIG_SOC_SERIES_NRF52X=y
    CONFIG_BT_BROADCASTER=y
    #CONFIG_BT_OBSERVER=y
    #CONFIG_BT_HCI=y
    CONFIG_BOARD_NRF52840DONGLE_NRF52840=y
    CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
    CONFIG_BLE_GAP_PHY_CODED=y
    #CONFIG_BT_CTLR_TX_PWR_MINUS_40=y
    
    # Link Layer
    #NRF
    #CONFIG_SOFTDEVICE_CONTROLLER_S140=y
    #CONFIG_BT_LL_SOFTDEVICE=y
    #CONFIG_BT_LL_NRFXLIB_VS_INCLUDE=y
    #CONFIG_BT_LL_NRFXLIB_DEFAULT=y
    CONFIG_BT_EXT_ADV=y
    CONFIG_BT_CTLR_PHY_CODED=y
    CONFIG_BT_PHY_UPDATE=y
    
    CONFIG_GPIO=y
    
    CONFIG_USB=y
    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_PRODUCT="Qoudra BLE"
    CONFIG_USB_UART_CONSOLE=y
    
    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_UART_LINE_CTRL=y
    CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"
    
    #-----------
    CONFIG_BT_DEVICE_NAME="AdvX"
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_OBSERVER=y
    CONFIG_BT_CENTRAL=y
    CONFIG_BT_PER_ADV=y
    CONFIG_BT_PER_ADV_SYNC=y
    
    CONFIG_BT_CTLR_ADV_EXT=y
    CONFIG_BT_CTLR_ADV_PERIODIC=y
    CONFIG_BT_CTLR_SYNC_PERIODIC=y

    this is my build output

    west build -p auto -b nrf52840dongle_nrf52840
    [0/1] Re-running CMake...
    Including boilerplate (Zephyr base (cached)): /home/blueking/sources/zephyrproject/zephyr/cmake/app/boilerplate.cmake
    -- Application: /home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv
    -- Zephyr version: 2.4.99 (/home/blueking/sources/zephyrproject/zephyr)
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    -- Board: nrf52840dongle_nrf52840
    -- Cache files will be written to: /home/blueking/.cache/zephyr
    -- Found toolchain: zephyr (/home/blueking/zephyr-sdk-0.11.4)
    -- Found dtc: /home/blueking/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
    -- Found BOARD.dts: /home/blueking/sources/zephyrproject/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
    -- Generated zephyr.dts: /home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: /home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/build/zephyr/include/generated/devicetree_unfixed.h
    Parsing /home/blueking/sources/zephyrproject/zephyr/Kconfig
    Loaded configuration '/home/blueking/sources/zephyrproject/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig'
    Merged configuration '/home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/prj.conf'
    
    /home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/prj.conf:8: warning: attempt to assign the value 'y' to the undefined symbol BLE_GAP_PHY_CODED
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at /home/blueking/sources/zephyrproject/zephyr/cmake/kconfig.cmake:239 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /home/blueking/sources/zephyrproject/zephyr/cmake/app/boilerplate.cmake:590 (include)
      /home/blueking/sources/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /home/blueking/sources/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/build/CMakeFiles/CMakeOutput.log".
    See also "/home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/build/CMakeFiles/CMakeError.log".
    FAILED: build.ninja 
    /usr/bin/cmake -S/home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv -B/home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/build
    ninja: error: rebuilding 'build.ninja': subcommand failed
    FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/blueking/sources/zephyrproject/zephyr/samples/bluetooth/scan_adv/build
    

    do I have conflicting configurations? from where to understand/read more about that?

  • Hi,

     

    The former path for sdk-zephyr looks to differ from the one that west if finding now.

    Blue King said:
    this is what it shows. I believe it's ok

    ~/sources/zephyrNrf/ncs/zephyr$ git remote -v

    ncs github.com/.../sdk-zephyr (fetch)

    ncs github.com/.../sdk-zephyr (push)

     While your current build if fetching:

    Blue King said:
    /home/blueking/sources/zephyrproject/zephyr

    source the zephyr: ~/sources/zephyrNrf/ncs/zephyr/zephyr-env.sh

    And try to re-configure outside the upstream zephyr (ie: sources/zephyrproject/zephyr catalog).

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    The former path for sdk-zephyr looks to differ from the one that west if finding now.

    Blue King said:
    this is what it shows. I believe it's ok

    ~/sources/zephyrNrf/ncs/zephyr$ git remote -v

    ncs github.com/.../sdk-zephyr (fetch)

    ncs github.com/.../sdk-zephyr (push)

     While your current build if fetching:

    Blue King said:
    /home/blueking/sources/zephyrproject/zephyr

    source the zephyr: ~/sources/zephyrNrf/ncs/zephyr/zephyr-env.sh

    And try to re-configure outside the upstream zephyr (ie: sources/zephyrproject/zephyr catalog).

     

    Kind regards,

    Håkon

Children
No Data
Related