TX power reduction with bap_broadcast_source

Hello, 

I'm trying to reduce the range of transmission of the nRF5340 SoC for an Auracast Broadcast. I would like it to be detectable only from a distance of 1 or 2 meters.

I've tried to force the TX_PWR to -20 dB in the configuration menu (west build -t menuconfig), but every time I try to build the project, there are configuring errors :

CMake Error at C:/ncs/v2.8.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v2.8.0/nrf/cmake/modules/kconfig.cmake:29 (include)
C:/ncs/v2.8.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
-- Configuring incomplete, errors occurred!
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:4 (find_package)

Has anyone encountered this issue and resolved it?

  • Hello Dejans, 

    Yes I have, I use the nRF Connect extension on VScode (nRF Connect SDK and Toolchain) to build the project.

    Best regards,

    Axelle

  • Hi Axelle,

    Have you done re-build (not pristine) after saving required setting to .config?

    Best regards,
    Dejan

  • Hello Dejans,

    Yes I have and I just did it again to check another time but I'm still left with an error. 

    I do think my issue comes from this part : 

    You need to ensure that you are starting menuconfig for particular image you want, in your case for hci_ipc.

    Can you show me the detailed steps you do to make it work so I can try to replicate it ?

    Best regards,

    Axelle

  • Hi Axelle,

    Axelle said:
    Can you show me the detailed steps you do to make it work so I can try to replicate it ?

    I can try to do that, but can you first try to start menuconfig by running "west build -t menuconfig" from the hci_ipc directory which is inside the build folder? Does this make any difference in your case?

    Best regards,
    Dejan

  • Hi Dejans, 

    It gives me another error linked to where the project is installed on my device. 

    PS D:\nRF5340_AudioDK\Exploration_linux\bap_broadcast_source\build\hci_ipc> west build -t menuconfig
    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "C:\ncs\toolchains\b620d30767\opt\bin\Scripts\west.exe\__main__.py", line 7, in <module>
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\west\app\main.py", line 1085, in main
        app.run(argv or sys.argv[1:])
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\west\app\main.py", line 244, in run
        self.run_command(argv, early_args)
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\west\app\main.py", line 505, in run_command
        self.run_extension(args.command, argv)
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\west\app\main.py", line 654, in run_extension
        self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
      File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\west\commands.py", line 194, in run
        self.do_run(args, unknown)
      File "C:\ncs\v2.8.0\zephyr\scripts\west_commands\build.py", line 236, in do_run
        self._sanity_check()
      File "C:\ncs\v2.8.0\zephyr\scripts\west_commands\build.py", line 490, in _sanity_check
        self._sanity_check_source_dir()
      File "C:\ncs\v2.8.0\zephyr\scripts\west_commands\build.py", line 472, in _sanity_check_source_dir
        srcrel = os.path.relpath(self.source_dir)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<frozen ntpath>", line 783, in relpath
    ValueError: path is on mount 'C:', start on mount 'D:'
    PS D:\nRF5340_AudioDK\Exploration_linux\bap_broadcast_source\build\hci_ipc> 

    I can only run this command from the D:\nRF5340_AudioDK\Exploration_linux\bap_broadcast_source\ directory.

    Best regards,

    Axelle

Related