<?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>UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80684/uart-works-on-a-custom-board-with-nrf52840-but-not-on-the-nrf52840-dk</link><description>Hi, 
 I have a custom board with nrf52840 chipset that controls a GSM modem over UART, and this setup works just fine (zephyr project). 
 Now, I&amp;#39;m trying to replicate this setup with an nrf52840DK board controlling dev kit of the same modem, but I don</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Oct 2021 07:42:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80684/uart-works-on-a-custom-board-with-nrf52840-but-not-on-the-nrf52840-dk" /><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334494?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 07:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211380cd-40bc-4a73-bca1-20eed8434392</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Excellent, thanks for letting us know! I&amp;#39;m glad to hear that you found the problem.&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><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334493?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 07:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5fd3d71-49aa-440c-a674-da4f8236718f</guid><dc:creator>alaa</dc:creator><description>&lt;p&gt;Hi again Vidar,&lt;/p&gt;
&lt;p&gt;Tx line is working fine, I was using wrong settings on the&amp;nbsp;&lt;span&gt;oscilloscope!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks a lot for your support.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alaa&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334482?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 07:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92aa5ca9-8efc-4367-836a-4a4fc5f8fe88</guid><dc:creator>alaa</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;HW flow control is off. I also checked both the maximum number of bytes in the transmit buffer and the number of bytes sent in the last transaction, both are always &amp;#39;&amp;#39;1&amp;#39;&amp;#39;. Does that mean that everything is just working fine?&amp;nbsp; I still can&amp;#39;t see anything on the oscilloscope!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Alaa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334399?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 14:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d0978bd-1565-4e8c-841a-9d4bdb4dd0c9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Alaa,&lt;/p&gt;
&lt;p&gt;Thanks for confirming, so we know the correct pin is selected at least. What about HW flow control, are you using it (is enabled in &lt;span class="item"&gt;&lt;a class="" title="CONFIG" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uarte.html?cp=4_0_0_5_33_8_33#register.CONFIG"&gt;CONFIG&lt;/a&gt;&lt;/span&gt;)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334383?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 13:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2374f03b-392c-4745-bb48-aa3859c74059</guid><dc:creator>alaa</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using CLion.&lt;/p&gt;
&lt;p&gt;Inrfjprog --memrd 0x4002850C returns 27, which is the expected value. (I&amp;#39;m using UART1)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Alaa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334370?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 13:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56e8aa2b-0d2e-4973-a1ec-00fb92e629e1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Alaa,&lt;/p&gt;
&lt;p&gt;Is probably fastest to just read it with &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"&gt;nrfjprog &lt;/a&gt;from the command line if you are familiar with this tool.&lt;/p&gt;
&lt;p&gt;Example: reading PSEL.TXD for UARTE0&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;$ nrfjprog --memrd 0x4000250C&lt;/p&gt;
&lt;p&gt;You can also read the peripheral registers when debugging in VS code or Segger embedded Studio. Which IDE are you using?&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><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334358?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 12:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd156dd4-77a4-493f-be3e-57af34777565</guid><dc:creator>alaa</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m new to the zephyr development environment, so I don&amp;#39;t know what the best way to check the registers would be? I will look into that.&lt;/p&gt;
&lt;p&gt;The application looks to be working fine, since I can probe the correct activity on the pin used for the modem power up control.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Alaa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334326?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 11:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56173a89-5068-4bc1-99a8-24fcfb0f5de3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you double-check that &lt;span class="item"&gt;&lt;a title="PSEL.TXD" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uarte.html?cp=4_0_0_5_33_8_23#register.PSEL.TXD"&gt;PSEL.TXD&lt;/a&gt;&lt;/span&gt; is set correctly? Also, does the application appear to function normally except for the missing UART transmissions?&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><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334317?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 11:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9e5935e-a53e-4980-8f63-29af71475ec1</guid><dc:creator>alaa</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I just tried P0.27 for Tx and still nothing happens on it. &amp;quot;I&amp;#39;m using an oscilloscope to probe the line&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Alaa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART works on a custom board with nrf52840, but not on the nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/334314?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 10:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29d2246-64b3-4694-9fb3-36d4e4aaaa64</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Alaa,&lt;/p&gt;
&lt;p&gt;Have you checked if the UART pins you use are available on the DK board and that they aren&amp;#39;t routed to any buttons or LEDs (see silkscreen on the backside)? P0.26 and P0.27 are normally available.&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>