<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Building Auracast Broadcast example code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123257/building-auracast-broadcast-example-code</link><description>I have three 5340 Audio DKs (PCA10121) and I am trying to demonstrate one as the broadcaster and the other two as headsets with audio transferred between them but NRFconnect within VScode fails to build any of these with the latest tool V3.0.2. 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Aug 2025 12:45:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123257/building-auracast-broadcast-example-code" /><item><title>RE: Building Auracast Broadcast example code</title><link>https://devzone.nordicsemi.com/thread/544632?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 12:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d7bd1c-c216-4db1-9746-45faa036da24</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
&lt;p&gt;I think the error is due to the Python environment not being set up correctly for the nRF Connect SDK toolchain.&amp;nbsp;&lt;span&gt;The Python environment that runs&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;west&lt;/code&gt;&lt;span&gt;&amp;nbsp;must also have the&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;west&lt;/code&gt;&lt;span&gt;&amp;nbsp;Python package installed and accessible. If the Python environment is not set up correctly, or if the wrong Python interpreter is used, you will see this error—even if&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;west.exe&lt;/code&gt;&lt;span&gt;&amp;nbsp;is present Refer:&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/develop/west/troubleshooting.html" rel="noopener noreferrer" target="_blank"&gt;West troubleshooting&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The nRF Connect SDK toolchain (installed via Toolchain Manager) sets up a specific Python environment with all required packages, including&amp;nbsp;&lt;code dir="ltr"&gt;west&lt;/code&gt;. If you try to run&amp;nbsp;&lt;code dir="ltr"&gt;west&lt;/code&gt;&amp;nbsp;or&amp;nbsp;&lt;code dir="ltr"&gt;buildprog.py&lt;/code&gt;&amp;nbsp;outside of this environment, or with a different Python interpreter, you may encounter this error. See the discusson here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/113755/building-nrf5340-audio-dk-from-the-command-line?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/113755/building-nrf5340-audio-dk-from-the-command-line?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The recommended way to ensure the correct environment is to use the&amp;nbsp;&lt;strong&gt;nRF Connect Terminal&lt;/strong&gt;&amp;nbsp;in VS Code, or to start a terminal using the &amp;quot;Open Terminal&amp;quot; option from the Toolchain Manager or nRF Connect for VS Code extension. This ensures all environment variables and paths are set up correctly for the SDK and toolchain&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-1-nrf-connect-sdk-introduction/topic/exercise-2-1/" rel="noopener noreferrer" target="_blank"&gt;Exercise 2 – Build and flash your first nRF Connect SDK application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building Auracast Broadcast example code</title><link>https://devzone.nordicsemi.com/thread/543636?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 15:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6687d6-8f6d-495c-96af-5651c48c9f4d</guid><dc:creator>astorm</dc:creator><description>&lt;p&gt;hello Sathy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can understand why the&amp;nbsp;&lt;em&gt;python buildprog.py&amp;nbsp;&lt;/em&gt;command is failing without the -t argument but I copied the line from&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/applications/nrf5340_audio/doc/building.html#nrf53-audio-app-dk-testing-out-of-the-box"&gt;Building and running nRF5340 Audio applications&lt;/a&gt;&amp;nbsp;instructions.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/applications/nrf5340_audio/doc/building.html#nrf53-audio-app-dk-testing-out-of-the-box"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753457247980v3.png" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Even with the -t argument the error is:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753457458948v5.png" /&gt;&lt;/p&gt;
&lt;p&gt;West tool is installed at &amp;quot;C:\ncs\toolchains\0b393f9e1b\opt\bin\Scripts&amp;quot; on my pc and this directory has already been entered as an environment variable so Windows can in find it.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753457230599v2.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753457325527v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;Even if I &amp;quot;cd&amp;quot; to the &amp;quot;scripts&amp;quot; directory and run it west from there just to check it can be found at least, this error results:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753457581025v6.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building Auracast Broadcast example code</title><link>https://devzone.nordicsemi.com/thread/543605?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 11:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:931c52a6-5abc-45c6-9fff-444d31bb3bd2</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
&lt;p&gt;The nRF5340 Audio application does not support building and programming using the nRF Connect for VS Code extension. You must use either the provided Python script (`buildprog.py`) or the command line with `west` to build and program the application.&amp;nbsp;&lt;br /&gt;See the section highlighted as important here: &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/building.html#nrf53-audio-app-building"&gt;Building and running nRF5340 Audio applications&lt;/a&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;Python Script failure:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6457.pastedimage1753435955587v2.png" /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;As of NCS v3.0.0 and later, the &amp;#39;buildprog.py&amp;#39; script requires the &amp;#39;-t&amp;#39; or &amp;#39;--transport&amp;#39; argument to specify either &amp;#39;unicast&amp;#39; or &amp;#39;broadcast&amp;#39;. &lt;br /&gt;For example, to build the broadcast gateway (source), use:&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;em&gt;python buildprog.py -c app -b debug -d gateway -t broadcast&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To build headsets:&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;em&gt;python buildprog.py -c app -b debug -d headset -t broadcast&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you omit &amp;#39;-t&amp;#39;, the script will fail as you observed. See here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/building.html#script_parameters_for_building"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/building.html#script_parameters_for_building&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also note that if you are using an older SDK (e.g., v2.9.1), the script syntax is different and does not accept &amp;#39;-t&amp;#39;. Make sure your documentation matches your SDK version:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/345091"&gt;(8) Nordic DevZone&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;Command line failure:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1680.pastedimage1753436323804v3.png" /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This error means the `west` tool is not installed or not available in your environment. Make sure you have installed the nRF Connect SDK toolchain using the Toolchain Manager, which sets up &amp;#39;west&amp;#39; and all dependencies. Make sure that all the installation steps are done correctly:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>