<?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>the uart examle doesn&amp;#39;t work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60166/the-uart-examle-doesn-t-work-for-all-pins-for-most-pins-i-tried-actually</link><description>Hi. 
 I have nrf52840-dk board. i tried the UART example from the peripherals directory. it works with the default, if i open a console on /dev/ttyACM0 and on /dev/ttyUSB0 i can see the &amp;quot;start&amp;quot; message and pressing a key echos it back. /dev/ttyUSB0 is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Apr 2020 18:08:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60166/the-uart-examle-doesn-t-work-for-all-pins-for-most-pins-i-tried-actually" /><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245309?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 18:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22049397-0ac7-409e-9cb9-491090d652dd</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;yes, any gpio pins. &amp;nbsp;Depending on which nRF52 series for example on the 832 &amp;nbsp;pins 0.00 &amp;amp; 0.01 are either crystal or gpio, p0.21 reset or gpio. p0.09 &amp;amp; p0.10 NFC or gpio. &amp;nbsp;If those pins are configured as gpio then yes you can use them too. &lt;strong&gt;Any&lt;/strong&gt; &lt;strong&gt;GPIO&lt;/strong&gt;&amp;nbsp;pins, not any pins&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245291?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 15:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ffc54da-a9a4-4654-a083-95edc3e909b9</guid><dc:creator>Eyal</dc:creator><description>&lt;p&gt;ok, taking a look on user manual i see the point. the pins i used are using for external flash memory. it&amp;#39;s not marked on the board itself :-\ so from pin 0.27 i have several options i see. ok.&lt;br /&gt;You sat on nrf52850-mini basically every pin can be used for serial ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245251?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 13:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12b4077-e338-4474-8dc5-b711cf85438f</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Yes you can use any pins except those already connected to something on the DK. &amp;nbsp;If you use it on a breakout board for example that has all the pins available and not connected anything then yes any pins can be used. Except NFC, you need to disable NFC function in order to use it as gpio. &amp;nbsp;So again I repeat, any gpio pin can be used as UART, I2C or SPI. Pleas read the datasheet. &amp;nbsp;The pin 9 &amp;amp; 10 of NFC are described&amp;nbsp;&amp;nbsp;in there.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245172?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 09:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ce86584-a35d-483b-a874-0dae5c3098c8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You can use any pins your application does not use and you need the below converter to convert uart to RS232 data as below&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-aa1982d40d354aa39f3ce6458884db9b/pastedimage1587115122398v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you do not have this converter then use the pins assigned on DK 08 and 06 which will do the conversion for you through the USB COM port emulation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245167?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 09:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d689c3e9-1939-45de-95f0-4ac8c446eb8e</guid><dc:creator>Eyal</dc:creator><description>&lt;p&gt;Thanks for that :-) but that&amp;#39;s not what i meant.&lt;br /&gt;I mean indedd 06 and 08 works just fine, however, when i&amp;#39;m using other pins i&amp;#39;m not using /dev/ttyACM0, i have a usb TTL (serial to usb) that is connected to my pc using usb and to the DK board on the other side. like i wrote in the original post.&lt;br /&gt;&lt;br /&gt;let&amp;#39;s drop 9,10 , i know some ports are used for leds\xtel\buttons etc....&lt;br /&gt;as far as i know all of them were supposed to be printed on the back of the DK board, apparently they are not...&lt;br /&gt;So i&amp;#39;ll rephrase.&lt;br /&gt;i want to communicate between my DK board and a usb to serial board connected to my PC.&lt;br /&gt;I want to use the uart example and maybe replace the printf with a function that outputs everything to the uarts. which pins beside 8 and 6 i can use without&amp;nbsp; changing&amp;nbsp;configuration in sdk_config.&lt;/p&gt;
