<?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 DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119687/nrf5340-audio-dk-gpio-p0-07-not-outputting-high</link><description>Hello, 
 I am trying to make GPIO P0.07 to high, in my nrf5340 Audio DK. Externally I am connecting an LED between P0.07 and GND. But it not showing any voltage between them. below is my code 
 
 
 My overlay file is 
 
 my config file 
 
 But the board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Mar 2025 08:59:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119687/nrf5340-audio-dk-gpio-p0-07-not-outputting-high" /><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/527546?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 08:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5394ea-95ee-406a-87cc-7f2687a65c89</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It is possible to increase the output on the nRF53 using the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/uicr/doc/uicr.html#ariaid-title4"&gt;VREGHVOUT&lt;/a&gt; register. This won&amp;#39;t work on the Audio DK, because there are some regulators going in to the chip, and the VDD can&amp;#39;t be higher than the supplied voltage. But on a custom board, you can set the pin voltage up to 3.3V.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/527462?ContentTypeID=1</link><pubDate>Sat, 15 Mar 2025 10:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c961573-3534-4564-b070-7048c6f044d1</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;Thanks, &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;. I found the issue&amp;mdash;my LED is designed for 3V, but the GPIO is only outputting approximately 1.5V, which is why it isn&amp;rsquo;t lighting up. The reason I was confused is that when I connected the LED to VBUS and GND, it lit up since VBUS outputs approximately 5V.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/527447?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 23:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70282d10-d743-4c77-b2ce-469282534767</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh sorry, I referred to the red LED in the blank plastic window in the middle. I didn&amp;#39;t actually measure the voltage on the pin header, where you have connected the external LED.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But have you tried measuring the pin with a multimeter/voltmeter? And what voltage does your LED require? And are you sure you put the LED in the right orientation? Have you tried connecting it the other way?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/527295?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 04:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9baa619c-bf26-499d-b7e3-e6d31886968f</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/photo_5F00_2025_2D00_03_2D00_14_5F00_09_2D00_32_2D00_28.jpg" /&gt;hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;&amp;nbsp; I tested your code it is still same I am attaching the photo as zip, You can see that external LED connected is not glowing, pwm0 is still blinking in red, even after you disabled it.I tested it in 2 boards&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfPhoto.zip"&gt;devzone.nordicsemi.com/.../nrfPhoto.zip&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&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/photo_5F00_2025_2D00_03_2D00_14_5F00_09_2D00_32_2D00_28.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/527216?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 14:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d10bc64-e9a2-46e5-a464-35d29e35eabe</guid><dc:creator>Edvin</dc:creator><description>[quote user="Edvin Holmseth"]&lt;p&gt;Or alternatively, instead of using /delete-node/, you could move the pin used for pwm_led_0, by adding this to your .overlay file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/div&gt;[/quote]
&lt;p&gt;If you would have tried this, you would have seen that it worked.&lt;/p&gt;
&lt;p&gt;However, I found it better to disable the PWM, since it is not being used. Please see the attached project:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fade_5F00_led_5F00_1_5F00_no_5F00_pwm.zip"&gt;devzone.nordicsemi.com/.../fade_5F00_led_5F00_1_5F00_no_5F00_pwm.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/527158?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 12:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0334ce6-6a04-4ebc-91e5-8cb4b040ddd6</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;Or do you have any sample code for Audio DK to make any GPIO pin to high state,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/527016?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 15:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c23d06b6-e74d-4929-84d8-2132db8bf3e5</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fade_5F00_led_5F00_1.rar"&gt;devzone.nordicsemi.com/.../fade_5F00_led_5F00_1.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My NCS version is 2.9.0. Yes target board is nrf5340 Audio DK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526953?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81494d9b-e94e-4408-88d4-4c3db16671ac</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you please .zip and upload the entire application folder, so that I can run it on my desk?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are building for the target board nrf5340_audio_dk/nrf5340/cpuapp, right? What NCS version are you using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526883?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 10:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fecf3f1-e23c-43b3-bae8-a621d21f5189</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/device.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;

static const struct gpio_dt_spec spec = GPIO_DT_SPEC_GET(DT_ALIAS(newpin), testpin_gpios);

