<?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>Fail to build a copy of nRF5340 example audio application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111769/fail-to-build-a-copy-of-nrf5340-example-audio-application</link><description>Hi, 
 I own an nRF5340 Audio DK, on which I successfully run the example audio application . 
 Using nRF extension for VSCode, I&amp;#39;ve created a new application based on the above example, which is saved in a path outside the SDK. When I try to build it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2024 08:38:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111769/fail-to-build-a-copy-of-nrf5340-example-audio-application" /><item><title>RE: Fail to build a copy of nRF5340 example audio application</title><link>https://devzone.nordicsemi.com/thread/488056?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 08:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1853e939-0098-44b2-b74c-a7fde7aa5e40</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;I&amp;#39;ll share the solution I&amp;#39;ve found:&lt;/p&gt;
&lt;p&gt;- I simply copied the audio example code to the desired folder on my PC, just like with any other example code.&lt;/p&gt;
&lt;p&gt;- Instead of using the buildproj script, I build &amp;amp; flash through nRF Extension for VSCode. The build configuration is set for the cpuapp and I set the device as gateway/headset by adding&amp;nbsp;CONFIG_AUDIO_DEV to prj.conf and set it to 2/1 accordingly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to build a copy of nRF5340 example audio application</title><link>https://devzone.nordicsemi.com/thread/487679?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 09:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc6559d7-1508-488f-b6c2-aeac0b671e41</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You should be able to build the sample using west build command. Building with VS Code should work as well if you use the newest NCS version. You could try to run west directly instead of using your batch file. For build command to be recognized, you can try to run it from command window which you open from the Toolchain Manager.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to build a copy of nRF5340 example audio application</title><link>https://devzone.nordicsemi.com/thread/487519?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 12:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c217a7-c6ba-4174-977b-8157705e3d42</guid><dc:creator>Dekel</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/111769/fail-to-build-a-copy-of-nrf5340-example-audio-application/487466"]Additionally, you could try to run the sample inside your nrf repository.[/quote]
&lt;p&gt;That works just fine, but I&amp;#39;d like to leave the SDK clean and do my modifications outside of it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/111769/fail-to-build-a-copy-of-nrf5340-example-audio-application/487466"]Have you tried to open your command line window from the Toolchain Manager?[/quote]
&lt;p&gt;I actually use a batch file, which works fine when running the example code from within the SDK folder. Do you think it can make a change?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to build a copy of nRF5340 example audio application</title><link>https://devzone.nordicsemi.com/thread/487466?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 09:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8cc2699-7588-42ac-90d7-ddb031bebb68</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Have you tried to open your command line window from the Toolchain Manager?&lt;br /&gt;&lt;br /&gt;Additionally, you could try to run the sample inside your nrf repository.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to build a copy of nRF5340 example audio application</title><link>https://devzone.nordicsemi.com/thread/487285?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 11:09:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded4ade0-6965-4c20-8e83-501980c406fa</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I use the broadcast application, which is built &amp;amp; flashed for both gateway and headset units through the&amp;nbsp;&lt;span&gt;builprog.py script.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use the following line to run the script, which ultimately runs the build command (which is provided by Nordic):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;python buildprog.py -c both -b debug -d both -p --ctlr=&amp;quot;SDC&amp;quot; --recover_on_fail --pristine&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to build a copy of nRF5340 example audio application</title><link>https://devzone.nordicsemi.com/thread/487281?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 10:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2af357cd-2e95-4ebb-9eb3-3f57f9a6e8fb</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Dekel,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;On the page you linked to, which application did you use?&lt;br /&gt;&lt;br /&gt;Where did you run builprog.py script from?&lt;br /&gt;&lt;br /&gt;Could you provide your build command?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>