-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applications: nrf5340_audio: Buildprog, pristine and flashing issue #20963
base: main
Are you sure you want to change the base?
applications: nrf5340_audio: Buildprog, pristine and flashing issue #20963
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 78c0fa353e5a425f4ff2233ac845312b39b6f9e3 more detailssdk-nrf:
Github labels
List of changed files detected by CI (3)
Outputs:ToolchainVersion: 4ffa2202d5 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
Selecting broadcast or unicast build | ||
************************************ | ||
|
||
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>`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nrf53_audio_app_overview_broadcast_unicast
does not exist. I don't know where you want to link here... nrf53_audio_feature_support
? https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/feature_support.html
Or maybe you want to link to building?
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>`: | |
Given the nRF5340 Audio :ref:`application architecture <nrf53_audio_app_overview>`, you can :ref:`build the nRF5340 Audio applications <nrf53_audio_app_building>` for either the broadcast or the unicast role. |
b054c12
to
5f64c65
Compare
You can find the documentation preview for this PR here. Preview links for modified nRF Connect SDK documents: https://ncsdoc.z6.web.core.windows.net/PR-20963/nrf/applications/nrf5340_audio/doc/building.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with nit about #20817.
@@ -259,6 +259,13 @@ Complete the following steps to build the application: | |||
* For headset device: ``-DCONFIG_AUDIO_DEV=1`` | |||
* For gateway device: ``-DCONFIG_AUDIO_DEV=2`` | |||
|
|||
#. Choose the configuration file for the device selected by using one of the following options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rephrased this line a bit in #20817 , so you might want to update accordingly.
0a8eabb
to
66f8222
Compare
346a733
to
8fadf93
Compare
8fadf93
to
36aada3
Compare
|
36aada3
to
f91bd8b
Compare
@@ -152,7 +139,9 @@ def __build_cmd_get(cores: Core, device: AudioDevice, build: BuildType, | |||
if os.name == 'nt': | |||
release_flag = release_flag.replace('\\', '/') | |||
if pristine: | |||
build_cmd += " -p" | |||
build_cmd += " --pristine=auto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we manually select pristine, i believe this script should just do:
build_cmd += " --pristine=auto" | |
build_cmd += " --pristine" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put back to --pristine
build_cmd += " -p" | ||
build_cmd += " --pristine=auto" | ||
|
||
dest_folder = TARGET_AUDIO_FOLDER / "build" / options.transport / device / core / build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "build" required as part of the path? I thought ./build/ would be the top folder? (Within the audio application folder).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion, we can put the buildprog builds in the buildprog folder.
TARGET_CORE_APP_FOLDER = NRF5340_AUDIO_FOLDER | ||
TARGET_DEV_HEADSET_FOLDER = NRF5340_AUDIO_FOLDER / "build/dev_headset" | ||
TARGET_DEV_GATEWAY_FOLDER = NRF5340_AUDIO_FOLDER / "build/dev_gateway" | ||
TARGET_AUDIO_FOLDER = NRF5340_AUDIO_FOLDER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General: We need to add a note to the changelog about this buildprog change.
Suggest that we also add a deprecation note there. Something along the lines of:
"The buildprog.py is a convenience script for building and flashing multiple kits and cores with various audio application configurations. With time, we will progress towards using only standard tools for building and flashing kits. Buildprog will be deprecated in a future release."
fcc6bb7
to
d3c4bcb
Compare
81c6c1b
to
7161bad
Compare
7161bad
to
8f34837
Compare
Buildprog issues with building and programming single cores. Signed-off-by: Graham Wacey <graham.wacey@nordicsemi.no>
8f34837
to
78c0fa3
Compare
OCT-3320
Buildprog issues with building and programming single cores.