<?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>PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57802/pc-to-nrf52832-dk-using-uart-wired</link><description>Hi 
 I am using nRF52832 DK, with SES as IDE on Ubuntu-16.04 OS PC. I want to stream some data from PC to DK. The DK is connected to PC for power supply and programming the chip. So I thought of using a USB to UART converter and connect USB to PC and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Feb 2020 14:58:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57802/pc-to-nrf52832-dk-using-uart-wired" /><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234972?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 14:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62341ae4-93e1-4d8e-b280-5ffc6578d4fd</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;I figured out the issue. I had to run the code on DK first and then run Python Script. Then I am able to see the messages on RTT viewer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234942?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 13:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3964e4f6-6dce-4166-a942-185421253de5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Were you able to view the RTT logs in the debug terminal now? The log should include more information if the program crashed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234584?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 09:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c83fb76-06d6-4692-8157-10b092f254d9</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;I tried using BLE_APP_UART example. When I run the python code to transmit the data via USB, the DK encounters an error. If the python code is halted, the code just runs fine, without any errors, but there is no information from the system. Any idea what&amp;#39;s going on here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234566?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 08:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3832b960-29ac-4283-8e96-424749c5e4a4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Most examples support logging over both UART and RTT, but not all.&amp;nbsp;Maybe the&amp;nbsp;&lt;a title="UART/Serial Port Emulation over BLE" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_nus_eval.html?cp=7_1_4_2_2_25"&gt;UART/Serial Port Emulation over BLE&lt;/a&gt;&amp;nbsp; example in&amp;nbsp; \examples\ble_peripheral\ble_app_uart&amp;nbsp;would be a better starting point for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234558?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 08:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3af1063b-8607-498f-a774-23f36f519f89</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;SO does this mean that I will be able to see UART messages only using RTT. I have checked sdk_config.h. NRF_LOG_BACKEND_RTT_ENABLED option is not there. Should I add it to use RTT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234554?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 07:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9f8da23-7722-44b4-afb7-3cf0ed5064ce</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think it&amp;#39;s possible to connect the Debug terminal in SES to a &amp;quot;COM&amp;quot; port. We only use it for RTT logging.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;// Config settings to enable RTT logging&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/p&gt;
&lt;p&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234515?ContentTypeID=1</link><pubDate>Sat, 15 Feb 2020 08:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c356a0f-41c3-4d85-98e7-7c5cc6110c39</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are no permission issues. I have written a python script to send data through serial port. Here is the Python Code.&lt;pre class="ui-code" data-mode="python"&gt;import serial
ser = serial.Serial(&amp;#39;/dev/ttyACM0&amp;#39;, 115200)  # open serial port
print(ser.name)         # check which port was really used
ser.write(b&amp;#39;Hello&amp;#39;)     # write a string
ser.close()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;On the DK, I am using UART example, found in &amp;lt;SDK_Root&amp;gt;/examples/peripheral/uart/pca10040/blank/ses. I want to see the text &amp;quot;hello&amp;quot; on debug terminal. So, here is the corresponding code for that(am not sure if this is the correct approach).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;main.c file: - 

int main(void)
{
    uint32_t err_code;
    log_init();
    bsp_board_init(BSP_INIT_LEDS);
    
    const app_uart_comm_params_t comm_params =
      {
          RX_PIN_NUMBER,
          TX_PIN_NUMBER,
          RTS_PIN_NUMBER,
          CTS_PIN_NUMBER,
          UART_HWFC,
          false,
#if defined (UART_PRESENT)
          NRF_UART_BAUDRATE_115200
#else
          NRF_UARTE_BAUDRATE_115200
#endif
      };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                         UART_RX_BUF_SIZE,
                         UART_TX_BUF_SIZE,
                         uart_error_handle,
                         APP_IRQ_PRIORITY_LOWEST,
                         err_code);

    APP_ERROR_CHECK(err_code);

#ifndef ENABLE_LOOPBACK_TEST
    //printf(&amp;quot;\r\nUART example started.\r\n&amp;quot;);
    NRF_LOG_INFO(&amp;quot;UART example started&amp;quot;);

    while (true)
    {
        uint8_t cr;
        while (app_uart_get(&amp;amp;cr) != NRF_SUCCESS);
        while (app_uart_put(cr) != NRF_SUCCESS);
        
        /* Custom code START */
        //uart_init();
        NRF_LOG_INFO(&amp;quot;START&amp;quot;); 
        NRF_LOG_INFO(&amp;quot;%s&amp;quot;, cr); 
        
        /* Custom code START */



        if (cr == &amp;#39;q&amp;#39; || cr == &amp;#39;Q&amp;#39;)
        {
            printf(&amp;quot; \r\nExit!\r\n&amp;quot;);

            while (true)
            {
                // Do nothing.
            }
        }
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I just added NRF_LOG_INFO(cr) line, to the available example. When I run the code, I do not see any message in Debug terminal. I am able to see hello message in Putty however.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC to nRF52832 DK using UART(wired)</title><link>https://devzone.nordicsemi.com/thread/234325?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 08:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c922937-33a5-49c3-a666-f679b6c003cc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The Segger chip on the nRF52 DK already includes UART to USB serial bridge (&lt;span&gt;&lt;a title="Virtual COM port" href="https://infocenter.nordicsemi.com/topic/ug_nrf52832_dk/UG/nrf52_DK/vir_com_port.html?cp=4_2_4_4_1"&gt;Virtual COM port&lt;/a&gt;&lt;/span&gt;) which you can use. The serial port should show up as ttyACMx (where x = port number) in /dev/ when you connect the DK to your PC.&lt;/p&gt;
&lt;p&gt;Note: the serial port usually requires root permissions by default. You can change that by installing this package: &lt;a href="https://github.com/NordicSemiconductor/nrf-udev"&gt;https://github.com/NordicSemiconductor/nrf-udev&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>