&lt;p&gt;hops it&amp;nbsp;clarifies my question (it is device to device comm)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245159?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 08:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba2b91b-a574-4b52-82cf-17bc662e759b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;OK, I think we both were on different page in understanding the problem.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Just having UART communication between two devices you can use any pins from the nRF52840 chip.&lt;/li&gt;
&lt;li&gt;On DK, for simplicity and to make your evaluation and prototyping easy, we have assigned few GPIO pins to certain features. Like few GPIOs are connected to buttons few of them to LEDS and few as you see on the back side of the DK. This settings are only for the DK and on your final product you can choose different pins.&lt;/li&gt;
&lt;li&gt;On nRF52840 DK, pin 09 and 10 are connected to NFC and as I mentioned you need to define the macro in your project and you can still use those pins for any other peripehral. In your case, after defining&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS , you can use pin 09 and 10 for uarte0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;If you want to see your uarte0 data on PC, then the pins needs to be mapped into a COM port on your PC. And this can only happen with the CDC driver which is inside the Segger chip on the DK. The Segger chip listens to the pre allocated TX/RX/RTS/CTS pins on the DK and converts them into a COM port CDC data that your PC can listen in any terminal.&lt;/li&gt;
&lt;li&gt;The UART data is NOT automatically converted into&amp;nbsp;&lt;span&gt;/dev/ttyACM0 or&amp;nbsp;/dev/ttyUSB0 mapping on your linux machine without the segger chip showing up as a COM device.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;on your final product, most likely you will not have the segger, debugger chip. That means all uarte0 data on your final product, you will not be able to see it directly on the PC terminal unless you connect to some COM adapter.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;I think the confusion that arises for you is that you think you can use any pins for uarte. Which is correct on your final product.&amp;nbsp;To be able to automatically have COM port mapped on your PC, we assigned few UART pins that the SEGGER chip listens to and converts them to CDC UART data that your PC maps onto a COM port.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope that this is a bit clearer.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245149?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 08:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89f2290a-ec8c-4e4d-8cfe-b3a8209cdc21</guid><dc:creator>Eyal</dc:creator><description>&lt;p&gt;you either misunderstand my question or contradicting other posts in the forum i&amp;#39;m affraid.&lt;br /&gt;Yes the official pins for rx\tx for uart0\uarte0 are 6 and 8, but it was stated that any other pin that does not have anothe usage (like xtel, nfc and the like) can be used. also the demo that uses both uart0 and uarte1 uses pins named ARDUINO_SCL and another ARDUINO_XXX pin meaning it is possibe.&lt;br /&gt;I was sure 9,10 were free, you explained that they were not, ok, even though it&amp;#39;s NOT printed on the back of the DK board.&lt;br /&gt;So i&amp;#39;m asking which pins can be used for uarte0\1 without changing any configuration on the DK board, again there is an example that uses other pins, only those pins are free ? if so why is it stated that any other pin can be used ? several pins are marked on the back of the board as DIOs so if it uses as DIO can&amp;#39;t i use it for the uart or do i need to setup something in the sdk_config to disable it as DIO as well ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245138?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 07:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16b97494-cd92-4ef6-b039-0a5d76c0680b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Please turn your DK around and there are markings for preallocated pins for few things. For UART you can see pins 05, 06, 07, 08&amp;nbsp; should be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245053?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 14:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:debc1824-8c27-4727-adfd-a7ceb1c4ba1c</guid><dc:creator>Eyal</dc:creator><description>&lt;p&gt;thanks you!&lt;br /&gt;that goes for 9 and 10, what about 21,20 ? 17, 19 ? which pins ARE free to use with the uart ?? it&amp;#39;s hard to get a strait answer for that here in the forum.... in the PDK it doesn&amp;#39;t state anything regarding 9,10. that&amp;#39;s why i assumed they are free.&lt;br /&gt;where can i get a normal list of free pins ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/245050?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 14:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaec56ec-5c17-499e-b3be-6535284ad88e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;pin 9 and 10 are connected to NFC on the DK. If you need to use those pins as generic GPIO then you need to set&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS&amp;nbsp;in your preprocessor defines.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please check the link &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20640/cannot-get-p0-09-to-operate-as-a-gpio"&gt;here &lt;/a&gt;to understand more.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the uart examle doesn't work for all pins, for most pins i tried actually.</title><link>https://devzone.nordicsemi.com/thread/244810?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 18:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:840d7ab6-9591-4012-8b55-720c7a387a39</guid><dc:creator>Eyal</dc:creator><description>&lt;p&gt;Did anyone tried to reproduce ? it&amp;#39;s really easy, take the periphals\uart example and change the pin numbers to the ones i wrote and see it doesn&amp;#39;twork, unfortunately i don&amp;#39;t have a logic analyzer to be sure nothing passes on the wire but i can see the TTL works and doesn&amp;#39;t see any output or input.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>