<?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>nRF5340 Audio application - moving button5 to gpio1 instead of gpio0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112098/nrf5340-audio-application---moving-button5-to-gpio1-instead-of-gpio0</link><description>Hello! 
 Using SDK v2.6.1 and the nRF5340 Audio application, I want to use an external button as button5 instead of the one that is on the board. 
 I noticed that if i change the device tree to use an unused pin on gpio1, it does not seem to work. 
 In</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jun 2024 13:48:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112098/nrf5340-audio-application---moving-button5-to-gpio1-instead-of-gpio0" /><item><title>RE: nRF5340 Audio application - moving button5 to gpio1 instead of gpio0</title><link>https://devzone.nordicsemi.com/thread/490677?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 13:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:871d52c6-82ad-452a-9b43-771acc187978</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Susheel is away and I will be communicating with you regarding this ticket.&lt;/p&gt;
&lt;p&gt;I have gone through the sample, your changes, and building / programming on the DK.&lt;/p&gt;
&lt;p&gt;I could see what you are getting. I could exactly see the same behavior and the error / logs.&lt;/p&gt;
&lt;p&gt;However, upon searching about the issue and looking more into the code, we could see that the audio-application button-handler module indeed uses only the gpio0.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719323212705v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;That was also the finding of &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96179/add-new-button-on-nrf5340-audio-dk-fail/407762"&gt;this &lt;/a&gt;case, and probably you would need to make changes at your own if you want to use another gpio port.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio application - moving button5 to gpio1 instead of gpio0</title><link>https://devzone.nordicsemi.com/thread/489385?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 20:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37db987c-24c7-4515-bc3e-daf7057d98d0</guid><dc:creator>d.nguyen</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;My apologies for the delay. Here is the project i am using. It is basically the SDK v2.6.1 nRF5340 Audio application with a modification in the project CMake to use the included overlay. The overlay is used to re-route P1.07 that is usually used for UART to button5. and i just used a &amp;quot;random&amp;quot; gpio for the UART. I chose P1.07 specifically because it shows the issue.&amp;nbsp;&lt;br /&gt;Unzip and flash Headset Left.&amp;nbsp;&lt;br /&gt;Usually, Headset Left has a BLUE color, but you&amp;#39;ll notice that it&amp;#39;s Magenta. This is because RGB LED1 RED is being triggered. While I asked for P1.07 to be used for button5, it is using P0.07 instead which is RGB LED1 RED, hence the magenta instead of blue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the original app, when we press and release button5, the audio will mute. If you flash a gateway as well and pair them, you can test this. Then, flash with my code. You will see that button5 no longer works, so i know the overlay is working as intended. If you bring ground to P1.07 by the header, nothing will happen. But, if you bring ground to P0.07, the audio will mute at the Headset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if your findings are the same and what can be done to fix this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3173.nrf5340_5F00_audio.zip"&gt;devzone.nordicsemi.com/.../3173.nrf5340_5F00_audio.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio application - moving button5 to gpio1 instead of gpio0</title><link>https://devzone.nordicsemi.com/thread/488975?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 05:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c338e4b-a950-4588-9800-82e5ed1f14b0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It is either the pin is reserved in the device tree or there is some conflict that we are unable to see. Can you attach your project here so that I can quickly flash and see why we see this error. Trying to use sw4 button_4 in nrf53_audio dk gives me some errors. So it is best if I use exact same setup as you are using to test this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio application - moving button5 to gpio1 instead of gpio0</title><link>https://devzone.nordicsemi.com/thread/488922?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 19:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:949817d2-5b7f-498d-af4b-88e5e225a2f2</guid><dc:creator>d.nguyen</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
[quote userid="6207" url="~/f/nordic-q-a/112098/nrf5340-audio-application---moving-button5-to-gpio1-instead-of-gpio0/488814"]What is the API that gives this error? [/quote]
&lt;p&gt;The error originates from the ASSERT in `zephyr/include/zephyr/drivers/gpio.h` at line 1001.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	__ASSERT((cfg-&amp;gt;port_pin_mask &amp;amp; (gpio_port_pins_t)BIT(pin)) != 0U,
		 &amp;quot;Unsupported pin&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have no issues with gpios that are outputs on gpio1. But trying to set an input button on gpio1 with the nRF5340 Audio app is causing problems. If i switch to another pin on gpio0, its fine and works fine. Any insights?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio application - moving button5 to gpio1 instead of gpio0</title><link>https://devzone.nordicsemi.com/thread/488814?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 08:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7251fed7-21a7-436d-9301-2a8e6d28c866</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I tried doing + 32 here directly as suggested in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97613/gpiote-internal-pull-up-does-not-work-on-gpio1-x"&gt;post&lt;/a&gt;, but then I get &amp;quot;Unsupported pin&amp;quot; error.&amp;nbsp;[/quote]
&lt;p&gt;What is the API that gives this error? Maybe you can step into that function call using a debugger and see in the code exactly where in the libraries or driver you get this error. That will give you more context on why this is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>