<?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>NRF52832 disable reset pin segger embedded studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37150/nrf52832-disable-reset-pin-segger-embedded-studio</link><description>Hi, 
 
 We have custom hardware that includes an NRF52832 microcontroller. Currently pin 0.21 is mapped as reset pin and i cannot seem to figure out how to change this using segger embedded studio. What we are trying to do is using the pin for other purposes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 May 2024 12:26:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37150/nrf52832-disable-reset-pin-segger-embedded-studio" /><item><title>RE: NRF52832 disable reset pin segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/483499?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 12:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:813eb231-7852-4a5e-a14c-dbc795d92b89</guid><dc:creator>Shimon Hayun</dc:creator><description>&lt;h3&gt;Step 1: Update the Preprocessor Definitions&lt;/h3&gt;
&lt;h3&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Open your project in Segger Embedded Studio:&lt;/strong&gt; Start Segger Embedded Studio and load your project.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Access the Project Options:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click on your project in the Project Explorer window to select it.&lt;/li&gt;
&lt;li&gt;Go to the menu bar and select &lt;strong&gt;Project&lt;/strong&gt; &amp;gt; &lt;strong&gt;Edit Options&lt;/strong&gt;. Alternatively, right-click on your project in the Project Explorer and choose &lt;strong&gt;Options&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Navigate to Preprocessor Definitions:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the Options dialog, expand the &lt;strong&gt;Preprocessor&lt;/strong&gt; section under &lt;strong&gt;Common Configuration&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Preprocessor Definitions&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Add the Preprocessor Definition:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add &lt;code&gt;NRF_RESET_PIN=18&lt;/code&gt; to the list of definitions.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;OK&lt;/strong&gt; to apply the changes.&lt;br /&gt;
&lt;ul&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Step 2: Update the SDK Configuration File&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Open the &lt;code&gt;sdk_config.h&lt;/code&gt; file:&lt;/strong&gt; Locate the &lt;code&gt;sdk_config.h&lt;/code&gt; file in your project. This file typically resides in the &lt;code&gt;config&lt;/code&gt; folder or a similar configuration directory.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Modify the &lt;code&gt;sdk_config.h&lt;/code&gt; file:&lt;/strong&gt; Add or modify the following definitions to configure P0.18 as the reset pin:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;div class="overflow-y-auto p-4 text-left undefined" dir="ltr"&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-keyword"&gt;define&lt;/span&gt; NRF_RESET_PIN 18&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div class="overflow-y-auto p-4 text-left undefined" dir="ltr"&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Save the &lt;code&gt;sdk_config.h&lt;/code&gt; file:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Save the changes to the &lt;code&gt;sdk_config.h&lt;/code&gt; file.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Step 3: Ensure Proper Pin Configuration&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Check the Pin Configuration:&lt;/strong&gt; If there are any additional pin configuration settings required (such as enabling the reset functionality), ensure they are also defined in the &lt;code&gt;sdk_config.h&lt;/code&gt; or appropriate initialization code.&lt;/p&gt;
&lt;p&gt;For example, you might need to include:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;div class="overflow-y-auto p-4 text-left undefined" dir="ltr"&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-keyword"&gt;define&lt;/span&gt; CONFIG_GPIO_AS_PINRESET 1&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div class="overflow-y-auto p-4 text-left undefined" dir="ltr"&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="overflow-y-auto p-4 text-left undefined" dir="ltr"&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;This setting tells the Nordic SDK to configure the specified GPIO pin as a reset pin.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Initialize the Reset Pin in Code (if necessary):&lt;/strong&gt; In your main application code, ensure that the GPIO pin is properly initialized if required. The Nordic SDK usually handles this, but verify to ensure there are no additional steps needed.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Example Changes in &lt;code&gt;sdk_config.h&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Here&amp;#39;s a sample snippet of how your &lt;code&gt;sdk_config.h&lt;/code&gt; file might look after making these changes:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#ifndef SDK_CONFIG_H&lt;br /&gt;#define SDK_CONFIG_H&lt;/p&gt;
&lt;p&gt;// Enable pin reset&lt;br /&gt;#define CONFIG_GPIO_AS_PINRESET 1&lt;/p&gt;
&lt;p&gt;// Define the reset pin number&lt;br /&gt;#define NRF_RESET_PIN 18&lt;/p&gt;
&lt;p&gt;// Other configurations...&lt;/p&gt;
&lt;p&gt;#endif // SDK_CONFIG_H&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;code class="!whitespace-pre hljs language-c"&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 disable reset pin segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/143306?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 07:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad6d07ae-b3f9-49e6-b8be-b0320420d11d</guid><dc:creator>tkleinloog</dc:creator><description>&lt;p&gt;After removing the CONFIG_GPIO_AS_PINRESET it is important to load up nRFgoStudio and erase the chip before programming it again. This is what solved the problem for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 disable reset pin segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/143042?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 13:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4dca5a2-fcc8-4ec8-95be-70f9a7a24aeb</guid><dc:creator>tkleinloog</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for your response, that was indeed what i was looking for. The only problem is when i remove CONFIG_GPIO_AS_PINRESET pulling the pin low will still draw current and seems to reset the module. Is there anything else that could cause this? I have added a screenshot of my project settings.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1533561418778v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 disable reset pin segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/143018?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 12:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f14955c-e05d-41fb-bcc9-1faf54074791</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Tim.&lt;/p&gt;
&lt;p&gt;You will have to remove the preprocessor definition CONFIG_GPIO_AS_PINRESET.&lt;/p&gt;
&lt;p&gt;This can be done by opening your project settings-&amp;gt;select the common configuration-&amp;gt;Preprocessor-&amp;gt;Preprocessor Definitions&lt;/p&gt;
&lt;p&gt;See picture below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3bc7ed5435c04273bc023969c0cb518e/prepodef.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>