<?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>nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117059/nrf52833-p0-18-nrst-cannot-be-used-as-gpio</link><description>I am using nRF52833DK, zephyr v2.7.0. 
 I want to disable hardware nRST to use P0.18 as GPIO. 
 What I did 
 Added to Kconfig : CONFIG_GPIO_AS_PINRESET=n 
 Removed : gpio-as-nreset 
 But it is still enabled. 
 When I check UICR, 
 
 
 
 It seems to be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Dec 2024 12:13:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117059/nrf52833-p0-18-nrst-cannot-be-used-as-gpio" /><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/514882?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 12:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7bc9757-387c-4006-91bb-bce0d19420a1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;There should not be an issue with using P0.18 for SPI purposes. There must be something with how the SPI is set up if you don&amp;#39;t get it to work on any of the pins. Please share how it&amp;#39;s set up in the device tree. I recommend checking out&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/"&gt; the lesson on SPI we have in the DevAcademy &lt;/a&gt;that should show you step by step how to create an SPI project from the get go.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/514747?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 13:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:728a5283-b19a-4956-891c-356197b62615</guid><dc:creator>DX_HK</dc:creator><description>&lt;p&gt;I don&amp;#39;t know the exact cause, but I was able to use P0.18 as a GPIO.&lt;br /&gt;Apparently, in my environment, when building with the GUI, code changes are sometimes not reflected.&lt;br /&gt;It works fine by building with the CLI.&lt;/p&gt;
&lt;p&gt;However, my real goal is to assign it to the SPI MOSI pin, which is still not working.&lt;br /&gt;SPI is not working on other ports either, so I will look into it a bit more.&lt;br /&gt;Also, is it possible to use P0.18 as the SPI MOSI pin?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/514720?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 12:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd7839bf-b869-4d6c-882f-9798cd2b6b7b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Should have taken this into effect with NCSv2.7.0.&lt;br /&gt;Can you check in your build folder project_folder\build\sample_name\zephyr.dts&amp;nbsp;and see the &amp;amp;uicr node has the gpio-as-nreset removed.&lt;/p&gt;
&lt;p&gt;Since this is pin 18 you are using, make sure that you have right configuration of pin 18 in your pinctrl.&lt;/p&gt;
&lt;p&gt;How are you testing that the nreset is still enabled using this gpio?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/514498?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 12:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4510fd3-2a5f-4a4a-878d-a85bd8769fc0</guid><dc:creator>DX_HK</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-property/ gpio-as-nreset&lt;/pre&gt;&lt;br /&gt;I added it, but it had the same effect.&lt;br /&gt;I also edited the dts file of nrf52833dk (I know it&amp;#39;s an inappropriate method) and deleted the property.&lt;br /&gt;How can I analyze this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/514491?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 11:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d33557cc-e96d-4578-aba6-25b41253b7fb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The simplest thing to do would probably be to add the following in the .overlay file of your project, as it is set as a reset pin by default in most board files by default and likely is for you as well. I realize I didn&amp;#39;t show how to remove a set device tree setting:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uicr {
        /delete-property/ gpio-as-nreset;
    };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PS: If you have your own board files for your custom board you can also just remove gpio-as-nreset from the .dts file for your custom board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/514177?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 09:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:951fe925-18ed-407d-bc69-df51f4222aec</guid><dc:creator>DX_HK</dc:creator><description>&lt;p&gt;Could you please provide an example of using nrf52833dk to disable nRST and use it as a GPIO?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/514032?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 13:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e638835-4230-482e-8b05-6d62fc074ab6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, so this will need to be&amp;nbsp;&lt;strong&gt;disabled&lt;/strong&gt; to let you use P0.18 as a GPIO, and not as the reset button. Sorry&amp;nbsp; about any confusion there.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/513965?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 08:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efb03485-0da7-463e-bc0f-d8901a848438</guid><dc:creator>DX_HK</dc:creator><description>&lt;p&gt;Is that description incorrect?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/build/dts/api/bindings/arm/nordic%2Cnrf-uicr.html"&gt;docs.zephyrproject.org/.../nordic,nrf-uicr.html&lt;/a&gt;&lt;br /&gt;&amp;gt; When enabled, this property will configure the reset GPIO as nRESET.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 (P0.18) nRST cannot be used as GPIO</title><link>https://devzone.nordicsemi.com/thread/513860?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 14:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e270adbe-49cc-4bb4-95d5-682fe72cbbef</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As of NCS v2.7.0, the&amp;nbsp;&lt;span&gt;CONFIG_GPIO_AS_PINRESET was deprecated I&amp;#39;m afraid, and to set the reset pin as a GPIO now, you should instead do so in devicetree by setting the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;amp;uicr { gpio-as-nreset; };&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>