<?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>Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040</link><description>I am trying to transfer data from a USB to serial converter board (called board A) to the nrf5 board (called board B). I made the connection over a bread board, the transmitter from board A is connected to pin 06 on board B, it is also at the same time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2019 01:27:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040" /><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198293?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 01:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04995ba6-3025-4c80-ba80-30b2b9e5bb8e</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;The next problem i have:&lt;/p&gt;
&lt;p&gt;it worked once and then i slept the pc and when i opened it again, it did not work any more. But i could see it sending 255 and then 1s. Is there a problem with ttl level?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198292?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 01:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e0628ac-26c4-47b5-8ec8-15f5fe21dd7b</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;Solved:&lt;/p&gt;
&lt;p&gt;Here is the solution:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1- Use pin 3 and 2 and disable the rts and cts&lt;/p&gt;
&lt;pre&gt;static void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = 3, //RX_PIN_NUMBER,
        .tx_pin_no    = 2,//TX_PIN_NUMBER,
//        .rts_pin_no   = 17, //RTS_PIN_NUMBER,
//        .cts_pin_no   = 18, //CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_115200
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif
    };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
}
&lt;/pre&gt;
&lt;p&gt;2- don&amp;#39;t connect any leds because it seems that drawing any amount of rel. current will disable the data transfer&lt;/p&gt;
&lt;p&gt;3- connect board A (serial to usb) to board B (PCA10040)&lt;/p&gt;
&lt;p&gt;Gnd-Gnx&lt;/p&gt;
&lt;p&gt;Rx (board A) - Pin 2 (Board B)&lt;/p&gt;
&lt;p&gt;Tx (board A) - Pin3 (Board B)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4- Install the mac usbto serial port driver&amp;nbsp; (or use Serial app because it has internal drivers but cost 25$)&lt;/p&gt;
&lt;p&gt;My driver was based on this link&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.sengotta.net/signed-mac-os-driver-for-winchiphead-ch340-serial-bridge/"&gt;https://blog.sengotta.net/signed-mac-os-driver-for-winchiphead-ch340-serial-bridge/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;5- Using cool Term connect to your usb-serial port&lt;/p&gt;
&lt;p&gt;6- using segger&lt;/p&gt;
&lt;p&gt;in my main loop i sent 1 and 255 for testing&lt;/p&gt;
&lt;pre&gt;    for (;;)
    {
        idle_state_handle();
               uint32_t err_code = app_uart_put(1);
                if ((err_code != NRF_SUCCESS) &amp;amp;&amp;amp; (err_code != NRF_ERROR_BUSY))
                {
                    NRF_LOG_ERROR(&amp;quot;Failed receiving NUS message. Error 0x%x. &amp;quot;, err_code);
                    APP_ERROR_CHECK(err_code);
                }
                else
                {
                     NRF_LOG_ERROR(&amp;quot;received data&amp;quot;);
                }
            
    }&lt;br /&gt;&lt;br /&gt;7- if you connection is correct, you should see the 1 (byte sent) in cool term&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198278?ContentTypeID=1</link><pubDate>Sun, 14 Jul 2019 15:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae043654-cbe3-443b-bc26-66994b1c08ce</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;Lets rephrase my question. I have the following simple code in the main, based on ble_app_uart. it initializes the uart and writes data to it. First i see UART started on the terminal. Second i want to see these bits. When i connect a led to pin 23 which i used for Tx, i don&amp;#39;t see any thing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = RX_PIN_NUMBER,
        .tx_pin_no    = SER_CON_TX_PIN, //TX_PIN_NUMBER,
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_115200
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif
    };&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;int main(void)
{
    uart_init();
    printf(&amp;quot;\r\nUART started.\r\n&amp;quot;);
    for (;;)
    {
        idle_state_handle();
               uint32_t err_code = app_uart_put(255);
                if ((err_code != NRF_SUCCESS) &amp;amp;&amp;amp; (err_code != NRF_ERROR_BUSY))
                {
                    NRF_LOG_ERROR(&amp;quot;Failed receiving NUS message. Error 0x%x. &amp;quot;, err_code);
                    APP_ERROR_CHECK(err_code);
                }
                else
                {
                     NRF_LOG_ERROR(&amp;quot;received data&amp;quot;);
                }
            
    }
}


&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198251?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 22:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a978cd00-cb6d-40ed-9135-bef035e4a7ae</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;i have been working with this issue now 1 week, and investigated many things, but i can not input data externally. I need&amp;nbsp; a step by step guide. Guys, if you made it previously, please assist me how to do it.&amp;nbsp; I changed the pin assignments for RX and TX but it does not make any change&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198250?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 22:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6198af3f-61e5-407e-800c-a61f9a2ab3b0</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;I made this. But when i change the pins, nothing is getting into action. I can not disable the on board usb to uart and input external serial data. It seems that the pins need to be changed in many places. I need help or a step by step to solve it. I am now 3 days on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198223?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 15:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c369e09d-85d5-4524-9411-4ef1b2be1d23</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I think you need to go back to the unmodified UART example in the SDK.&lt;/p&gt;
&lt;p&gt;Spend time with the debugger, a terminal, and an oscilloscope exploring that, and understanding how it works.&lt;/p&gt;
&lt;p&gt;Use the oscilloscope to observe the data between the nRF52 to the on-board USB-to-UART.&lt;/p&gt;
&lt;p&gt;Once you have this thoroughly understood, then - and only then - move on to&amp;nbsp;modify that example to talk to a separate USB-to-UART converter.&lt;/p&gt;
&lt;p&gt;Once you have that working, then you can move on to getting 2 boards to talk to each other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198219?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 14:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:504b1dcb-89a4-4014-9c05-eb9c5d2e1b29</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;how can I run the external serial port&amp;nbsp;? these stuff are not clear even there is no example. should I use HWFC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198218?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 14:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4051729e-7f19-4939-ad00-463f70a438c9</guid><dc:creator>awneil</dc:creator><description>[quote userid="81584" url="~/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040/198213"]the schematics is not clear[/quote]
&lt;p&gt;In what way(s), exactly, is it unclear?&lt;/p&gt;
[quote userid="81584" url="~/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040/198213"]is there any internal chip configuration[/quote]
&lt;p&gt;The firmware running in the chip does the configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198216?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 14:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b54788-86c2-4e45-ae50-40dadb044f4c</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;what is could reach right now, when I press a button I come to this line&lt;/p&gt;
&lt;pre&gt;    NRF_BREAKPOINT_COND;
    // On assert, the system can only recover with a reset.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198215?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 14:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3c79bb-6e78-463e-930c-75f52c6608c7</guid><dc:creator>awneil</dc:creator><description>[quote userid="81584" url="~/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040/198213"]the schematics is not clear[/quote]
