<?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>after set GPIO pin as active low exception fatal error occurred in debugging mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110891/after-set-gpio-pin-as-active-low-exception-fatal-error-occurred-in-debugging-mode</link><description>Hi 
 For nRF7002-DK, SDK Version 2.52,I gernate gpio port and set it as active low as below. after gpio pin set as active low, on debugging mode occurred exception fatal error, I can&amp;#39;t add any break point for debug after that.it&amp;#39;s only simple output gpio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 May 2024 07:53:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110891/after-set-gpio-pin-as-active-low-exception-fatal-error-occurred-in-debugging-mode" /><item><title>RE: after set GPIO pin as active low exception fatal error occurred in debugging mode</title><link>https://devzone.nordicsemi.com/thread/482187?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 07:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36bc7a31-9033-4aec-a4f6-ae96e7ba0a4c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Happy to help out, Tina.&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: after set GPIO pin as active low exception fatal error occurred in debugging mode</title><link>https://devzone.nordicsemi.com/thread/482179?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 07:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf33e58b-06e0-4d79-976f-90c3c725bae2</guid><dc:creator>yithwe</dc:creator><description>&lt;p&gt;Hi Hakon&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Tina&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: after set GPIO pin as active low exception fatal error occurred in debugging mode</title><link>https://devzone.nordicsemi.com/thread/482174?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 07:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:329dabdf-1731-420b-95b3-13974a47c6aa</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Those are defines that define the polarity of the GPIO in DT.&lt;/p&gt;
&lt;p&gt;They are not defined as you&amp;#39;d think:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1-1/include/zephyr/dt-bindings/gpio/gpio.h#L26"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1-1/include/zephyr/dt-bindings/gpio/gpio.h#L26&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Use bitwise &amp;#39;0&amp;#39; or &amp;#39;1&amp;#39; instead.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: after set GPIO pin as active low exception fatal error occurred in debugging mode</title><link>https://devzone.nordicsemi.com/thread/482153?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 03:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af333b7e-2927-4c31-a6f8-9039b5c4c0a8</guid><dc:creator>yithwe</dc:creator><description>&lt;p&gt;Hi Hakon&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It&amp;#39;s OK, but what is difference between set as zero or GPIO_ACTIVE_LOW, I test for setting&amp;nbsp;&lt;span&gt;GPIO_ACTIVE_LOW, it&amp;#39;s can&amp;#39;t really pull pin to low.&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;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tina&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: after set GPIO pin as active low exception fatal error occurred in debugging mode</title><link>https://devzone.nordicsemi.com/thread/482038?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 12:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16554d10-86a5-46e8-ad82-1aaa50c75783</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looks like there&amp;#39;s a couple of steps missing, for instance the configuration.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I used:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2012-2014 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;

const struct gpio_dt_spec output_gpio = GPIO_DT_SPEC_GET(DT_NODELABEL(custom_device), out_gpios);
const struct gpio_dt_spec input_gpio = GPIO_DT_SPEC_GET(DT_NODELABEL(custom_device), in_gpios);

int main(void)
{
	printf(&amp;quot;Hello World! %s\n&amp;quot;, CONFIG_BOARD);
	if (!device_is_ready(output_gpio.port))
	{
		printk(&amp;quot;Output GPIOs not ready\n&amp;quot;);
		return;
	}
	if (gpio_pin_configure_dt(&amp;amp;output_gpio, GPIO_OUTPUT) != 0) {
		printk(&amp;quot;Output configure failed\n&amp;quot;);
	}

	printk(&amp;quot;Output pin %d\n&amp;quot;, output_gpio.pin);
	printk(&amp;quot;Input pin %d\n&amp;quot;, input_gpio.pin);
	while (1) {
		gpio_pin_set(output_gpio.port, output_gpio.pin, 0);
		k_msleep(3000);
		gpio_pin_set(output_gpio.port, output_gpio.pin, 1);
		k_msleep(3000);
	}


	return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could you try this and see if that works better?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>