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?

Parents
  • Hi,

    Which board do you use?

    Do you use bap_broadcast_source sample in NCS v2.8.0?

    Can you show your build command?

    Best regards,
    Dejan

  • Hi, 

    I am working with pan_1783_evb and yes I use  bap_broadcast_source sample in NCS v2.8.0.

    My build command is the following : west build -b pan1783_evb/nrf5340/cpuapp

    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

  • Hi Axelle,

    Can you make your project on the same drive where your tools are installed (on C drive instead of D drive) and try again?

    Best regards,
    Dejan

  • Hi Dejans,

    This finally works! The directory was actually what was missing for the build.

    Thank you very much for your help.

    Best regards,

    Axelle

  • Hi Axelle,

    Axelle said:
    This finally works! The directory was actually what was missing for the build.

    This is great to hear. Thank you for the update.

    Best regards,
    Dejan

Reply Children
No Data
Related