<?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>About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112148/about-devicetree-and-overlay-files</link><description>I want to edit the sample source (nRF5340 Audio) and program it on my own board. 
 I&amp;#39;m using CIS. 
 I&amp;#39;m using NCS version 2.5.0. 
 The nRF5340 Audio DK board is exactly the same hardware, 
 so one overlay file works fine. 
 The circuit of the transmitter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2024 23:01:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112148/about-devicetree-and-overlay-files" /><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/491937?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 23:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:769c22d2-40c2-421a-a82e-378e161a9537</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;P.p.s: I notice that you are on NCS 2.6.1.&amp;nbsp;The error message you got from buildprog.py is still the wrong one but is there any reason you want to use buildprog.py? buildprog.py is to be used with the LE Audio Controller, which is now deprecated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With NCS 2.6.1, you could build with west like a non-Audio application and use the SoftDevice Controller.&lt;/p&gt;
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_2.6.html#nrf5340_audio_applications"&gt;Migration guide for nRF Connect SDK v2.6.0 (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/491936?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 22:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98c26d11-9b59-48dd-8136-6ea9a5f5d87d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;P.s: I just realized a potential source of the problem. How are you calling buildprog.py? In particular, do you know what python.exe is being used to run buildprog.py? It&amp;#39;s best to try with the Python copy in the toolchain. If you are using the nRF Connect VS Code extension, you could do so by opening a nRF Connect terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/491934?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 21:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c9d7a43-e77a-403d-b603-cddbe9d52a53</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Junichi,&lt;/p&gt;
&lt;p&gt;My apology for the late follow-up and thank you for the patience.&lt;/p&gt;
&lt;p&gt;Maria is out of office, and since a few days ago, I have taken over this case. However, I haven&amp;#39;t figured out what could be wrong besides what Maria has already thought of.&lt;/p&gt;
&lt;p&gt;I will continue to investigate this issue and&amp;nbsp;update you within this week.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/490140?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 05:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:600aa462-68c6-4b99-8f08-cc204ab6b0fd</guid><dc:creator>Junichi</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the default version of the source.&lt;/p&gt;
&lt;p&gt;Since the application differs depending on the NCS version, after installing 2.6.1, I&amp;#39;m using the source generated by Create a new application -&amp;gt; Copy a sample.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using buildprog.py generated by the version created above,&lt;br /&gt;so I don&amp;#39;t think there&amp;#39;s a version mistake.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/489697?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 11:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31110e85-1bce-48b8-b68e-30ee130264e3</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;When testing I found the following:&lt;/p&gt;
&lt;p&gt;1. &lt;code&gt;python buildprog.py -c both -b release -d both -m external -M&lt;/code&gt; will not work and will produce an &lt;code&gt;Exception: DFU arguments only accepted when using controller: ACS_nRF53. Please use standard tools.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;2. When running the command &lt;code&gt;python buildprog.py -c both -b release -d both --ctlr ACS_nRF53 -m external -M&lt;/code&gt; the build succeeds.&lt;/p&gt;
&lt;p&gt;Are you building the default application version or a modified/duplicated version? The buildprog.py script can change between NCS releases, so ensure that the buildprog.py you are using corresponds to the NCS version and toolchain you are using.&lt;/p&gt;
&lt;p&gt;Can you verify that you are able to build the nRF5340 Audio application after a fresh NCS installation?&lt;/p&gt;
[quote user="Junichi"]&lt;p&gt;I installed the 2.6.1 version of NCS.&lt;/p&gt;
&lt;p&gt;I also installed the 2.6.1 version of the nRF5340 Audio source.&lt;/p&gt;[/quote]
&lt;p&gt;The nRF5340 Audio applications are part of NCS so you should not install the application again after installing NCS.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/489541?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 13:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e5f2e27-e251-4c5d-800a-0fceba9c9472</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Thank you for the additional information.&lt;/p&gt;
&lt;p&gt;The DFU process has been through a change when switching from the dedicated audio controller to the SDC controller. This could be a cause for the &amp;quot;unrecognized arguments&amp;quot; error. I will do a test tomorrow to verify.&lt;/p&gt;
&lt;p&gt;The invalid board seems to be that the -DBOARD value is nrf5340_audio_dk/nrf5340/cpuapp which is the format in NCS main now, but should not be the format for NCS v2.6.1 as far as I know. The toolchain hash seems to be correct, so I am not sure why the new format is there.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll get back to this tomorrow!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/489176?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 04:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e72ab015-57c4-4555-be11-ffa934b576e9</guid><dc:creator>Junichi</dc:creator><description>&lt;p&gt;I installed the 2.6.1 version of NCS.&lt;/p&gt;
&lt;p&gt;I also installed the 2.6.1 version of the nRF5340 Audio source.&lt;/p&gt;
&lt;p&gt;When I ran the script, I got the following python argument error.&lt;/p&gt;
&lt;p&gt;The command I ran is below.&lt;/p&gt;
&lt;p&gt;python buildprog.py -c both -b release -d both -m external -M&lt;/p&gt;
&lt;p&gt;The error is below.&lt;/p&gt;
&lt;p&gt;usage: buildprog.py [-h] [-r] [-p] [-c {app,net,both}] [--pristine] [-b {release,debug}] -d {headset,gateway,both}&lt;/p&gt;
&lt;p&gt;[-s] [-f] [--nrf21540] [-cn [CUSTOM_BT_NAME ...]] [-u]&lt;/p&gt;
&lt;p&gt;buildprog.py: error: unrecognized arguments: -m external -M&lt;/p&gt;
&lt;p&gt;When I ran the script as shown below without the arguments that were causing the error, I got the following error.&lt;br /&gt;CMake Error at C:/ncs/v2.6.1/zephyr/cmake/modules/boards.cmake:167 (message):&lt;/p&gt;
&lt;p&gt;Invalid BOARD; see above.&lt;/p&gt;
&lt;p&gt;Call Stack (most recent call first):&lt;/p&gt;
&lt;p&gt;C:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)&lt;/p&gt;
&lt;p&gt;C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;/p&gt;
&lt;p&gt;C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;/p&gt;
&lt;p&gt;CMakeLists.txt:13 (find_package)&lt;/p&gt;
&lt;p&gt;-- Configuring incomplete, errors occurred!&lt;/p&gt;
&lt;p&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE&amp;#39; -DWEST_PYTHON=C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe &amp;#39;-BC:\Users\TSP_M1\nrf5340_audio_1\build\dev_headset\build_release&amp;#39; -GNinja -DBOARD=nrf5340_audio_dk/nrf5340/cpuapp -DCONFIG_AUDIO_DEV=1 -DFILE_SUFFIX=release &amp;#39;-SC:\Users\TSP_M1\nrf5340_audio_1&amp;#39;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt;File &amp;quot;C:\Users\TSP_M1\nrf5340_audio_1\tools\buildprog\buildprog.py&amp;quot;, line 417, in &amp;lt;module&amp;gt;&lt;br /&gt;__main()&lt;br /&gt;File &amp;quot;C:\Users\TSP_M1\nrf5340_audio_1\tools\buildprog\buildprog.py&amp;quot;, line 400, in __main&lt;br /&gt;__build_module(build_cfg, options)&lt;br /&gt;File &amp;quot;C:\Users\TSP_M1\nrf5340_audio_1\tools\buildprog\buildprog.py&amp;quot;, line 175, in __build_module&lt;br /&gt;raise Exception(&amp;quot;cmake error: &amp;quot; + str(ret_val))&lt;br /&gt;Exception: cmake error: 1&lt;/p&gt;
&lt;p&gt;What is the cause of each error?&lt;/p&gt;
&lt;p&gt;I get an error even when building with VSCODE.&lt;/p&gt;
&lt;p&gt;If you want to build with VSCODE, you may need to add additional items to the configuration file.&lt;br /&gt;Please tell me the additional items for Gateway and Headset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/489170?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 00:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cfe8542-5cc7-420c-87d3-0e7b0ea4a732</guid><dc:creator>Junichi</dc:creator><description>&lt;p&gt;When using VSCODE, I think you can only build and flash one at a time, either the Gateway or Headset.&lt;/p&gt;
&lt;p&gt;Do I need to set anything in the configuration file?&lt;/p&gt;
&lt;p&gt;I previously received a response from dejans that VSCODE is not supported.&lt;/p&gt;
&lt;p&gt;If I update NSC to 2.6.1, develop with VSCODE, and encounter problems,&lt;/p&gt;
&lt;p&gt;can you provide support?&lt;/p&gt;
&lt;p&gt;The latest NCS is 2.7.0-rc2. Is it okay to use that?&lt;/p&gt;
&lt;p&gt;I am flashing to a custom board.&lt;/p&gt;
&lt;p&gt;I am using the J-Link BASE Compact debugger.&lt;/p&gt;
&lt;p&gt;When I build with a script in debug mode with NCS version 2.5.0, I get a build error.&lt;/p&gt;
&lt;p&gt;(I have asked about this in another ticket)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DeviceTree and Overlay files</title><link>https://devzone.nordicsemi.com/thread/489105?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 12:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6070f64c-5f0c-444a-8fee-cd82734788f7</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;For starters, the nRF5340 audio application(s) can be built with &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.5.0/page/nrf/applications/nrf5340_audio/README.html#building_and_programming_using_command_line"&gt;the command line&lt;/a&gt; as well as with the script. Also, from NCS v2.6.0, the SoftDevice controller is the default controller for the application(s), which means that building and programming with the VS Code extension is possible. We do recommend that you use the most recent releases of NCS when developing LE Audio because there are frequent updates. Please upgrade to NCS v2.6.1 if you can.&lt;/p&gt;
[quote user=""]&lt;p&gt;Specifically, I run buildprog.py in the Tools/buildprog folder with the following command.&lt;/p&gt;
&lt;p&gt;python buildprog.py -c both -b release -d both -m internal -M -p --recover_on_fail&lt;/p&gt;
&lt;p&gt;How can I achieve this?&lt;/p&gt;
&lt;p&gt;For example, is it possible to create two types of overlay files in one source and use different overlay files when running the script?&lt;/p&gt;
&lt;p&gt;I would like to know the specific method.&lt;/p&gt;[/quote]
&lt;p&gt;You should be able to edit the buildprog.py script to fit your requirements. This can be to add more flags to the command or changing the behaviour for the existing flags. Since you want to add a devicetree overlay to your application, there aren&amp;#39;t many changes needed&amp;nbsp; If you store the overlay file in a boards directory within the LE audio project I think you only need to change the target board in the buildprog.py script. The basis for my hypothesis is that the buildprog.py script is putting together a west command, and west will find overlays within &amp;lt;project-folder&amp;gt;/boards when building.&lt;/p&gt;
[quote user=""]When I enter the corresponding&lt;br /&gt;J-Link serial number only into the Headset in the nrf5340_audio_dk_devices.json file and execute the build and write, then I enter the corresponding J-Link serial number only into the Gateway and execute the build and write, and I am unable to connect to BLE.[/quote]
&lt;p&gt;I have a few questions to make sure I understand your setup: Are you flashing your custom board? If yes: What are you using as a debugger?&lt;/p&gt;
[quote user=""]Do you know what the cause is?[/quote]
&lt;p&gt;The device logs in debug mode can be helpful to find out what goes wrong with the connection. Build and flash with -b debug, then study and send the device logs in a reply. Tip: You can insert the log through Insert-&amp;gt;Code. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>