<?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>LPUART causing deadlock</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74882/lpuart-causing-deadlock</link><description>Hi guys, 
 I am experiencing some issues with the LPUART implementation: it seems that when using the setup with hci_lpuart (with LE Coded PHY) bluetooth connection isn&amp;#39;t stable. Every now and then the whole program stops working either when connecing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jun 2021 11:46:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74882/lpuart-causing-deadlock" /><item><title>RE: LPUART causing deadlock</title><link>https://devzone.nordicsemi.com/thread/316459?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 11:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9c477f-f837-4f65-aef5-0554f06cde07</guid><dc:creator>Chris H</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you very much for answering! It seems to work stable with the version you provided, but anyway I will also try the version with the pullups added.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART causing deadlock</title><link>https://devzone.nordicsemi.com/thread/316303?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 14:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0686e1-f129-45e0-b931-a4277c3d9f93</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Check out this PR as well&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/36366,"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/36366,&lt;/a&gt;&amp;nbsp;which should make LPUART more stable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART causing deadlock</title><link>https://devzone.nordicsemi.com/thread/309649?ContentTypeID=1</link><pubDate>Thu, 13 May 2021 08:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f394c614-364e-494a-8635-8670daf8c9a6</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;the problem is with GPIOTE interrupt level, by default zephyr is using level 5 for it and `&lt;span class="blob-code-inner blob-code-marker"&gt;NRF_DEFAULT_IRQ_PRIORITY&lt;/span&gt;` for others. There is no clear reason for that but it&amp;#39;s just been like this for ages. Low power UART assumes that GPIOTE and UARTE interrupts are on the same level and have no protection mechanisms. There is PR with fixes for that &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/4418"&gt;https://github.com/nrfconnect/sdk-nrf/pull/4418&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can try to apply overlay change in hci_lpuart app &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/4418/commits/4dc8fc024d318c47d7c66abc070a513fff846af6"&gt;https://github.com/nrfconnect/sdk-nrf/pull/4418/commits/4dc8fc024d318c47d7c66abc070a513fff846af6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And similar change in nrf9160ns application: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/4418/commits/267f4410eaecc870e08bc6c1b0cb00b8fd20bc63"&gt;github.com/.../267f4410eaecc870e08bc6c1b0cb00b8fd20bc63&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART causing deadlock</title><link>https://devzone.nordicsemi.com/thread/309021?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 14:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69cc1cc0-903b-4233-861c-8cf973836790</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello Christian,&lt;/p&gt;
&lt;p&gt;There has been some updates to the LPUART driver lately (E.g. &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/4020"&gt;PR #4020&lt;/a&gt;), would you be able to test the latest NCS master and check if the deadlock still happens? If you still encounter the issue, please tell me and I will try to reproduce/investigate it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>