<?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>Slow time-to-enable GPIO using Connect SDK on nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90498/slow-time-to-enable-gpio-using-connect-sdk-on-nrf52832</link><description>I&amp;#39;m using the nRF52832 in an energy harvesting application, where I need to cold-start the device and set a GPIO output high in under 50ms in order to latch the power supply. From everything I can tell in the spec, this should not be a problem at all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Aug 2022 06:55:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90498/slow-time-to-enable-gpio-using-connect-sdk-on-nrf52832" /><item><title>RE: Slow time-to-enable GPIO using Connect SDK on nRF52832</title><link>https://devzone.nordicsemi.com/thread/381097?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 06:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9072fcde-bae2-422b-982b-ae8e72f44351</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Great,&lt;/p&gt;
&lt;p&gt;Keep me updated!&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow time-to-enable GPIO using Connect SDK on nRF52832</title><link>https://devzone.nordicsemi.com/thread/381060?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 18:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31fc5258-f79c-4481-a71b-798fa0f9ccd1</guid><dc:creator>Anthony W</dc:creator><description>&lt;p&gt;Thank you, this looks promising. I haven&amp;#39;t had a chance to try this yet since the J-Link OB interface seems to have gotten corrupted on the dev board, but once I fix this I&amp;#39;ll try it and let you know&amp;nbsp;if it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow time-to-enable GPIO using Connect SDK on nRF52832</title><link>https://devzone.nordicsemi.com/thread/379492?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 10:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74cc5151-9883-445c-8c46-c154baceb89c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try to use the&amp;nbsp;&lt;span&gt;SYS_INIT function as in &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/samples/nrf5340/empty_app_core/src/main.c#L78"&gt;this &lt;/a&gt;example? That would set the GPIO much earlier during boot. You might have to write directly to the GPIO register instead of using the driver as it might not be available at that stage. &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.0.99-ncs1/include/zephyr/init.h#L135"&gt;Here &lt;/a&gt;is documentation for the function. I think this method would reduce the delay considerably.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow time-to-enable GPIO using Connect SDK on nRF52832</title><link>https://devzone.nordicsemi.com/thread/379373?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 17:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d51d7751-964c-4640-bde7-24ddf11be253</guid><dc:creator>Anthony W</dc:creator><description>&lt;p&gt;I define it in an overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;/ {
    gpiocustom {
        compatible = &amp;quot;gpio-keys&amp;quot;;
        gpiocus0: gpiocus_0 {
            gpios = &amp;lt;&amp;amp;gpio0 27 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)&amp;gt;;
            label = &amp;quot;Custom gpio 28&amp;quot;;
        };
    };
    aliases {
        gpiocus0 = &amp;amp;gpiocus0;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the u-blox BMD-350 module embedded&amp;nbsp;in the &lt;a href="https://content.u-blox.com/sites/default/files/BMD-30-33-35-36-EVAL_UserGuide_UBX-19033349.pdf"&gt;BMD-35-EVK&amp;nbsp;development board&lt;/a&gt;&amp;nbsp;(ubx_bmd300eval_nrf52832&amp;nbsp;spec). Power (1.8V) is applied directly to the module&amp;nbsp;via the external power header.&lt;/p&gt;
&lt;p&gt;Source file is pretty simple. It enables the GPIO and blinks an LED.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;drivers/gpio.h&amp;gt;

#define SLEEP_TIME_MS   1000

#define LED0_NODE DT_ALIAS(led0)
#define EN_1V8_NODE DT_ALIAS(gpiocus0)

static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
static const struct gpio_dt_spec en_1v8 = GPIO_DT_SPEC_GET(EN_1V8_NODE, gpios);

void main(void)
{
	int ret;

	if (!device_is_ready(led.port)) return;
	if (!device_is_ready(en_1v8.port)) return;

	if (gpio_pin_configure_dt(&amp;amp;led, GPIO_OUTPUT_ACTIVE) &amp;lt; 0) return;
	if (gpio_pin_configure_dt(&amp;amp;en_1v8, GPIO_OUTPUT_ACTIVE) &amp;lt; 0) return;

	while (true) {
		ret = gpio_pin_toggle_dt(&amp;amp;led);
		if (ret &amp;lt; 0) {
			return;
		}
		k_msleep(SLEEP_TIME_MS);
	}
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow time-to-enable GPIO using Connect SDK on nRF52832</title><link>https://devzone.nordicsemi.com/thread/379298?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 11:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0fbff5c-b20e-49e6-8318-e24723d4acfb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you specify where you are&amp;nbsp;setting the GPIO? In main()?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>