<?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>Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56916/bluetooth-softdevice-high-speed-uart-libuarte</link><description>Hi, 
 
 Currently I’m working on a device which is, on the one side connected to a smartphone via BLE and on the other side to another uC via UART. 
 Therefore, the UART speed is fixed to 1MB/s. For this reason, I must use DMA to get the UART running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Apr 2020 15:50:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56916/bluetooth-softdevice-high-speed-uart-libuarte" /><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/243243?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2020 15:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a183edf7-4f3e-41bd-8bd5-6a61c664c5d7</guid><dc:creator>Paolo D</dc:creator><description>&lt;p&gt;I&amp;#39;m able to reproduce this exact same SoftDevice assert, using SoftDevice S132 v7.0.1 with nRF52832. In my app I was intentionally trying to cause an assert to test my error logging function. Disabling interrupts for too long while the SoftDevice is active causes the 0x000156e0 error consistently. I used the following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;            __disable_irq();
            nrf_delay_ms(1000);
            __enable_irq();
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/231042?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 09:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf325fb-e4c5-4c66-81f4-ddfe04fc9004</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Kilian&lt;/p&gt;
&lt;p&gt;Please check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41215/general-libuarte-questions"&gt;this post&lt;/a&gt;, which elaborates on a few common problems when using libuarte. This should cover most of the things to look out for when merging it together with other examples. Also, what is your priority interrupt in nrf_libuarte_async.c set to? You can try setting this to&amp;nbsp;5 in case it is causing conflicts with the SoftDevice.&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><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/230854?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 12:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc2de6ac-5f4a-4780-8208-c56220dd6ef7</guid><dc:creator>VGKilian</dc:creator><description>&lt;p&gt;Sorry i was wrong. The pc point at 0x00014cbc or 0x000156e0. As far as i know, this should be a part of the SoftDevice.&lt;/p&gt;
&lt;p&gt;Is there any other resource, which is used in both examples?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/230803?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 09:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bfc239a-63c0-4997-a5d1-9c251682d967</guid><dc:creator>VGKilian</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;i have tried Timer2 &amp;amp; RTC2 (NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3)) and Timer2 &amp;amp; Timer3 (NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED,3, 255, 3);).&lt;/p&gt;
&lt;p&gt;Both with the same result.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I start the program with BLE running, everything works fine. If the UART communication starts the error accrues.&lt;/p&gt;
&lt;p&gt;The pc point at nrfx_timer or nrtx_rtc.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Kilian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/230787?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 08:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8902b1e3-421f-46ed-a32a-6ff40f7f0856</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Kilian&lt;/p&gt;
&lt;p&gt;The ble_app_uart example uses Timer1 and runs the SoftDevice which uses RTC0 and Timer0, so you&amp;#39;re probably having trouble because the ble_app_uart and libuarte are now both trying to use Timer1.&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><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/230649?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:732d0145-c265-4e8d-b70a-135fd1f136dc</guid><dc:creator>VGKilian</dc:creator><description>&lt;p&gt;Hi Dmitry and Simonr,&lt;/p&gt;
&lt;p&gt;thanks a lot for your help.&lt;/p&gt;
&lt;p&gt;I tried both of our suggested solutions and it takes me a step further.&lt;/p&gt;
&lt;p&gt;But now the &amp;quot;app_error_fault_handler&amp;quot; function gets called. The address of the pc is located in nrfx_timer.c.&lt;/p&gt;
&lt;p&gt;Could you tell me which timers are used in&amp;nbsp;&lt;span&gt;&amp;ldquo;ble_app_uart&amp;rdquo; and &amp;ldquo;libuarte&amp;rdquo; examples?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use Timer1 and Timer2 for the libuarte.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kilian&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/230618?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cf7f603-d8bc-45f5-b533-2c3729160f1c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Kilian and Dmitry&lt;/p&gt;
&lt;p&gt;The nRF52840 has 3 RTCs so you should be able to use RTC2 as well if you don&amp;#39;t want to follow Dmitry&amp;#39;s advice.&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><item><title>RE: Bluetooth (SoftDevice) + high speed UART (libuarte)</title><link>https://devzone.nordicsemi.com/thread/230545?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 10:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56cb47cf-d08a-405e-8869-e40b720c7024</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;libuarte can use either RTC or TIMER instance:&lt;/p&gt;
&lt;table class="params"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td class="paramname" colspan="1" rowspan="1"&gt;_rtc1_idx&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;RTC instance used for timeout. If set to NRF_LIBUARTE_PERIPHERAL_NOT_USED then TIMER instance is used or app_timer instance if _timer1_idx is also set to NRF_LIBUARTE_PERIPHERAL_NOT_USED.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="paramname" colspan="1" rowspan="1"&gt;_timer1_idx&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;TIMER instance used for timeout. If set to NRF_LIBUARTE_PERIPHERAL_NOT_USED then RTC instance is used or app_timer instance if _rtc1_idx is also set to NRF_LIBUARTE_PERIPHERAL_NOT_USED.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>