&lt;p&gt;In what way(s), exactly, is it &amp;quot;not clear&amp;quot; ?&lt;/p&gt;
[quote userid="81584" url="~/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040/198213"]is there any internal chip configuration[/quote]
&lt;p&gt;The firmware in the chip configures it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198213?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 14:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6af15765-39c3-466b-aec9-9a8902d8ff86</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;the schematics is not clear .. is there any internal chip configuration on the mcu level?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198200?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 13:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac51fec-f963-43c0-81ac-cb79a805fa15</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;How did you hope to get anywhere without the schematics?!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;On the Dev Kit Product page, they are under &amp;#39;Downloads&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198180?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 13:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60037f79-eee7-43ac-856b-e9612e8c4201</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;I used now pin 23 and 24 but still it does not work.&lt;/p&gt;
&lt;p&gt;I get the system can only recover with a reset, do you know how can I reset the Segger?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198171?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 12:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:900bd42f-4201-4e38-9bde-d347e2bec4a2</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;do you know where is the schematics? I don&amp;#39;t have it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198133?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 11:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29259590-5ade-46dd-a957-0c9dea6481a6</guid><dc:creator>awneil</dc:creator><description>[quote userid="81584" url="~/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040/198129"]I see in pca10040.h[/quote]
&lt;p&gt;So look where those definitions get used - that&amp;#39;s where you need to change to your own settings.&lt;/p&gt;
&lt;p&gt;You still need to check that any other pins you might want to choose are not &amp;quot;occupied&amp;quot; by other things on the board.&lt;/p&gt;
&lt;p&gt;I find the easiest way is to look at the &lt;strong&gt;schematics&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;But the information is also in the &lt;strong&gt;User Guide&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198131?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 11:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c078005c-4656-4b2f-8959-50f42ba1afb4</guid><dc:creator>RoyCreemers</dc:creator><description>&lt;p&gt;Does not really mather, as long as you make sure that&lt;/p&gt;
&lt;p&gt;A.RX &amp;lt;--&amp;gt; B.TX&lt;/p&gt;
&lt;p&gt;A.TX &amp;lt;--&amp;gt; B.RX&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198129?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 11:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c28965c-9da3-44f3-9316-88370c8448e6</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;which pins should I use?&lt;/p&gt;
&lt;p&gt;I see in pca10040.h the following:&lt;/p&gt;
&lt;pre&gt;#define RX_PIN_NUMBER  8
#define TX_PIN_NUMBER  6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198127?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 11:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4aa0598-f8dc-45e1-ab03-1ce007e3c3c0</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;how can I use different pins?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198119?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 10:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5df1f33d-e8fb-46b2-aa14-54f54c899661</guid><dc:creator>RoyCreemers</dc:creator><description>&lt;p&gt;In case p0.6 is configured as TXD, you have connected it incorrectly. RXD on board A must be connected to TXD of board B&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198117?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 10:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3445602-8385-4495-8a19-f7755d6606d1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes - those are the pins used by the on-board USB-to-UART.&lt;/p&gt;
&lt;p&gt;So, if you&amp;#39;re trying to connect an off-board device, you are either going to have to disconnect that, or use different pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198115?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 10:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d45ef91-508f-48b8-9740-e255dd625470</guid><dc:creator>sherif</dc:creator><description>&lt;p&gt;I know it has an on-board-usb-to serial converted but the target here is to transfer data from another device to this board. As far as I understand, when I checked the board pin assignment it says in page 8, p0.06 is TXD and pin 0.08 RXD. Please correct me if I misunderstood it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.2.pdf"&gt;infocenter.nordicsemi.com/.../nRF52_DK_User_Guide_v1.2.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART Data to development board PCA10040</title><link>https://devzone.nordicsemi.com/thread/198110?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 10:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3463866-0a05-4c60-91a4-315f6e114720</guid><dc:creator>awneil</dc:creator><description>[quote userid="81584" url="~/f/nordic-q-a/49703/connecting-uart-data-to-development-board-pca10040"]connected to pin 06 on board B[/quote]
&lt;p&gt;Have you checked carefully that there is nothing on the board already &amp;quot;occupying&amp;quot; that pin?&lt;/p&gt;
&lt;p&gt;In particular, remember that the PCA10040 has an on-board USB-to-Serial converter connected to the nRF52 chip...&lt;/p&gt;
&lt;p&gt;Check the User Guide &amp;amp; Schematics ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>