<?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>[nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80361/nrf52811-uart-connection</link><description>Hello, I am working with an nRF52811 and I am trying to get it to send data via UART with a USB connection. I tried using the USB CDC ACM module, but it appears to only work for the nrf52840 model. What is the best way to achieve this and is there any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Oct 2021 13:50:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80361/nrf52811-uart-connection" /><item><title>RE: [nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/thread/333090?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 13:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eabc96cf-1adf-441d-aca3-79eadeae66c2</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;So the nRF52811 will be transmitting the logs on Pin 6. Is this pin connected to the nRF52840 and is that relayed onwards to your PC?&lt;/p&gt;
&lt;p&gt;It would be best if you could measure directly on the TX pin and verify if you can see data being sent or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/thread/333081?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 13:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c6969b-06e9-4321-a2c2-2c02ff2829c4</guid><dc:creator>slid_daaviet</dc:creator><description>&lt;p&gt;I have the same configuration. &lt;br /&gt;Actually, the nRF52811 is connected to an nRF52840 that is used as a bridge (for flashing the code and reading data), which is turn is connected to the PC via a usb cable. When I plug the usb cable, a serial port is opened and I am reading that port.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/thread/333043?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 12:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aedef22-1a07-454c-aade-34e34953ae7c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes mostly, this should be included:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
//==========================================================
#ifndef NRF_LOG_BACKEND_UART_ENABLED
#define NRF_LOG_BACKEND_UART_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin 
#ifndef NRF_LOG_BACKEND_UART_TX_PIN
#define NRF_LOG_BACKEND_UART_TX_PIN 6
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_UART_BAUDRATE  - Default Baudrate
 
// &amp;lt;323584=&amp;gt; 1200 baud 
// &amp;lt;643072=&amp;gt; 2400 baud 
// &amp;lt;1290240=&amp;gt; 4800 baud 
// &amp;lt;2576384=&amp;gt; 9600 baud 
// &amp;lt;3862528=&amp;gt; 14400 baud 
// &amp;lt;5152768=&amp;gt; 19200 baud 
// &amp;lt;7716864=&amp;gt; 28800 baud 
// &amp;lt;10289152=&amp;gt; 38400 baud 
// &amp;lt;15400960=&amp;gt; 57600 baud 
// &amp;lt;20615168=&amp;gt; 76800 baud 
// &amp;lt;30801920=&amp;gt; 115200 baud 
// &amp;lt;61865984=&amp;gt; 230400 baud 
// &amp;lt;67108864=&amp;gt; 250000 baud 
// &amp;lt;121634816=&amp;gt; 460800 baud 
// &amp;lt;251658240=&amp;gt; 921600 baud 
// &amp;lt;268435456=&amp;gt; 1000000 baud 

#ifndef NRF_LOG_BACKEND_UART_BAUDRATE
#define NRF_LOG_BACKEND_UART_BAUDRATE 30801920
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings. 
// &amp;lt;i&amp;gt; Size of the buffer is a trade-off between RAM usage and processing.
// &amp;lt;i&amp;gt; if buffer is smaller then strings will often be fragmented.
// &amp;lt;i&amp;gt; It is recommended to use size which will fit typical log and only the
// &amp;lt;i&amp;gt; longer one will be fragmented.

#ifndef NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE
#define NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE 64
#endif

// &amp;lt;/e&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you measuring on the correct pin?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/thread/333000?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 11:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:939841fb-caf8-49be-ad7b-493a208c76da</guid><dc:creator>slid_daaviet</dc:creator><description>&lt;p&gt;For now, one way communication from the nRF would sufficient. Is the switch from RTT to UART made through a define or a function call? I can&amp;#39;t find that here:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Flib_nrf_log.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I defined NRF_LOG_BACKEND_UART_ENABLED to 1 and NRF_LOG_BACKEND_RTT_ENABLED to 0. That should do it, right? However I send a log, but it doesn&amp;#39;t appear when reading the serial port. Now, it&amp;#39;s probably a different issue, maybe incorrect log initialization...&lt;br /&gt;When I send the logs via RTT it works, but via UART, it dosen&amp;#39;t seem to be sending...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/thread/332990?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 10:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b696dc6-715c-4ca0-bbf3-2eaf040b0a7f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="slid_daaviet"]Btw, my motivation for this is that I want to communicate with the nRF52811 via UART instead of the proprietary RTT (which is working atm).&lt;br /&gt;[/quote]
&lt;p&gt;Are you referring to a one way communication such as logging? In that case you can just switch the logger backend to UART instead of RTT.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/thread/332987?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 10:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e439c60-58ae-422b-a7f9-bf7f8249a8d7</guid><dc:creator>slid_daaviet</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank your for the reply. Is there any documentation or examples that could help with that? Also, I was now trying to adapt the uart example (examples/peripherals/uart), instead of the usb cdc acm example. Is this a viable approach?&lt;br /&gt;Btw, my motivation for this is that I want to communicate with the nRF52811 via UART instead of the proprietary RTT (which is working atm).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52811] UART connection</title><link>https://devzone.nordicsemi.com/thread/332957?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 08:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd41dd29-fc93-4371-93cb-11d6aa9d7fc7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF52811 does not have an USB peripheral as the nRF52840. You will therefore have to use a bridge of some sorts that can convert USB signals to UART.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>