<?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>Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122913/trying-to-use-uart2-witn-custom-nrf9151-board-non-secure</link><description>Hi all, 
 I&amp;#39;m trying to use uart2 on my custom nrf9151 board, but I&amp;#39;m stuck. As I understand, I use i2c1 so I can&amp;#39;t use uart1 and i2c1in parallel, so here is why I wnt to use uart2. 
 Here is my configufration: I use P0.23 and P0.24 in my dtsi file 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Aug 2025 00:45:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122913/trying-to-use-uart2-witn-custom-nrf9151-board-non-secure" /><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546825?ContentTypeID=1</link><pubDate>Wed, 27 Aug 2025 00:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae3f9dac-6036-4afa-ab37-8666a3a51d59</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;&lt;span&gt;To be complete, CONFIG_UART_2_INTERRUPT_DRIVEN must also be disabled --per your earlier suggestion!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546824?ContentTypeID=1</link><pubDate>Wed, 27 Aug 2025 00:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2120ddc-37f7-490c-8ae0-6c42c6aa34e1</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;OK, with both&amp;nbsp;CONFIG_UART_ASYNC_API=y and&amp;nbsp;CONFIG_UART_2_ASYNC=y enabled,&lt;/p&gt;
&lt;p&gt;removed&amp;nbsp;&lt;span&gt;CONFIG_AT_HOST_LIBRARY&lt;/span&gt;&lt;span&gt;=y from my demo project&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;--which did not seem to impact modem communication over UART2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now Shell commands are working on the default console / UART0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546820?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 21:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6e66671-7f64-4707-ae8d-f4fedbbd9c2a</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;OK, I think I found the culprit&lt;/p&gt;
&lt;p&gt;It seems to&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_AT_HOST_LIBRARY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I will run more tests to confirm...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546804?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 16:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4a6e03c-af06-4cd1-93f4-4e5222ce7bd2</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;OK, after restoring both configuration,&lt;/p&gt;
&lt;p&gt;the callback set works, and the UART2 communication works as well&lt;/p&gt;
&lt;p&gt;However, the shell / help command on the main console / uart0 does not seem to work&lt;/p&gt;
&lt;p&gt;Did I miss another configuration?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_ASYNC_API&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_2_ASYNC&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546803?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 16:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57c65001-1245-47d1-80fd-b1523dcb2b06</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;ENOTSUP (-134) is returned when&amp;nbsp;CONFIG_UART_ASYNC_API is not enabled.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546801?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 15:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:549d9a92-7262-475d-bbdd-9262cdbd49a0</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;I tried your suggestion for the UART configuration, here is my complete prj.conf content&lt;/p&gt;
&lt;p&gt;it seems the&amp;nbsp;&lt;span&gt;CONFIG_UART_2_ASYNC is getting forced to n despite being set to y&lt;/span&gt;&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# CONFIG_UART_ASYNC_API=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_2_ASYNC&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_2_INTERRUPT_DRIVEN&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# CONFIG_UART_INTERRUPT_DRIVEN=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_USE_RUNTIME_CONFIGURE&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Modem library&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_NRF_MODEM_LIB&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_AT_MONITOR&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LTE_LINK_CONTROL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_AT_HOST_LIBRARY&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Enable debug and assertions.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_DEBUG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_ASSERT&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Logging configurations.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG_MODE_IMMEDIATE&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG_BACKEND_SHOW_COLOR&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG_INFO_COLOR_GREEN&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Shell and console support.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL_LOG_LEVEL_INF&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL_STACK_SIZE&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=3072&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;still getting a failure on the uart_callback_set call, although the error code is -134 instead of -88&lt;/p&gt;
&lt;p&gt;[00:00:00.732,635] &amp;lt;inf&amp;gt; main: uart_configure (0)&lt;br /&gt;[00:00:00.738,037] &amp;lt;err&amp;gt; main: uart_callback_set (-134)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546637?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 13:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee692b8-fd21-4ea9-aed5-be59929470d4</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Re:&amp;nbsp;I was able to enable&amp;nbsp;&lt;span&gt;CONFIG_UART_2_ASYNC with CONFIG_SHLL=y if I also disabled CONFIG_UART_2_INTERRUPT_DRIVEN. Did you try the same?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will give that a try and let you know shortly...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As a matter of fact, I encountered a very similar situation on the Serial LTE Modem (SLM) application&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I will try it there as well...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546591?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 10:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a290b448-7f65-4c0d-92e2-cd7d679a7929</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I was able to enable&amp;nbsp;&lt;span&gt;CONFIG_UART_2_ASYNC with CONFIG_SHLL=y if I also disabled CONFIG_UART_2_INTERRUPT_DRIVEN. Did you try the same?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Jamal_nRF"]With that I had to trade&amp;nbsp;&lt;em&gt;uart_set_callback&lt;/em&gt;() --which seems to be only supported for ASYNC API???[/quote]
&lt;p&gt;&lt;span&gt;Yes, you&amp;#39;re right. Please refer to the &amp;quot;&lt;a href="https://docs.zephyrproject.org/latest/hardware/peripherals/uart.html"&gt;UART async driver API&lt;/a&gt;&amp;quot; documentation which describes the difference between these.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546514?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2025 20:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8c0819d-2792-4683-9a3f-3a7f9dcd3c68</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;thanks for the additional feedback&lt;/p&gt;
&lt;p&gt;I have been able to resolve the problem by using enabling the Interrupt-driven API&lt;/p&gt;
&lt;p&gt;Here is how my prj.conf file looks now&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_ASYNC_API&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_INTERRUPT_DRIVEN&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_USE_RUNTIME_CONFIGURE&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With that I had to trade&amp;nbsp;&lt;em&gt;uart_set_callback&lt;/em&gt;() --which seems to be only supported for ASYNC API???&lt;/p&gt;
&lt;p&gt;for &lt;em&gt;uart_irq_callback_user_data_set&lt;/em&gt;() &amp;ndash;using the callback from the echo_bot zephyr sample&lt;/p&gt;
&lt;p&gt;All is good now: I can have both RX/TX traffic on UART2 while supporting Shell commands on the uart0/console.&lt;/p&gt;
&lt;p&gt;Thanks again for your support&lt;/p&gt;
&lt;p&gt;Jamal&lt;/p&gt;
&lt;p&gt;PS&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t understand why the SHELL component disables the uart Async API??? But this is not blocking anymore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546353?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 13:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda9875b-7a2d-4849-9540-f52131c61365</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not investigated&amp;nbsp;why&amp;nbsp;enabling&amp;nbsp;CONFIG_SHELL&amp;nbsp;is affects this configuration. However, you should be seeing a Kconfig warning in the build log saying why&amp;nbsp;&lt;span&gt;CONFIG_UART_2_ASYNC does not end up being selected (I&amp;#39;m assuming it is not set in the .config since it&amp;#39;s not working). Try to also add the line below and see if that fixes it.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;CONFIG_UART_2_INTERRUPT_DRIVEN=n&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_2_ASYNC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546261?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 19:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ca4abde-b3e7-46b8-bebd-812baae99d90</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I had this config already enabled&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_ASYNC_API&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;and now added&amp;nbsp;&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_UART_2_ASYNC&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;However the latter seems to be forced disabled in the build as I cannot find it in the generated .config file as you indicated.&lt;/p&gt;
&lt;p&gt;Please remember my demo app works fine on UART2, with no error when setting the callback&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#9cdcfe;"&gt;ret&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;uart_callback_set&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;uart&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;uart_cb&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NULL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;as long as I keep the CONFIG_SHELL off.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My test goal is keep the UART2 interface working while also adding support for SHELL commands on the UART0/console&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546245?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 16:38:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a6a951-e27e-4a1a-92e2-c8c961ac4967</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;-88 (-&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/89cb3096037b9a10c66c43b53a7afaab7d827191/include/zephyr/drivers/uart/uart_internal.h#L492"&gt;ENOSYS&lt;/a&gt;) indicates that the &lt;a href="https://docs.zephyrproject.org/latest/hardware/peripherals/uart.html"&gt;UART async driver API&amp;nbsp;&lt;/a&gt;is not enabled, at least not for this UARTE instance. Please try adding CONFIG_UART_2_ASYNC=y to your prj.conf and watch the build output for any errors/warnings, and if not, see if you still get this runtime warning.&lt;/p&gt;
&lt;p&gt;Note that you can also check your current configuration from the generated .config in your build output.&lt;/p&gt;
&lt;p&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/pastedimage1755707916593v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546244?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 16:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dccc14af-43cb-4026-83bb-c9c392bf77ee</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Follow up question if I may keep using this ticket --can open a new one otherwise...&lt;/p&gt;
&lt;p&gt;The reason I switched to UART2 was to extend support to SHELL commands using the default console on uart0 (as defined in the nRF9151DK board device tree)&lt;/p&gt;
&lt;p&gt;To that end, I enable the SHELL support adding this single line the prj.conf file&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;CONFIG_SHELL=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Once I do that, the call to add the uart callback return an error -88&lt;/p&gt;
&lt;p&gt;&amp;lt;err&amp;gt; main: uart_callback_set (-88)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The call to enable the call is the same&lt;/p&gt;
&lt;p&gt;Is this a known problem on the nRF9151?&lt;/p&gt;
&lt;p&gt;Is there a workaround?&lt;/p&gt;
&lt;p&gt;How to support SHELL command on the uart0/console while keeping the uart2 peripheral working&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;ret&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;uart_callback_set&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;uart&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;uart_cb&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NULL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#c586c0;"&gt;if&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; (&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;ret&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;LOG_ERR&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;uart_callback_set (&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;%d&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;)&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;ret&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#c586c0;"&gt;return&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;4&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546241?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 16:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42118122-cf91-483e-9fbd-11689767d8bb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good to hear you found the problem. Thanks for the update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546237?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 15:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8be2b778-2837-4b75-a5ad-a7a3f9a71247</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for confirming my overlay configuration and the pin availability&lt;/p&gt;
&lt;p&gt;Regarding the serial bridge, that was indeed my problem. I was using an old Schmart board.&lt;/p&gt;
&lt;p&gt;I just switched to an FTDI cable, wired the RX/TX/GND on the arduino heade.&lt;/p&gt;
&lt;p&gt;UART2 is working fine now, both TX and RX.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546187?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 12:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec78499-ba83-487b-9cd9-2b468cecf9b1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Both pins appear to be available on the DK. As a test, have you tried swapping the TX and RX pins (the TX/RX assignment in nrf9151dk_nrf9151_ns.overlay as well as the physical connections)? Would be interesting to know if RX still works after this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, what is the uart connected to, is it another board, or a usb serial bridge?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/546053?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 13:07:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:367bb0a5-d05e-44a9-ba8d-fd299272fa68</guid><dc:creator>Jamal_nRF</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I have a related problem using UART2&lt;/p&gt;
&lt;p&gt;I kept UART0 as the default for the console on the first serial port&lt;/p&gt;
&lt;p&gt;Then configured UART2 out of the arduino header to experiment with the UART peripheral as described this devAcademy course, using a second serial port&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-4-serial-communication-uart/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-4-serial-communication-uart/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The RX interface on UART2 is working as expected, meaning I can toggle the LEDS by sending 1/2/3 characters on UART2/second serial port.&lt;/p&gt;
&lt;p&gt;However I cannot get the uart_tx data to write data on the second serial port&lt;/p&gt;
&lt;p&gt;All works well with the uart peripheral configured to UART0&lt;/p&gt;
&lt;p&gt;To configure UART2, I added this overlay file&lt;/p&gt;
&lt;p&gt;nrf9151dk_nrf9151_ns.overlay&lt;/p&gt;
&lt;p&gt;content&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;pinctrl&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart2_default:&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart2_default&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;group1&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;psels&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NRF_PSEL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART_TX&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;23&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;)&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;group2&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;psels&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NRF_PSEL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART_RX&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;24&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;)&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;bias-pull-up&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart2_sleep:&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart2_sleep&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;group1&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;psels&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NRF_PSEL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART_TX&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;23&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;)&amp;gt;, &amp;lt;&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NRF_PSEL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART_RX&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;24&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;)&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;low-power-enable&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart2&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;compatible&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;quot;nordic,nrf-uarte&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;status&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;current-speed&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;115200&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;pinctrl-0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart2_default&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;pinctrl-1&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart2_sleep&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;pinctrl-names&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;default&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;sleep&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use UART2 witn custom nrf9151 board non secure</title><link>https://devzone.nordicsemi.com/thread/542473?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 07:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1430dee9-5cf1-48e9-8560-ab3225056cf5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I noticed in your code that the RX timeout is only set to 100 us which is too short and may lead to unreliable reception. Please try to set it to&amp;nbsp; 50 milliseconds and see if that fixes the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define RX_TIMEOUT (50 * USEC_PER_MSEC)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>