<?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>Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74843/sample-uart-code-to-use-p0-17-and-p0-19-that-connects-to-a-microchip-board-saml10</link><description>Dear Sir/Madam 
 We are planning to use P0.17 (RXD ) and P0.19 (TXD) as serial communication port connecting to Microchip SAM L10 Xplained Pro - Dm320204. I wonder if there is any sample code or UART driver available for nRF52832? 
 Thanks 
 Victor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jun 2021 10:41:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74843/sample-uart-code-to-use-p0-17-and-p0-19-that-connects-to-a-microchip-board-saml10" /><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/314171?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 10:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcafba7c-63a1-448a-9123-45efa14a9733</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you connect TX pin from nRF to RX pin of external MCU, and RX pin from nRF to TX pin of external MCU? Are you using the same UART configurations (baudrate, flow control, stop/parity bits, etc) on both sides?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/309892?ContentTypeID=1</link><pubDate>Sun, 16 May 2021 04:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33d383cc-8d7f-4369-a764-7006b30f9aec</guid><dc:creator>windychicago</dc:creator><description>&lt;p&gt;As a test, I changed P0.06 and P0.08 to P0.23 &amp;amp; P0.24, which were used for application sample code. But not work.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/309887?ContentTypeID=1</link><pubDate>Sat, 15 May 2021 15:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1306d171-e3a9-4343-b175-ddb0638b21b3</guid><dc:creator>windychicago</dc:creator><description>&lt;p&gt;I tried both UART and libUARTE samples that wired with RX P0.06 and TX P0.08 to another MCU, which are used for the debug console. Interesting thing is the data sent from another MCU received and appears to the &lt;span&gt;terminal emulator PuTTY. Can UART to another MCU share the same PINS with debug console&amp;nbsp;&amp;nbsp;terminal emulator PuTTY?&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/309477?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 11:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f030f61-a23e-4be6-a853-1e9fd13404da</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The serialization solution shows how one board can control the softdevice/BLE stack on another device over a serial interface. This is used in applications where you have a one MCU for the application and another MCU running the radio protocol. If you only want to communicate between two devices over UART interface, there is no need to use serialization, then UART/libUARTE examples are better starting points.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/309335?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 20:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfaf52e7-750d-4df3-ba05-9afe7d5852f5</guid><dc:creator>windychicago</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;I tried&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf51_setups_serialization.html#serialization_hardware_uart"&gt;serialization solution examples&lt;/a&gt;&amp;nbsp;you mentioned. Connected the two nRF52 development boards as in the instruction of&amp;nbsp;serialization hardware uart. , which is very clear.&amp;nbsp; &amp;nbsp;Serialization software setup installation are easy to follow too. However, after install Heart Rate application on app board and&amp;nbsp;serialized example project onto connectivity board, then I don&amp;#39;t know what &amp;amp; where to look the logs or activity. I used RTT to connect to application board, and no RX/TX activities.&amp;nbsp; I assume this example will show user how two boards can communicate each other via UART with PINS connected, right?&amp;nbsp; &amp;nbsp;Further info will be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Victor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/308875?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 07:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:126e773e-04bf-4cce-bac3-f3d2613cb424</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The LIBUARTE example uses the default UART pin configurations from the board header file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//From main.c

nrf_libuarte_async_config_t nrf_libuarte_async_config = {
        .tx_pin     = TX_PIN_NUMBER,
        .rx_pin     = RX_PIN_NUMBER,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//From pca10040.h

#define RX_PIN_NUMBER  8
#define TX_PIN_NUMBER  6&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can change the pin configurations directly in main.c, either by passing the GPIO numbers directly, or by defining new symbols.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;SER_APP_* defines are used by the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf51_setups_serialization.html#serialization_hardware_uart"&gt;serialization solution examples&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/308818?ContentTypeID=1</link><pubDate>Sat, 08 May 2021 02:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09eee7c4-ed72-430a-ac4d-6516859c9deb</guid><dc:creator>windychicago</dc:creator><description>&lt;p&gt;I found following code in file pca10040.h&lt;/p&gt;
&lt;p&gt;// serialization APPLICATION board - temp. setup for running serialized MEMU tests&lt;br /&gt;#define SER_APP_RX_PIN 23 // UART RX pin number.&lt;br /&gt;#define SER_APP_TX_PIN 24 // UART TX pin number.&lt;br /&gt;#define SER_APP_CTS_PIN 2 // UART Clear To Send pin number.&lt;br /&gt;#define SER_APP_RTS_PIN 25 // UART Request To Send pin number.&lt;/p&gt;
&lt;p&gt;However, when I search the entire solution, no where uses it.&amp;nbsp; Is there other place define them?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/308799?ContentTypeID=1</link><pubDate>Fri, 07 May 2021 17:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c55d34-ad0c-41b0-919f-8d7a351b2c9e</guid><dc:creator>windychicago</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;I compiled &amp;amp; ran the&amp;nbsp;&lt;a title="Libuarte Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/libuarte_example.html?cp=7_1_4_6_17"&gt;Libuarte Example&lt;/a&gt;&amp;nbsp;successfully. Will take your&amp;nbsp;recommendation&amp;nbsp;to use UARTE.&amp;nbsp; Thanks.&lt;/p&gt;
&lt;p&gt;Which file(s) contains the pin configuration? Any advice will be appreciated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Victor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample UART code to use P0.17 and P0.19 that connects to a Microchip board (SAML10)</title><link>https://devzone.nordicsemi.com/thread/308774?ContentTypeID=1</link><pubDate>Fri, 07 May 2021 14:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b21b8d49-491a-4f81-a687-55fb13d1b444</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are multiple UART examples in the SDK, but none of these uses the UART driver directly.&lt;/p&gt;
&lt;p&gt;You can chose from the following examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a title="UART Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/uart_example.html?cp=7_1_4_6_48"&gt;UART Example&lt;/a&gt;&amp;nbsp;- uses app_uart library&lt;/li&gt;
&lt;li&gt;&lt;a title="Libuarte Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/libuarte_example.html?cp=7_1_4_6_17"&gt;Libuarte Example&lt;/a&gt;&amp;nbsp;- Uses&amp;nbsp;&lt;a title="Libuarte - advanced UARTE driver" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_libuarte.html?cp=7_1_3_28"&gt;Libuarte - advanced UARTE driver&lt;/a&gt;&amp;nbsp;library.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are planning to send/receiving large amounts of data, I would highly recommend that you use the last example/library.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The pin configuration can be set in the examples.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>