You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: applications/nrf5340_audio/doc/building.rst
+10-3
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ The command can be run from any location, as long as the correct path to :file:`
113
113
114
114
The build files are saved in separate subdirectories in the :file:`applications/nrf5340_audio/build` directory.
115
115
The script creates a directory for each application version and device type combination.
116
-
For example, when running the command above, the script creates the :file:`dev_gateway/build_debug` and :file:`dev_headset/build_debug` directories.
116
+
For example, when running the command above, the script creates the :file:`unicast/gateway/app` and :file:`unicast/headset/app` directories.
117
117
118
118
Script parameters for programming
119
119
---------------------------------
@@ -259,6 +259,13 @@ Complete the following steps to build the application:
259
259
* For headset device: ``-DCONFIG_AUDIO_DEV=1``
260
260
* For gateway device: ``-DCONFIG_AUDIO_DEV=2``
261
261
262
+
#. Choose the configuration file for the device selected by using one of the following options:
263
+
264
+
* For unicast headset: ``-DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf"``
265
+
* For unicast gateway: ``-DEXTRA_CONF_FILE=".\unicast_client\overlay-unicast_client.conf"``
266
+
* For broadcast headset: ``-DEXTRA_CONF_FILE=".\broadcast_sink\overlay-broadcast_sink.conf"``
267
+
* For broadcast gateway: ``-DEXTRA_CONF_FILE=".\broadcast_source\overlay-broadcast_source.conf"``
268
+
262
269
#. Choose the application version (:ref:`nrf53_audio_app_building_config_files`) by using one of the following options:
263
270
264
271
* For the debug version: No build flag needed.
@@ -269,9 +276,9 @@ Complete the following steps to build the application:
269
276
270
277
.. code-block:: console
271
278
272
-
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -DFILE_SUFFIX=release
279
+
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf" -DFILE_SUFFIX=release
273
280
274
-
This command creates the build files for headset device directly in the :file:`build` directory.
281
+
This command creates the build files for a unicast headset device directly in the :file:`build` directory.
275
282
What this means is that you cannot create build files for all devices you want to program, because the subsequent commands will overwrite the files in the :file:`build` directory.
276
283
277
284
To work around this standard west behavior, you can add the ``-d`` parameter to the ``west`` command to specify a custom build folder for each device.
Copy file name to clipboardexpand all lines: applications/nrf5340_audio/doc/configuration.rst
+11
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,17 @@ By default, if you have not made any changes to :file:`.conf` files at :file:`ap
13
13
14
14
.. _nrf53_audio_app_configuration_select_build:
15
15
16
+
Selecting broadcast or unicast build
17
+
************************************
18
+
19
+
Given the nRF5340 Audio :ref:`application architecture <nrf53_audio_app_overview>`, the nRF5340 Audio applications can be built for :ref:`either the broadcast or the unicast role <nrf53_audio_app_overview_broadcast_unicast>`:
20
+
21
+
* The unicast build is identified with :kconfig:option:`CONFIG_TRANSPORT_CIS` Kconfig option set to ``y``.
22
+
This is the default configuration.
23
+
* The broadcast build can be selected by adding :kconfig:option:`CONFIG_TRANSPORT_BIS` Kconfig option set to ``y`` to the :file:`prj.conf` file.
0 commit comments