<?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>nrf_drv_uart_tx silently fails on UARTE1 with SDK15</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49089/nrf_drv_uart_tx-silently-fails-on-uarte1-with-sdk15</link><description>Hi, 
 I&amp;#39;ve got some code (at https://github.com/espruino/Espruino/blob/master/targets/nrf5x/jshardware.c#L1201-L1318 ) where I use nrf_drv_uart to access the UART. I don&amp;#39;t use nrf_serial because my application has its own IO buffering that I want to use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2019 11:20:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49089/nrf_drv_uart_tx-silently-fails-on-uarte1-with-sdk15" /><item><title>RE: nrf_drv_uart_tx silently fails on UARTE1 with SDK15</title><link>https://devzone.nordicsemi.com/thread/199236?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 11:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8735e33c-fcf4-4b1d-ab4e-628aa6e722b5</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;I just looked through the register states and I found that UART0 was getting the pin registers set the same as UART1 due to a mistake I&amp;#39;d made - it looks like somehow that was causing the behaviour I was seeing as it&amp;#39;s working fine after fixing that.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_uart_tx silently fails on UARTE1 with SDK15</title><link>https://devzone.nordicsemi.com/thread/198780?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 15:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c51024-c28f-4b1d-9519-2ca265b7d131</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;Do I understand you correctly that the first transfer will generate a&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_DRV_UART_EVT_TX_DONE in&amp;nbsp;&lt;/span&gt;&lt;span&gt;uart_event_handle, and you start subsequent&amp;nbsp;transfers from here?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, that&amp;#39;s correct. It calls the exact same&amp;nbsp;uart_starttx code each time, and that all works great for UART0, but UART1 behaves differently for some reason.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t have the register states handy but I&amp;#39;ll try and post them up over the next few days - thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_uart_tx silently fails on UARTE1 with SDK15</title><link>https://devzone.nordicsemi.com/thread/198768?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 15:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fb7681e-25a4-4015-b28f-469da8170a1b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do I understand you correctly that the first transfer will generate a&amp;nbsp;&lt;span&gt;NRF_DRV_UART_EVT_TX_DONE in &lt;/span&gt;&lt;span&gt;uart_event_handle, and you start subsequent&amp;nbsp;transfers from here?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tested starting subsequent transfers from other parts of the code? I would recommend that you always check the error codes from nrf_drv_uart calls.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you provide the state of the registers in UARTE1 peripheral when this issue occurs?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_uart_tx silently fails on UARTE1 with SDK15</title><link>https://devzone.nordicsemi.com/thread/197731?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 08:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:195c36ab-9ea3-40e5-bcd3-cc48d1182a83</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;`&lt;span&gt;uart_starttx` doesn&amp;#39;t return anything, but it does call `nrf_drv_uart_tx`. In the code that&amp;#39;s posted I don&amp;#39;t check the error, but before posting I did modify my version slightly to check it, and as I mentioned in my post there were never any error codes returned.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or did you mean something else?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_uart_tx silently fails on UARTE1 with SDK15</title><link>https://devzone.nordicsemi.com/thread/197425?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 14:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3093c4ae-fc9b-4081-9f39-17d4ded88886</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see that you actually check if the function &lt;span&gt;uart_starttx()&amp;nbsp;&lt;/span&gt;returns an error?&amp;nbsp;&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>