<?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>Problem Using UART2 on nRF9151 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122968/problem-using-uart2-on-nrf9151-dk</link><description>I used the &amp;quot;echo_bot sample and tried to alter it to use UART2 instead of UART0. Aftet changing the code and putting in the needed overlay, the main() program begins to run but never comes back from the call 
 
 int ret = uart_irq_callback_user_data_set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Jul 2025 14:06:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122968/problem-using-uart2-on-nrf9151-dk" /><item><title>RE: Problem Using UART2 on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/542886?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 14:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f0c702-5401-4961-a67d-079c1e3e33f9</guid><dc:creator>WesC</dc:creator><description>&lt;p&gt;I noticed that you disabled Interrupts in the prj.conf.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_2_INTERRUPT_DRIVEN&lt;/span&gt;&lt;span&gt;=n&lt;br /&gt;&lt;/span&gt;this should be set to Y&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;this is why you are failing in the irq_callback()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;wes&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem Using UART2 on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/542885?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 14:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca6a97d-b7a1-482c-bd83-93c49b6973b8</guid><dc:creator>WesC</dc:creator><description>&lt;p&gt;I built from the echo_bot sample, but looking at the main.c for both the only difference is your&amp;nbsp;PrintK&amp;nbsp;statements in main.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem Using UART2 on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/542796?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 15:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f5aeda-b3c0-4456-b277-5092a52c915e</guid><dc:creator>sgordon291</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp; I had done those things.&lt;/p&gt;
&lt;p&gt;Did you build the main.c that I attached or create a new one from the sample?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Steve&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem Using UART2 on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/542792?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 15:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c594ccc1-3327-49c7-b94a-326717da54d7</guid><dc:creator>WesC</dc:creator><description>&lt;p&gt;I took the echo_bot sample and changed the binding to uart2 and added the overlay (identical to your overlay) and it ran without an issue.&amp;nbsp; I am able to get the echo in a serial terminal.&lt;br /&gt;make sure you are building for the nrf9151dk/nrf9151/ns and the overlay is included in the build&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem Using UART2 on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/542691?ContentTypeID=1</link><pubDate>Wed, 16 Jul 2025 23:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b288e70e-33f8-4deb-974b-fa1321b999f9</guid><dc:creator>sgordon291</dc:creator><description>&lt;p&gt;Thanks for the comments.&amp;nbsp; I made a mistake on the overlay when I did the first zip.&amp;nbsp; I&amp;#39;ve attached a new zip with the (I believe) the proper overlay.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/echo_5F00_bot_5F00_uart2_5F00_v2.zip"&gt;devzone.nordicsemi.com/.../echo_5F00_bot_5F00_uart2_5F00_v2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The program still has the same behavior and issue.&amp;nbsp; It seems to never come &amp;nbsp;back from the call&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;ret&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;uart_irq_callback_user_data_set&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;uart_dev&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;serial_cb&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;NULL&lt;/span&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;on line 87.&amp;nbsp; The only thing that I&amp;#39;ve changed from the orig echo_bot is pointing &amp;#39;uart_dev&amp;#39; to uart2 on line 24, and adding the overlay that enables&amp;nbsp;uart2. Do you know what the issue might be?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;On the question of ns vs a secure build, I only done ns builds because my understanding was that it was a simpler build, but I admittedly dont know much about this.&amp;nbsp; At this point, security is not a concern, although it will be at some point.&amp;nbsp; Is there a preference (ns or secure) that&amp;#39;s the &amp;quot;better&amp;quot; one?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Steven Gordon&amp;nbsp;&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;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem Using UART2 on nRF9151 DK</title><link>https://devzone.nordicsemi.com/thread/542522?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 12:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5726d352-2b2b-4dbd-ac08-0c3135c18d42</guid><dc:creator>WesC</dc:creator><description>&lt;div data-olk-copy-source="MailCompose"&gt;A few things I noticed on the code you shared.&lt;/div&gt;
&lt;div&gt;Your overlay is for UART1 on pins P0.8 and P0.9.&lt;/div&gt;
&lt;div&gt;these pins are used as Buttons on the nRF9151DK.&lt;/div&gt;
&lt;div&gt;If you are targeting UART2 and open GPIO, you need to change the overlay to UART2 and select pins not used by the DK&lt;br /&gt;Also you are building for the nRF9151DK_nrf9151 and not for nRF9151Dk_nrf9151_ns&lt;br /&gt;&lt;br /&gt;are you looking to build for a complete secure application versus leveraging TF-M for security by separation&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>