nRF5349 PCA10121 Build Question

Hi,

I have 2 nRF5340 audio DK PCA10121 kits. I am trying to follow https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#building-and-programming-a-sample using Visual Studio Code to build nrf5340_audio_dk_nrf5340_cpuapp. I was able to build nrf5340_audio_dk_nrf5340_cpuapp successfully. However, I ran into a different configuration problem that I won't get to in this ticket here.

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#building-and-programming-a-sample using Visual Studio Code references to nrf5340dk_nrf5340_cpuapp and nrf5340dk_nrf5340_cpuapp_ns. However, the same link references to PCA10095. I have build errors on both nrf5340dk_nrf5340_cpuapp and nrf5340dk_nrf5340_cpuapp_ns configurations.

On the other hand, https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.1/nrf/applications/nrf5340_audio/README.html mentioned about PCA10121 but there is only build instructions by using scripts and command line only.

My question is which build instructions and configurations that I should use for PCA10121?

Thanks

  • "On the other hand, https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.1/nrf/applications/nrf5340_audio/README.html mentioned about PCA10121 but there is only build instructions by using scripts and command line only."

    I would like to use Visual Studio Code instead of using scripts and command line.

  • Typo on title "nRF5349 PCA10121 Build Question", nRF5349 should be nRF5340.

  • I foudn https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_boards.html

    PCA10095 is for older nrf5340dk_nrf5340 that has has target for 

    nrf5340dk_nrf5340_cpunet

    nrf5340dk_nrf5340_cpuapp

    nrf5340dk_nrf5340_cpuapp_ns

    PCA10121 is for nrf5340_audio_dk_nrf5340 but it only has build target for nrf5340_audio_dk_nrf5340_cpuapp. When I build nrf5340_audio_dk_nrf5340_cpunet, I have many build errors? 

  • Executing task in folder nRF5340: west build -d c:\Projects\nRF5340\application\nrf5340_audio_net\build -t guiconfig

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Projects/nRF5340/application/nrf5340_audio_net
    -- Cache files will be written to: C:/ncs/v2.1.1/zephyr/.cache
    -- Zephyr version: 3.1.99 (C:/ncs/v2.1.1/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf5340_audio_dk_nrf5340_cpunet
    -- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
    -- Found dtc: C:/ncs/toolchains/v2.1.1/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.1/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.1.1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/Projects/nRF5340/application/nrf5340_audio_net/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Projects/nRF5340/application/nrf5340_audio_net/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/Projects/nRF5340/application/nrf5340_audio_net/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/Projects/nRF5340/application/nrf5340_audio_net/build/zephyr/dts.cmake

    warning: NEWLIB_LIBC_FLOAT_PRINTF (defined at lib/libc/Kconfig:124) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: NEWLIB_LIBC (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    NEWLIB_LIBC_FLOAT_PRINTF in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.


    warning: The choice symbol USB_DRIVER_LOG_LEVEL_ERR (defined at
    subsys/logging/Kconfig.template.log_config:11) was selected (set =y), but no symbol ended up as the
    choice selection. See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    USB_DRIVER_LOG_LEVEL_ERR in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.


    warning: The choiParsing C:/Projects/nRF5340/application/nrf5340_audio_net/Kconfig
    Loaded configuration 'C:/ncs/v2.1.1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/Projects/nRF5340/application/nrf5340_audio_net/prj.conf'
    Merged configuration 'C:/Projects/nRF5340/application/nrf5340_audio_net/build/zephyr/misc/generated/extra_kconfig_options.conf'
    ce symbol USB_DEVICE_LOG_LEVEL_ERR (defined at
    subsys/logging/Kconfig.template.log_config:11) was selected (set =y), but no symbol ended up as the
    choice selection. See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    USB_DEVICE_LOG_LEVEL_ERR in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.


    warning: The choice symbol SD_LOG_LEVEL_OFF (defined at
    subsys/logging/Kconfig.template.log_config:8) was selected (set =y), but no symbol ended up as the
    choice selection. See docs.zephyrproject.org/.../kconfig.html
    and/or look up SD_LOG_LEVEL_OFF in the menuconfig/guiconfig interface. The Application Development
    Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
    might be helpful too.


    warning: Experimental symbol NRF5340_AUDIO is enabled.


    warning: Experimental symbol BT_AUDIO is enabled.


    warning: Experimental symbol BT_AUDIO_UNICAST_SERVER is enabled.


    warning: Experimental symbol BT_VCS is enabled.


    warning: BT_ISO_PERIPHERAL (defined at subsys/bluetooth\Kconfig.iso:19) has direct dependencies (!BT_CTLR || BT_CTLR_PERIPHERAL_ISO_SUPPORT) && BT_HCI && BT with value n, but is currently being y-selected by the following symbols:
    - BT_AUDIO_UNICAST_SERVER (defined at C:/Projects/nRF5340/application/nrf5340_audio_net\src/bluetooth\Kconfig.defaults:95, C:/ncs/v2.1.1/zephyr/subsys/bluetooth/host\../audio\Kconfig.baps:15, subsys/bluetooth\host\../audio\Kconfig.baps:15), with value y, direct dependenc
    ies (AUDIO_DEV = 1 && TRANSPORT_CIS && NRF5340_AUDIO) || (BT_AUDIO && BT_HCI_HOST && BT_RPC_STACK) || (BT_AUDIO && BT_HCI_HOST && BT_HCI && BT) (value: y), and select condition BT_AUDIO && BT_HCI_HOST && BT_HCI && BT (value: y)

    warning: SW_CODEC_LC3_T2_SOFTWARE (defined at C:/ncs/v2.1.1/nrfxlib\lc3/Kconfig:43) has direct dependencies FP_HARDABI with value n, but is currently being y-selected by the following symbols:
    - SW_CODEC_LC3 (defined at C:/Projects/nRF5340/application/nrf5340_audio_net\src/audio/Kconfig:137), with value y, direct dependencies <choice SW_CODEC_DEFAULT> (value: y), and select condition <choice SW_CODEC_DEFAULT> (value: y)

    error: Aborting due to Kconfig warnings

    CMake Error at C:/ncs/v2.1.1/zephyr/cmake/modules/kconfig.cmake:293 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/ncs/v2.1.1/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
    C:/ncs/v2.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v2.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
    CMakeLists.txt:37 (find_package)


    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.1\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.1.1\opt\bin\python.exe' '-Bc:\Projects\nRF5340\application\nrf5340_audio_net\build' -GNinja '-SC:\Projects\nRF5340\application\nrf5340_audio_net'

    * The terminal process "cmd /d /c west build -d c:\Projects\nRF5340\application\nrf5340_audio_net\build -t guiconfig" terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

  • From reading, my guess at this point is there is a precompiled network core for nRF5340 audio DK. Would ncs\v2.1.1\nrf\applications\nrf5340_audio\bin\ble5-ctr-rpmsg_3303.hex the correct one to program?

Related