<?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>nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41334/nrf51-s130-sdk12-3-uart-how-to-allowing-log-nrf_log_init-for-tx-in-parallel-with-app_fifo_init-app_uart_fifo_init-for-rtx</link><description>Hallo all 
 I have an appliation using the LOG for TX output to uart, 
 I want to maintain this code but to add RX based on the app_fifo_init, 
 how can they coexist ? 
 thanks 
 Eran</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Dec 2018 13:13:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41334/nrf51-s130-sdk12-3-uart-how-to-allowing-log-nrf_log_init-for-tx-in-parallel-with-app_fifo_init-app_uart_fifo_init-for-rtx" /><item><title>RE: nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/thread/161864?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 13:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6fa84d-078b-481e-9580-85d28ac98733</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;yes, but I still don&amp;#39;t know how to combine NRF_LOG with the uart_fifo -rx .&lt;/p&gt;
&lt;p&gt;could you please comment on that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/thread/161388?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 10:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ea89a2c-3291-43a1-9734-ea7788b52985</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;good to know, hopefully now the transaction go smooth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/thread/161303?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 20:11:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701470f5-0dd4-4182-a7a0-d79e3b59d109</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Thanks Susheel,&lt;/p&gt;
&lt;p&gt;Yes , apparently they were also&amp;nbsp;conflicted with&amp;nbsp;other pins on the programming connector..&lt;/p&gt;
&lt;p&gt;Thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/thread/161173?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 11:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec83d3e-61b0-4ed3-bfb5-d53ac56d0678</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;&lt;img height="96" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-299db751a2324c67943a7bf597d75fbd/pastedimage1544528203549v1.png" width="627" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The documentation tells you that this occurs when there is error detected on the RXD line.&lt;/p&gt;
&lt;p&gt;Are you sure that on your custom board the pin numbers you selected are properly connected to the peer UART pins and are NOT used by anything else? (i.e, and their state is not controlled by any other external circuitry?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/thread/160830?ContentTypeID=1</link><pubDate>Sat, 08 Dec 2018 11:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ea3d701-fca7-44ed-922a-2d3757f63c17</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;I&amp;#39;ve added a stack view of the error&lt;/p&gt;
&lt;p&gt;the right call stack is after the error occurred , on the 5 charachter , the left call stack is at the first charachter sent by the printf (no error at that point)&lt;/p&gt;
&lt;p&gt;after the 4th the printf invokes a UART0_IRQHandler with - a uart error interrupt&lt;/p&gt;
&lt;p&gt;That does not occur on the NRF51 DK only on my own custome hardware&lt;/p&gt;
&lt;p&gt;I would really appreciate any help from you guys&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Eran&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1544267604843v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/thread/160800?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 18:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff5685b5-435f-4398-971b-5d7c3f1fe9ea</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;&lt;em&gt;basically I receive a :&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;NRF_UART_INT_MASK_ERROR&lt;/em&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Error detection interrupt.&lt;/p&gt;
&lt;p&gt;when trying to use printf..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 s130 sdk12.3 , uart, how to Allowing LOG (NRF_LOG_INIT) for TX in parallel with app_fifo_init (APP_UART_FIFO_INIT) for RTX</title><link>https://devzone.nordicsemi.com/thread/160754?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 13:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52ede544-62f3-456b-980e-1a43d16b0550</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Hi - Update&lt;/p&gt;
&lt;p&gt;I have initialized&amp;nbsp;as the ble_uart example (&lt;em&gt;uart_init()) ,&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;and than used printf, this has worked perfectly on the my NRF51_DK, but not on my custom-made hardware (the same hardware i had success with using NRF_LOG with) , the only difference is that my hw is nrf51822_xxaa (and the NRF51_DK is nrf51422xxac)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;it fails directly after the second command which is the printf,&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I&amp;#39;ve added the screenshot of where the stack goes&amp;nbsp; ,&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;em&gt;-------------------------------------&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#define app_trace_log printf&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;int main(void)&lt;br /&gt;{ &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt; uart_init(); &lt;br /&gt; &lt;br /&gt; app_trace_log(&amp;quot;\r\n[MAIN]: init \r\n&amp;quot;);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;----------------------------------&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1544189678659v3.png" alt=" " /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1544189794938v6.png" alt=" " /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;static void uart_init(void)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{&lt;/em&gt;&lt;br /&gt;&lt;em&gt; uint32_t err_code;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; const app_uart_comm_params_t comm_params =&lt;/em&gt;&lt;br /&gt;&lt;em&gt; {&lt;/em&gt;&lt;br /&gt;&lt;em&gt; NRF_LOG_BACKEND_SERIAL_UART_RX_PIN,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; NRF_LOG_BACKEND_SERIAL_UART_TX_PIN,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; APP_UART_FLOW_CONTROL_DISABLED,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; false,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; UART_BAUDRATE_BAUDRATE_Baud115200&lt;/em&gt;&lt;br /&gt;&lt;em&gt; };&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;APP_UART_FIFO_INIT( &amp;amp;comm_params,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; UART_RX_BUF_SIZE,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; UART_TX_BUF_SIZE,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; uart_event_handle,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; APP_IRQ_PRIORITY_LOWEST,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; err_code);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; APP_ERROR_CHECK(err_code);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>