<?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>INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112177/int2-working-but-int1-is-not</link><description>Please find below my config for handling Interrupt calls. 
 I&amp;#39;ve tested on another sensor dev board that the sensor I use is properly set up and is sending INT1 and INT2. 
 I also tried switching the outputs of the sensor and when I did so I got a response</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jun 2024 13:09:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112177/int2-working-but-int1-is-not" /><item><title>RE: INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/thread/491343?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 13:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8205c6d-6c7e-447e-9323-c5ad11e7fc8c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the long response time.&lt;/p&gt;
&lt;p&gt;Could you please check if you&amp;#39;re able to reproduce this on a nRF5340DK?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not been able to reproduce the behavior.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/thread/489638?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 07:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f22d493c-5a12-4e91-a692-ff13b84bfcdd</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;This is an excerpt from zephyr.dts where P0.11 is referenced. I can&amp;#39;t see what&amp;#39;s colliding.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt; &amp;amp;gpio0 0x17 0x11 &amp;gt;;
			label = &amp;quot;Push button 1&amp;quot;;
			zephyr,code = &amp;lt; 0xb &amp;gt;;
		};
		button1: button_1 {
			gpios = &amp;lt; &amp;amp;gpio1 0xd 0x11 &amp;gt;;
			label = &amp;quot;Push button 2&amp;quot;;
			zephyr,code = &amp;lt; 0x2 &amp;gt;;
		};
		button2: button_2 {
			gpios = &amp;lt; &amp;amp;gpio0 0x8 0x11 &amp;gt;;
			label = &amp;quot;Push button 3&amp;quot;;
			zephyr,code = &amp;lt; 0x3 &amp;gt;;
		};
		button3: button_3 {
			gpios = &amp;lt; &amp;amp;gpio0 0x9 0x11 &amp;gt;;
			label = &amp;quot;Push button 4&amp;quot;;
			zephyr,code = &amp;lt; 0x4 &amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
		};
		int1: int_1 {
			status = &amp;quot;okay&amp;quot;;
			gpios = &amp;lt; &amp;amp;gpio0 0xb 0x0 &amp;gt;;
			label = &amp;quot;interrupt 1&amp;quot;;
		};
		int2: int_2 {
			status = &amp;quot;okay&amp;quot;;
			gpios = &amp;lt; &amp;amp;gpio0 0x9 0x0 &amp;gt;;
			label = &amp;quot;interrupt 2&amp;quot;;
		};
	};
	arduino_header: connector {
		compatible = &amp;quot;arduino-header-r3&amp;quot;;
		#gpio-cells = &amp;lt; 0x2 &amp;gt;;
		gpio-map-mask = &amp;lt; 0xffffffff 0xffffffc0 &amp;gt;;
		gpio-map-pass-thru = &amp;lt; 0x0 0x3f &amp;gt;;
		gpio-map = &amp;lt; 0x0 0x0 &amp;amp;gpio0 0x4 0x0 &amp;gt;, &amp;lt; 0x1 0x0 &amp;amp;gpio0 0x5 0x0 &amp;gt;, &amp;lt; 0x2 0x0 &amp;amp;gpio0 0x6 0x0 &amp;gt;, &amp;lt; 0x3 0x0 &amp;amp;gpio0 0x7 0x0 &amp;gt;, &amp;lt; 0x4 0x0 &amp;amp;gpio0 0x19 0x0 &amp;gt;, &amp;lt; 0x5 0x0 &amp;amp;gpio0 0x1a 0x0 &amp;gt;, &amp;lt; 0x6 0x0 &amp;amp;gpio1 0x0 0x0 &amp;gt;, &amp;lt; 0x7 0x0 &amp;amp;gpio1 0x1 0x0 &amp;gt;, &amp;lt; 0x8 0x0 &amp;amp;gpio1 0x4 0x0 &amp;gt;, &amp;lt; 0x9 0x0 &amp;amp;gpio1 0x5 0x0 &amp;gt;, &amp;lt; 0xa 0x0 &amp;amp;gpio1 0x6 0x0 &amp;gt;, &amp;lt; 0xb 0x0 &amp;amp;gpio1 0x7 0x0 &amp;gt;, &amp;lt; 0xc 0x0 &amp;amp;gpio1 0x8 0x0 &amp;gt;, &amp;lt; 0xd 0x0 &amp;amp;gpio1 0x9 0x0 &amp;gt;, &amp;lt; 0xe 0x0 &amp;amp;gpio1 0xa 0x0 &amp;gt;, &amp;lt; 0xf 0x0 &amp;amp;gpio1 0xb 0x0 &amp;gt;, &amp;lt; 0x10 0x0 &amp;amp;gpio1 0xc 0x0 &amp;gt;, &amp;lt; 0x11 0x0 &amp;amp;gpio1 0xd 0x0 &amp;gt;, &amp;lt; 0x12 0x0 &amp;amp;gpio1 0xe 0x0 &amp;gt;, &amp;lt; 0x13 0x0 &amp;amp;gpio1 0xf 0x0 &amp;gt;, &amp;lt; 0x14 0x0 &amp;amp;gpio1 0x2 0x0 &amp;gt;, &amp;lt; 0x15 0x0 &amp;amp;gpio1 0x3 0x0 &amp;gt;;
		phandle = &amp;lt; 0x8 &amp;gt;;
	};
	arduino_adc: analog-connector {
		compatible = &amp;quot;arduino,uno-adc&amp;quot;;
		#io-channel-cells = &amp;lt; 0x1 &amp;gt;;
		io-channel-map = &amp;lt; 0x0 &amp;amp;adc 0x0 &amp;gt;, &amp;lt; 0x1 &amp;amp;adc 0x1 &amp;gt;, &amp;lt; 0x2 &amp;amp;adc 0x2 &amp;gt;, &amp;lt; 0x3 &amp;amp;adc 0x3 &amp;gt;, &amp;lt; 0x4 &amp;amp;adc 0x4 &amp;gt;, &amp;lt; 0x5 &amp;amp;adc 0x5 &amp;gt;;
	};
	gpio_fwd: nrf-gpio-forwarder {
		compatible = &amp;quot;nordic,nrf-gpio-forwarder&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		uart {
			status = &amp;quot;disabled&amp;quot;;
			gpios = &amp;lt; &amp;amp;gpio0 0xb 0x0 &amp;gt;, &amp;lt; &amp;amp;gpio0 0xa 0x0 &amp;gt;;
		};
	};
				i2c2: i2c@b000 {
				compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
				#address-cells = &amp;lt; 0x1 &amp;gt;;
				#size-cells = &amp;lt; 0x0 &amp;gt;;
				reg = &amp;lt; 0xb000 0x1000 &amp;gt;;
				clock-frequency = &amp;lt; 0x186a0 &amp;gt;;
				interrupts = &amp;lt; 0xb 0x1 &amp;gt;;
				easydma-maxcnt-bits = &amp;lt; 0x10 &amp;gt;;
				status = &amp;quot;disabled&amp;quot;;
			};
			spi2: spi@b000 {
				compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
				#address-cells = &amp;lt; 0x1 &amp;gt;;
				#size-cells = &amp;lt; 0x0 &amp;gt;;
				reg = &amp;lt; 0xb000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0xb 0x1 &amp;gt;;
				max-frequency = &amp;lt; 0x7a1200 &amp;gt;;
				easydma-maxcnt-bits = &amp;lt; 0x10 &amp;gt;;
				status = &amp;quot;disabled&amp;quot;;
			};
			uart2: uart@b000 {
				compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
				reg = &amp;lt; 0xb000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0xb 0x1 &amp;gt;;
				status = &amp;quot;disabled&amp;quot;;
			};

		pwm0_default: pwm0_default {
			phandle = &amp;lt; 0xb &amp;gt;;
		};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/thread/489532?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 13:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b7ea4f1-ed4c-47a9-952a-48f3cf16e090</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Could you check in zephyr.dts if the pins are used for anything else? You can find the file in the build folder&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/thread/489479?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 11:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3e22903-3797-40d3-b2e5-1e6525b3bdb1</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;I did it in dts, in code, and by reconfiguring the INT output of the sensor itself. I checked all permutations. could not get any response from INT1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sensor is properly configured as when I only switch its config to use p0.9 instead of p0.11 it works. If I switch it in dts it works.&amp;nbsp; ... confused&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/thread/489478?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 11:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c7c574-d2c1-404d-af2f-d242faf54775</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Ah, my bad. I had somehow picked up that you were using a DK, where some of the GPIOs has other predefined default settings:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/connector_if.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/connector_if.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyways. I assume that you&amp;#39;ve consulted with the pin assignment for the 5340SoC when selecting which pins to use&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Moving back to the issue you&amp;#39;re observing.&amp;nbsp;&lt;/p&gt;
[quote user=""]I also tried switching the outputs of the sensor and when I did so I got a response on INT2 (that should have been triggered on INT1) and vice versa.&amp;nbsp;[/quote]
&lt;p&gt;By this do you mean that you reconfigured this in the dts, in the code or physically? Could you specify to avoid any misunderstandings?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/thread/489436?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 08:46:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1598082f-977a-4a9f-b58c-d36a922d90d9</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;Its custom board so I cant just rewire P0.11. P0.9 works fine&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P0.11 is not free use ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INT2 working but INT1 is not</title><link>https://devzone.nordicsemi.com/thread/489278?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 11:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912141d3-82c0-495b-b10f-29ecebe02e78</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried any other GPIOs than P0.11? If you inspect the backside of the nrf5340DK you will see that some GPIOs are already in use, while other are free purpose GPIOs (such as P0.09). Do you see the same thing if you use pin 9 and 10 instead of 9 and 11?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>