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
@@ -107,7 +111,7 @@ For example, the following command builds headset and gateway applications using
107
111
108
112
.. code-block:: console
109
113
110
-
python buildprog.py -c app -b debug -d both
114
+
python buildprog.py -c app -b debug -d both -t unicast
111
115
112
116
The command can be run from any location, as long as the correct path to :file:`buildprog.py` is given.
113
117
@@ -132,9 +136,9 @@ The command for programming can look as follows:
132
136
133
137
.. code-block:: console
134
138
135
-
python buildprog.py -c both -b debug -d both -p
139
+
python buildprog.py -c both -b debug -d both -t unicast -p
136
140
137
-
This command builds the headset and the gateway applications with ``debug`` version of both the application core binary and the network core binary - and programs each to its respective core.
141
+
This command builds the unicast headset and the gateway applications with ``debug`` version of both the application core binary and the network core binary - and programs each to its respective core.
138
142
If you want to rebuild from scratch, you can add the ``--pristine`` parameter to the command (west's ``-p`` for cannot be used for a pristine build with the script).
139
143
140
144
.. note::
@@ -143,7 +147,7 @@ If you want to rebuild from scratch, you can add the ``--pristine`` parameter to
143
147
144
148
.. code-block:: console
145
149
146
-
python buildprog.py -c both -b debug -d both -p --recover_on_fail
150
+
python buildprog.py -c both -b debug -d both -t unicast -p --recover_on_fail
147
151
148
152
Getting help
149
153
------------
@@ -256,8 +260,10 @@ Complete the following steps to build the application:
256
260
257
261
a. Choose the device type by using one of the following options:
258
262
259
-
* For headset device: ``-DCONFIG_AUDIO_DEV=1``
260
-
* For gateway device: ``-DCONFIG_AUDIO_DEV=2``
263
+
* For unicast headset: ``-DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf"``
264
+
* For unicast gateway: ``-DEXTRA_CONF_FILE=".\unicast_client\overlay-unicast_client.conf"``
265
+
* For broadcast headset: ``-DEXTRA_CONF_FILE=".\broadcast_sink\overlay-broadcast_sink.conf"``
266
+
* For broadcast gateway: ``-DEXTRA_CONF_FILE=".\broadcast_source\overlay-broadcast_source.conf"``
261
267
262
268
#. Choose the application version (:ref:`nrf53_audio_app_building_config_files`) by using one of the following options:
263
269
@@ -269,7 +275,7 @@ Complete the following steps to build the application:
269
275
270
276
.. code-block:: console
271
277
272
-
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -DFILE_SUFFIX=release
278
+
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf" -DFILE_SUFFIX=release
273
279
274
280
This command creates the build files for headset device directly in the :file:`build` directory.
275
281
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.
@@ -285,7 +291,7 @@ The following command example builds the application for :ref:`nrf53_audio_app_f
285
291
286
292
.. code-block:: console
287
293
288
-
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -DFILE_SUFFIX=fota
294
+
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf" -DFILE_SUFFIX=fota
289
295
290
296
The command uses ``-DFILE_SUFFIX=fota`` to pick :file:`prj_fota.conf` instead of the default :file:`prj.conf`.
291
297
It also uses the ``--pristine`` to clean the existing directory before starting the build process.
Copy file name to clipboardexpand all lines: applications/nrf5340_audio/doc/configuration.rst
+1-14
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,8 @@ Configuring the nRF5340 Audio applications
9
9
10
10
|config|
11
11
12
-
By default, if you have not made any changes to :file:`.conf` files at :file:`applications/nrf5340_audio/`, the nRF5340 :ref:`build script <nrf53_audio_app_building>` builds the :ref:`unicast server (CIS) <nrf53_audio_unicast_server_app>` application in the CIS unidirectional mode as a headset (with :kconfig:option:`CONFIG_TRANSPORT_CIS` set to ``y`` and :kconfig:option:`CONFIG_AUDIO_DEV` set to ``1``).
13
-
14
12
.. _nrf53_audio_app_configuration_select_build:
15
13
16
-
Selecting gateway or headset 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 gateway or the headset role <nrf53_audio_app_overview_gateway_headsets>`:
20
-
21
-
* The headset build is identified with :kconfig:option:`CONFIG_AUDIO_DEV` Kconfig option set to ``1``.
22
-
This is the default configuration.
23
-
* The gateway build can be selected by adding :kconfig:option:`CONFIG_AUDIO_DEV` Kconfig option set to ``2`` to the :file:`prj.conf` file.
@@ -93,7 +80,7 @@ You can use one of the following options, depending on how you decide to build t
93
80
94
81
.. code-block:: console
95
82
96
-
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek
83
+
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -CONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek
97
84
98
85
To set the TX power output, use the ``CONFIG_BT_CTLR_TX_PWR_ANTENNA`` and ``CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB`` Kconfig options in :file:`applications/nrf5340_audio/sysbuild/ipc_radio/prj.conf`.
0 commit comments