<?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>Use libuarte together with SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67204/use-libuarte-together-with-softdevice</link><description>Hello, guys. 
 We want to use libuarte - advanced UARTE driver in our current application developed for nRF52840 with SDK 17.0.2. 
 We can successfully run libuarte example located under \examples\peripheral\libuarte . However, the trouble comes when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Feb 2021 06:45:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67204/use-libuarte-together-with-softdevice" /><item><title>RE: Use libuarte together with SoftDevice</title><link>https://devzone.nordicsemi.com/thread/295486?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 06:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89bc0f22-9814-4be3-9103-30b7e681d9e2</guid><dc:creator>RixtronixLAB</dc:creator><description>&lt;p&gt;I got : &lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; hardfault: HARD FAULT at 0x00017FB8&lt;br /&gt;&lt;br /&gt;&amp;lt;error&amp;gt; hardfault:&amp;nbsp;&amp;nbsp; R0:&amp;nbsp; 0x20001064&amp;nbsp; R1:&amp;nbsp; 0x39000000&amp;nbsp; R2:&amp;nbsp; 0x00000010&amp;nbsp; R3:&amp;nbsp; 0x0000000F&lt;br /&gt;&lt;br /&gt;&amp;lt;error&amp;gt; hardfault:&amp;nbsp;&amp;nbsp; R12: 0x20000E08&amp;nbsp; LR:&amp;nbsp; 0x0001E39F&amp;nbsp; PSR: 0x21000029&lt;br /&gt;&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Cause: Data bus error (PC value stacked for the exception return points to the instruction that caused the fault).&lt;br /&gt;&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Bus Fault Address: 0x39000000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use libuarte together with SoftDevice</title><link>https://devzone.nordicsemi.com/thread/295485?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 06:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0fa5895-dc4e-4df8-bf2b-011179d53d5e</guid><dc:creator>RixtronixLAB</dc:creator><description>&lt;p&gt;can we use NRF_LOG_INFO( ) with this configuration above ? thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use libuarte together with SoftDevice</title><link>https://devzone.nordicsemi.com/thread/275147?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 14:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b229b66d-8244-49cb-99b1-0ca7a34afc10</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hey, guys!&lt;/p&gt;
&lt;p&gt;Just wanted to share with you that I was finally able to merge &lt;span style="background-color:rgba(255, 153, 204, 1);"&gt;&lt;em&gt;&lt;strong&gt;libuarte&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; example into the application that contains SoftDevice and app_timer.&lt;/p&gt;
&lt;p&gt;Given that fact that SoftDevice requires &lt;strong&gt;&lt;em&gt;RTC0&lt;/em&gt;&lt;/strong&gt; and &lt;em&gt;&lt;strong&gt;Timer0 &lt;/strong&gt;&lt;/em&gt;and app_timer library consumes &lt;em&gt;&lt;strong&gt;RTC1&lt;/strong&gt;&lt;/em&gt;, I used &lt;em&gt;&lt;strong&gt;RTC2&lt;/strong&gt; &lt;/em&gt;and &lt;em&gt;&lt;strong&gt;Timer2&lt;/strong&gt;&lt;/em&gt; for&amp;nbsp;&lt;span style="background-color:rgba(255, 153, 204, 1);"&gt;&lt;em&gt;&lt;strong&gt;libuarte&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; implementation:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The numbers &lt;em&gt;&lt;strong&gt;2, 2&lt;/strong&gt;&lt;/em&gt; in the above line of code mean &lt;em&gt;&lt;strong&gt;RTC2&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;Timer2&lt;/strong&gt;&lt;/em&gt; are taken for&amp;nbsp;&lt;span style="background-color:rgba(255, 153, 204, 1);"&gt;&lt;em&gt;&lt;strong&gt;libuarte&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;. At the same time, you should have enabled those ressources (&lt;em&gt;&lt;strong&gt;RTC2&lt;/strong&gt;&lt;/em&gt;, &lt;em&gt;&lt;strong&gt;Timer2&lt;/strong&gt;&lt;/em&gt;) through the &lt;span style="background-color:rgba(204, 255, 255, 1);"&gt;&lt;em&gt;&lt;strong&gt;sdk_config.h&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; file.&lt;/p&gt;
&lt;p&gt;Also, I removed everything related to UART from &lt;span style="background-color:rgba(204, 255, 255, 1);"&gt;&lt;em&gt;&lt;strong&gt;sdk_config.h&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; file and included drivers from &lt;span style="background-color:rgba(255, 153, 204, 1);"&gt;&lt;em&gt;&lt;strong&gt;libuarte&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; example:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602771706423v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Finally,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      &amp;lt;file file_name=&amp;quot;../../../../../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.c&amp;quot; /&amp;gt;
      &amp;lt;file file_name=&amp;quot;../../../../../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.c&amp;quot; /&amp;gt;&lt;/pre&gt; lines should be replaced with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      &amp;lt;file file_name=&amp;quot;../../../../../../components/softdevice/common/nrf_sdh.c&amp;quot; /&amp;gt;
      &amp;lt;file file_name=&amp;quot;../../../../../../components/softdevice/common/nrf_sdh_soc.c&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I did not touch &lt;span style="background-color:rgba(255, 153, 204, 1);"&gt;&lt;em&gt;&lt;strong&gt;NRFX_PRS_BOX_4&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; from&amp;nbsp;&lt;span style="background-color:rgba(204, 255, 255, 1);"&gt;&lt;em&gt;&lt;strong&gt;sdk_config.h&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; file even if it was suggested in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41215/general-libuarte-questions" rel="noopener noreferrer" target="_blank"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>