<?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>Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119989/unused-pins-on-the-nrf9161-dk-and-nrf7002-dk</link><description>Do we have documentation anywhere detailing which pin is used or not in the 9161 DK and 7002 DK? I see docs like this: 
 Board control 
 Buttons and LEDs 
 I selected pin 21 thinking it&amp;#39;s unused, but I think it&amp;#39;s actually set to the value of a button</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Mar 2025 08:07:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119989/unused-pins-on-the-nrf9161-dk-and-nrf7002-dk" /><item><title>RE: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/529215?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2025 08:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c90a558-4e76-4552-b9de-e72312f651f5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I see. Glad you were able to solve this then. Let me know if there are any follow-ups. If not I&amp;#39;ll close this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/529178?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2025 01:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cd0c47d-9452-4be9-959a-eb239e9258fe</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Thanks. I&amp;#39;m not sure what happened, but these errors resolved themselves as we were trying to use different pins. I&amp;#39;ll add that in the device tree we were using the wrong pin numbers (P0.00 instead P1.00 for example).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/528575?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 10:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69fb531f-cec1-422f-aee8-6e0940f33a40</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Regarding the &lt;span&gt;&amp;nbsp;undefined reference to __device_dts_ord_140, I can&amp;#39;t say what this is without looking in your build folder. You can do this yourself. Make sure that you check the log from your latest build, as the number may change, and open the file:&amp;nbsp;build\zephyr\include\generated\devicetree_generated.h. In there, you should see a long list of drivers. What does it say next to 140?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As for your latest issues, where does these errors come from exactly, as the &amp;quot;UART RX stopped unexpectedly&amp;quot; messages aren&amp;#39;t anywhere to be found in the nRF Connect SDK, and what do these error codes refer to on your end?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you&amp;#39;re new to the nRF Connect SDK I strongly recommend checking out the&lt;a href="https://academy.nordicsemi.com/"&gt; Nordic DevAcademy &lt;/a&gt;and nRF Connect SDK courses which gives an easier learning curve to get into the Zephyr RTOS based SDK environment.&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: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/528487?ContentTypeID=1</link><pubDate>Sat, 22 Mar 2025 01:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:010c8578-d7ef-4550-aee2-cba4fff3e043</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;I changed it to pins 10 and 12 for CTS/RTS, which weren&amp;#39;t in the device overlays, and it was able to compile without the error, however UART does not work this way. I just get UART_RX_STOPPED:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:24:33.562,530] &amp;lt;err&amp;gt; test: UART RX stopped unexpectedly! Error 8
[00:24:33.569,458] &amp;lt;err&amp;gt; test: UART RX stopped unexpectedly! Error 4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;On my uart callback (the one set by&amp;nbsp;uart_callback_set), I&amp;#39;m logging the stop error like this:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;case UART_RX_STOPPED:
    LOG_ERR(&amp;quot;UART RX stopped unexpectedly! Error %d&amp;quot;, evt-&amp;gt;data.rx_stop.reason);&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;It&amp;#39;s alternating between these two stop codes:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1742605858756v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I quadruple checked the pins. I have RX going to TX, and TX going to RX. RTS -&amp;gt; CTS, CTS -&amp;gt; RTS. Both are at 1.8 volts, same ground and everything. Any ideas?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/528483?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 23:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:713f555f-72e4-476b-98f0-4b662f2ebb8e</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Looking at that file, I remapped to pins 25-28 in my device overlay, and errors on the 9161 DK side are gone. On the 7002 DK side, I&amp;nbsp;looked at the file&amp;nbsp;ncs\v2.9.0\zephyr\boards\nordic\nrf7002dk\nrf5340_cpuapp_common.dtsi and found that it uses pin 0 and 1 for UART1, which is default, and I am ok with. I picked pins 10 and 11 for RTS/CTS in my overlay, but saw that it conflicts with spi4. I tried disabling spi4 in my overlay, but am running into compilation errors.&lt;/p&gt;
&lt;p&gt;error: &amp;#39;__device_dts_ord_140&amp;#39; undeclared here (not in a function); did you mean &amp;#39;__device_dts_ord_14&amp;#39;?&lt;br /&gt; 92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
    uart1_default: uart1_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_RTS, 0, 11)&amp;gt;;
        };
        group2 {
            psels = &amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_CTS, 0, 10)&amp;gt;;
            bias-pull-up;
        };
    };

    uart1_sleep: uart1_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_RTS, 0, 11)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_CTS, 0, 10)&amp;gt;;
            low-power-enable;
        };
    };
};

&amp;amp;spi4 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart1 {
    status = &amp;quot;okay&amp;quot;;
    current-speed = &amp;lt;115200&amp;gt;;
    pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
    hw-flow-control;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is new to me, so I appreciate your patience / support! Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/528343?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 08:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ba89cb-47ba-4fe7-a850-2041ea281523</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Just to make sure, are you talking about P0.21 on the nRF9161 DK or the nRF7002 DK in your original post? To avoid confusion, let&amp;#39;s focus on one DK first, and take the other after.&lt;/p&gt;
&lt;p&gt;Assuming here, that you&amp;#39;re talking about the nRF9161 DK we can refer to nRF9161 DK board file, found in&amp;nbsp;&lt;strong&gt;&amp;lt;YOUR NCS FOLDER&amp;gt;\v2.9.0\zephyr\boards\nordic\nrf9161dk\nrf9161dk_nrf9161_common.dtsi&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Here we can see that P0.21 on the onboard nRF5340 is used as the RESET pin, which is likely why you&amp;#39;re seeing activity on that pin in your design. P0.10 also is used as a SPI3 CS pin by default. But making a .overlay file should let you overwrite that.&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: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/528300?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 00:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9be1c047-b3ca-4e31-8a79-73d21fdea821</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Hi Simonr, apologies but I did look at this two -- was there any other doc other than these?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf9161_dk/page/UG/nrf91_DK/hw_description/nrf9161_board_controller.html"&gt;Board control&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf9161_dk/page/UG/nrf91_DK/hw_description/hw_buttons_leds.html"&gt;Buttons and LEDs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are other pins I&amp;#39;m referencing which seems to have activity on them (like button states being mapped to them, despite not mentioned in the documentation).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unused pins on the nRF9161 DK and nRF7002 DK?</title><link>https://devzone.nordicsemi.com/thread/528256?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 14:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3ba0fc-2f63-433b-a874-1a835bb1705d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf9161_dk/page/UG/nrf91_DK/hw_description/hw_description.html"&gt;nRF9161 DK&lt;/a&gt; and &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf7002_dk/page/UG/nrf7002_DK/intro.html"&gt;nRF7002 DK&lt;/a&gt; user guides should give you a good overview of what pins are used already on the board, and what solder bridges to cut, etc. in order to access ones that are used by default.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to overwrite what the board files do, please use the .overlay files for that, but please note that the UARTs on the DKs are often used for logging to the interface MCU for debugging purposes by default in many samples.&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>