int main(void)
{
    int ret;

    if (!gpio_is_ready_dt(&amp;amp;spec)) {
        printk(&amp;quot;Error: GPIO device %s is not ready\n&amp;quot;, spec.port-&amp;gt;name);
        return 0;
    }

    ret = gpio_pin_configure_dt(&amp;amp;spec, GPIO_OUTPUT_ACTIVE);
    if (ret &amp;lt; 0) {
        printk(&amp;quot;Error %d: Failed to configure GPIO pin\n&amp;quot;, ret);
        return 0;
    }

    printk(&amp;quot;Setting GPIO HIGH on %d \n&amp;quot;,spec.pin);

    /* Set GPIO HIGH */
    gpio_pin_set_dt(&amp;amp;spec, 1);

    while (1) {
        k_sleep(K_FOREVER); // Keep running
    }
	return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Above is my code I am not referring any PWM , I tried P0.08 also. But I am not getting any voltage in GPIO.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526867?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 09:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5a8a087-65c8-49bb-ad12-308c6e42d5c5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes, you would need to remove all references to pwm0 in your application. It is probably easier to use another pin, instead of the P0.07.&lt;/p&gt;
&lt;p&gt;Or alternatively, instead of using /delete-node/, you could move the pin used for pwm_led_0, by adding this to your .overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	pwm0_default: pwm0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT1, 0, 25)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT2, 0, 26)&amp;gt;;
		};
	};

	pwm0_sleep: pwm0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT1, 0, 25)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT2, 0, 26)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But note that P0.07 will still be physically connected to the LED on the Audio DK.&lt;/p&gt;
&lt;p&gt;Also note that I now moved the first PWM channel to pin P0.08, but you can move it to any pin you&amp;#39;d prefer, that is free.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526847?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 07:25:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bf36080-b905-4b09-a62a-0735f7d5a39c</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;When i am adding &amp;quot;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;/delete-node/&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;pwm0&lt;/span&gt;&lt;span&gt;;&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;
/{
	testpin: zephyr,user {
		testpin-gpios = &amp;lt;&amp;amp;gpio0 7 0&amp;gt;;
	};

	aliases {
		newpin = &amp;amp;testpin;
	};
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

/delete-node/ &amp;amp;pwm0;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am getting error &amp;quot;devicetree error: /pwmleds/pwm_led_0: undefined node label &amp;#39;pwm0&amp;#39;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526782?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 14:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c23dbb-2987-4563-85ed-8b93e91bcce5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So it is P0.07 you want to control, right?&lt;/p&gt;
&lt;p&gt;By default, this is connected to the &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf5340_audio/page/UG/nrf5340_audio/hw_pin_maps.html"&gt;red RGB led&lt;/a&gt;. Software wise, it is being controlled by PWM0, channel 0:&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/pastedimage1741703643876v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(this is from NCS\zephyr\boards\nordic\nrf5340_audio_dk\nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi)&lt;/p&gt;
&lt;p&gt;I have not tested this from the application, but you can try to add a file, nrf5340_audio_dk_nrf5340_cpuapp.overlay in your application&amp;#39;s root folder (same folder as the CMakeLists.txt), and add the following line to it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-node/ &amp;amp;pwm0;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will, however, disable the RGB leds on the Audio DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would probably see, if you made your application set the color to red (without the line above), see that the voltage would be high.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526677?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 07:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:153a145b-d0d0-4b73-9410-2212f6d2df12</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;I tested with blinky example, I changed the pin in overlay file like below. I am not getting any voltage in GPIO pin P0.08. When configure it to P0.07 or P0.25 built-in Leds are flashing without issue.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;rgb1_red {
	gpios = &amp;lt;&amp;amp;gpio0 8 0&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526625?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 16:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110961f9-9602-4f18-9fe2-a85e89d35d3b</guid><dc:creator>saurabh</dc:creator><description>&lt;p&gt;P0.07/AIN3 RGB LED 1 Red color input pin this is default connection on nRF5340 Audio dk board can you check on P0.08 and check your firmware is working or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526623?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 16:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a4eac25-3421-48e4-b2ff-c0a036d2d3d9</guid><dc:creator>saurabh</dc:creator><description>&lt;p&gt;Can you check by blinking led in loop and see any changes in voltage&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526617?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 16:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49153222-ae57-495f-a753-8d9b84f1a0e7</guid><dc:creator>arun98475</dc:creator><description>&lt;p&gt;that is working fine, here also in built-in led is working. But if i connect an external led in P0.07 and GND it is not working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DK: GPIO P0.07 Not Outputting High?</title><link>https://devzone.nordicsemi.com/thread/526613?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 15:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb8b5637-4892-42cd-b2ac-66f08cc227c3</guid><dc:creator>saurabh</dc:creator><description>&lt;p&gt;Hello Arun can you try blinky example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>