<?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>Unsupported Pin GPIO error with SDK 2.6.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111822/unsupported-pin-gpio-error-with-sdk-2-6-0</link><description>Hi, 
 We have developed our code against SDK 2.3.0 and I wanted to try to upgrade the SDK to 2.6.0. I had to remove CONFIG_OPENTHREAD_CHILD_SUPERVISION from my prj.conf, but after that the project was build. But when I flashed the new hex, it seems just</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jun 2024 00:50:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111822/unsupported-pin-gpio-error-with-sdk-2-6-0" /><item><title>RE: Unsupported Pin GPIO error with SDK 2.6.0</title><link>https://devzone.nordicsemi.com/thread/489395?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 00:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27bc5b18-70f6-4e94-83c6-25b8b30af4f0</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;ok, I finally restarted the vscode editor and that seem to fix it. So all good now. Thanks for your support.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unsupported Pin GPIO error with SDK 2.6.0</title><link>https://devzone.nordicsemi.com/thread/489393?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 00:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a24de6-8199-42d9-aa04-8abb291170d6</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Ok I managed to fix the first issue of dts file path. I rerun the build configurations and reselect the board again. Then the path get set to SDK 2.6.0.&lt;/p&gt;
&lt;p&gt;The second issue still remains, the kconfig file error. This is the kconfig file in my project root.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unsupported Pin GPIO error with SDK 2.6.0</title><link>https://devzone.nordicsemi.com/thread/489392?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 00:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:271e6a98-509d-4a4b-863e-b3ce68153de0</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Thanks. When I upgrade my 2.3.0 project to 2.6.0, what I did was&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. From NRF CONNECT -&amp;gt;Welcome-&amp;gt;Manage toolchains, pick 2.6.0 toolchain and set as active&lt;/p&gt;
&lt;p&gt;2. From&amp;nbsp;&lt;span&gt;NRF CONNECT -&amp;gt;Welcome-&amp;gt;Manage SDKs, pick 2.6.0 SDK and set as active&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can see from bottom right corner that 2.6.0 toolchain and SDK are active. But when I check&amp;nbsp;nrf52840dk_nrf52840.dts path from the Devicetree node, it points to my old dts file from 2.3.0 SDK. How can I fix this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another thing I noted is that my project pane shows an error in my kconfig. The error seems to be in&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;source&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;Kconfig.zephyr&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and higlighted error shows &amp;quot;&lt;/span&gt;&lt;span&gt;couldn&amp;#39;t parse &amp;#39;default $(dt_gpio_hogs_enabled)&amp;#39;: macro expanded to blank string&amp;quot; But the project can be built successfully.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kaushalya&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unsupported Pin GPIO error with SDK 2.6.0</title><link>https://devzone.nordicsemi.com/thread/488041?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 08:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2abbe781-8800-4713-b06a-59028a864b67</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I can reproduce this on the DK.&lt;/p&gt;
&lt;p&gt;diving more in, it goes into the definition of the &amp;amp;gpio0 in&amp;nbsp;ncs\v2.6.1\zephyr\boards\arm\nrf52840dk_nrf52840\nrf52840dk_nrf52840.dts. If you look into this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
	gpio-reserved-ranges = &amp;lt;0 2&amp;gt;, &amp;lt;6 1&amp;gt;, &amp;lt;8 3&amp;gt;, &amp;lt;17 7&amp;gt;;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You see that set &amp;lt;17 7&amp;gt; meaning gpio pin number from 17-23 are reserved. If you look in the back of the nRF52830 DK, you can see that this pins are connected to different things and hence not usable for anything else on the DK. If you have a custom board and if you are sure that these pins are free to use for the application, then you need to change the&amp;nbsp;&lt;em&gt;&lt;strong&gt;gpio-reserved-ranges&lt;/strong&gt;&lt;/em&gt; in your overlay file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unsupported Pin GPIO error with SDK 2.6.0</title><link>https://devzone.nordicsemi.com/thread/487597?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 01:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6fec29-8029-4f28-ad79-b82fdc25c4d5</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
[quote userid="6207" url="~/f/nordic-q-a/111822/unsupported-pin-gpio-error-with-sdk-2-6-0/487471"]What was the pin number that is giving the error?[/quote]
&lt;p&gt;Thanks for your reply. The error comes from the first, GPIO_0, Pin 23.&amp;nbsp;&lt;/p&gt;
[quote userid="6207" url="~/f/nordic-q-a/111822/unsupported-pin-gpio-error-with-sdk-2-6-0/487471"]Can you show the code snippet of how you call this?[/quote]
&lt;p&gt;In my code it starts with&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ret = dk_leds_init();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;dk_leds_init () function is defined in dk)buttons_and_leds.c. It defines leds [] as&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define GPIO_SPEC_AND_COMMA(button_or_led) GPIO_DT_SPEC_GET(button_or_led, gpios),

static const struct gpio_dt_spec leds[] = {
#if DT_NODE_EXISTS(LEDS_NODE)
	DT_FOREACH_CHILD(LEDS_NODE, GPIO_SPEC_AND_COMMA)
#endif
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in dk_leds_init () function&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err = gpio_pin_configure_dt(&amp;amp;leds[i], GPIO_OUTPUT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;gpio_pin_configure_dt (...) is defined in gpio.h.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="6207" url="~/f/nordic-q-a/111822/unsupported-pin-gpio-error-with-sdk-2-6-0/487471"]maybe step to see if&amp;nbsp;&lt;span&gt;port_pin_mask have value different in v2.6.0 than in v2.3.0&lt;/span&gt;[/quote]
&lt;p&gt;Yes they are different!! In 2.3.0 it is 0xffffffff and in 2.6.0 it is 0xff01f8bc. I previously didnt have the &lt;span&gt;CONFIG_GPIO_NRFX enabled in my prj.conf. But even with that enabled, no difference to end result. Following are two screen shots of the debug window highlighting the differences.&lt;/span&gt;&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/pastedimage1717637428399v1.png" alt=" " /&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/pastedimage1717637438705v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Only other difference I did between the two builds is enabling/disabling&amp;nbsp; CONFIG_OPENTHREAD_CHILD_SUPERVISION, which I doubt has any influence.&lt;/p&gt;
&lt;p&gt;Whats going on here?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unsupported Pin GPIO error with SDK 2.6.0</title><link>https://devzone.nordicsemi.com/thread/487471?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 10:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28eded53-97d2-4147-9481-9cb32883a7f3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;What was the pin number that is giving the error?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you show the code snippet of how you call this? or maybe step to see if&amp;nbsp;&lt;span&gt;port_pin_mask have value different in v2.6.0 than in v2.3.0? If So, then maybe the GPIO driver configuration is not set correctly. Are you sure that&amp;nbsp;CONFIG_GPIO_NRFX is set in your prj.conf? check the &amp;quot;.config&amp;quot; file in your build folder to see if this is set to y.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>