<?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 UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120360/problem-using-uart-using-ncs-2-9-0</link><description>Hi, 
 I&amp;#39;ve just migrated my project from NCS 2.6.1 to 2.9.0 and I&amp;#39;m having some problems with the UART. 
 I&amp;#39;m using the nRF52833 DK to communicate with another device and I noticed that I can send data from the nRF to the other device, however, I can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Apr 2025 16:48:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120360/problem-using-uart-using-ncs-2-9-0" /><item><title>RE: Problem using UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/thread/532658?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 16:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3060b0d7-1ab7-4869-855a-06cf90cee178</guid><dc:creator>icedfluid</dc:creator><description>&lt;p&gt;To make work UART correctly on SDK &amp;gt;= 2.8.0, you should add this to your prj.conf :&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;# (to make uart work on sdk &amp;gt;= 2.8.0)
CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;related post (I guess) :&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/116554/interrupt-driven-uart-doesn-t-work-with-pm_device_runtime/511530"&gt;devzone.nordicsemi.com/.../511530&lt;/a&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem using UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/thread/531894?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 17:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:663b558b-cd48-4467-8912-ee36f0497588</guid><dc:creator>d_7</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;The chip is&lt;br /&gt;&lt;br /&gt;N52833&lt;br /&gt;Q1AAB0&lt;br /&gt;2116AA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem using UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/thread/531890?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 16:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62d9a014-88a4-4ad1-b2ac-2cd2c1c4728f</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The reason this worked in NCS 2.6.1 but not in 2.9.0 might be related to changes in how the interface MCU interacts with these pins.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Which version of nRF52833DK you are using?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It could be&amp;nbsp;a side effect on the new boards that use the nRF5340 as the interface chip, versus older boards that used third-party IC for this.&amp;nbsp;The solution is to use different GPIO pins that are not used by the interface chip as I said before as well.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem using UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/thread/531717?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 13:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae3f07e-4577-4e9e-bf9f-f85e9ed725e6</guid><dc:creator>d_7</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Using the default pins, it works. But I need to change to the ones mentioned above. &lt;br /&gt;&lt;br /&gt;Why in ncs 2.6.1 it works with my pins and in ncs 2.9.0 it doesn&amp;#39;t?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem using UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/thread/531039?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 13:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c634e7e3-7f13-448f-9484-cdd5d5fcef7d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Pins P0.06 and P0.08 are specifically used by the interface MCU for UART communication. source:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52833_dk/page/UG/dk/vir_com_port.html"&gt;Virtual serial port&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&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/pastedimage1744116734179v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When you&amp;#39;re trying to use these pins for external communication (to your USB serial converter), they&amp;#39;re already being used by the interface MCU for the virtual COM port. I guess for this reason, it does not work from PC B to PC A through external USB serial converter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can try to change your UART pins to avoid using P0.06 and P0.08, which are already used by the interface MCU?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem using UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/thread/530036?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 14:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14da2288-df1a-477a-ab31-b4aead8f642b</guid><dc:creator>d_7</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;These are my project files:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7510.main.c"&gt;devzone.nordicsemi.com/.../7510.main.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3301.prj.conf"&gt;devzone.nordicsemi.com/.../3301.prj.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4466.nrf52833dk_5F00_nrf52833.overlay"&gt;devzone.nordicsemi.com/.../4466.nrf52833dk_5F00_nrf52833.overlay&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding the output, I don&amp;#39;t have nothing that can help. But I can try to explain the problem better.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I have a USB serial converter connected to a PC with hterm (PC B). And a nRF52833 DK connected to other PC with nRF Connec for VS Code (PC A).&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:55px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x110/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_04_2D00_01-15_2D00_05_2D00_30.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Using the default UART pins of the nRF52833 DK, I send &amp;ldquo;test1&amp;rdquo; via VCOM0 from PC A to PC B and the data appears in PC B hterm. Then, for example, I send &amp;ldquo;test1_ans&amp;rdquo; via PC B hterm and this data appears on PC A.&lt;/p&gt;
&lt;p&gt;When I change the pins to those described above, I send &amp;ldquo;test1&amp;rdquo; via VCOM0&amp;nbsp;&lt;span&gt;from PC A&amp;nbsp;&lt;/span&gt;to PC B and the data appears in PC B hterm. However, when I send &amp;ldquo;test1_ans&amp;rdquo; via PC B hterm, this data &lt;strong&gt;does not&lt;/strong&gt;&amp;nbsp;appear on PC A.&lt;br /&gt;&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem using UART using NCS 2.9.0</title><link>https://devzone.nordicsemi.com/thread/530011?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 13:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc4de1d5-5cfc-42a1-aad4-80c4109a14c0</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The default pin number of MOSI is P0.30 in the default pincontrol (nrf52833dk_nrf52820-pinctrl.dtsi) file (C:\ncs\v2.9.0\zephyr\boards\nordic\nrf52833dk&lt;span&gt;\&lt;/span&gt;&lt;span&gt;nrf52833dk_nrf52820-pinctrl.dtsi)&lt;/span&gt;).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;#39;&lt;span&gt;I disabled spi, i2c, adc, leds and buttons to make sure&amp;nbsp;that there were no conflicts between pins.&amp;#39;&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you share the board file of your application with me then I can see if disabling the peripheral is ok or not?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;&lt;span&gt;However, when I switch to the pins I&amp;#39;m using in the main project, communication only works in one direction (nRF -&amp;gt; device), i.e. there&amp;#39;s no more communication (nrf &amp;lt;- device).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you have any output log&amp;nbsp;that you can share with us?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>