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
+17-9
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,10 @@ The building command for running the script requires providing the following par
98
98
- ``release``, ``debug``
99
99
- | :ref:`nrf53_audio_app_configuration_files`
100
100
|**Note:** For FOTA DFU, you must use :ref:`nrf53_audio_app_building_standard`.
101
+
* - Transport type (``-t``)
102
+
- Specifies the transport type.
103
+
- ``broadcast``, ``unicast``
104
+
- :ref:`nrf53_audio_app_overview_architecture`
101
105
* - Device type (``-d``)
102
106
- Specifies the device type.
103
107
- ``headset``, ``gateway``, ``both``
@@ -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
------------
@@ -247,17 +251,21 @@ The application supports the following custom configurations:
247
251
- | Builds the debug version of the application with the features needed to perform DFU over Bluetooth LE, and includes bootloaders so that the applications on both the application core and network core can be updated.
248
252
|See :ref:`nrf53_audio_app_fota` for more information.
249
253
254
+
.. _nrf53_audio_app_configuration_select_build:
255
+
250
256
Building the application
251
257
========================
252
258
253
259
Complete the following steps to build the application:
254
260
255
261
1. Choose the combination of build flags:
256
262
257
-
a. Choose the device type by using one of the following options:
263
+
a. Choose the device type by using one of the following :ref:`CMake options for extra Kconfig fragments <cmake_options>`:
258
264
259
-
* For headset device: ``-DCONFIG_AUDIO_DEV=1``
260
-
* For gateway device: ``-DCONFIG_AUDIO_DEV=2``
265
+
* For unicast headset: ``-DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf"``
266
+
* For unicast gateway: ``-DEXTRA_CONF_FILE=".\unicast_client\overlay-unicast_client.conf"``
267
+
* For broadcast headset: ``-DEXTRA_CONF_FILE=".\broadcast_sink\overlay-broadcast_sink.conf"``
268
+
* For broadcast gateway: ``-DEXTRA_CONF_FILE=".\broadcast_source\overlay-broadcast_source.conf"``
261
269
262
270
#. Choose the application version (:ref:`nrf53_audio_app_building_config_files`) by using one of the following options:
263
271
@@ -269,7 +277,7 @@ Complete the following steps to build the application:
269
277
270
278
.. code-block:: console
271
279
272
-
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -DFILE_SUFFIX=release
280
+
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf" -DFILE_SUFFIX=release
273
281
274
282
This command creates the build files for headset device directly in the :file:`build` directory.
275
283
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 +293,7 @@ The following command example builds the application for :ref:`nrf53_audio_app_f
285
293
286
294
.. code-block:: console
287
295
288
-
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -DFILE_SUFFIX=fota
296
+
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DEXTRA_CONF_FILE=".\unicast_server\overlay-unicast_server.conf" -DFILE_SUFFIX=fota
289
297
290
298
The command uses ``-DFILE_SUFFIX=fota`` to pick :file:`prj_fota.conf` instead of the default :file:`prj.conf`.
291
299
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
-13
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,6 @@ 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
-
.. _nrf53_audio_app_configuration_select_build:
15
-
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.
Copy file name to clipboardexpand all lines: doc/nrf/releases_and_maturity/migration/migration_guide_3.0.rst
+9-1
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,15 @@ Samples and applications
29
29
30
30
This section describes the changes related to samples and applications.
31
31
32
-
|no_changes_yet_note|
32
+
nRF5340 Audio applications
33
+
--------------------------
34
+
35
+
.. toggle::
36
+
37
+
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_script` now requires the transport (``-t/--transport``) type to be included.
38
+
* The :ref:`nrf53_audio_app` :ref:`nrf53_audio_app_building_standard` now requires an extra :ref:`CMake option to provide extra Kconfig fragments <cmake_options>` to select the device type.
0 commit comments