<?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>Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73851/integrating-dws3000-with-nrf52840-dk-with-ble-stack-enabled</link><description>Hi, I am trying to integrate DWS3000 (UWB) APIs, given here to nRF52840 with BLE stack enabled such that my firmware can blink Eddystone packets at the same time when UWB ranging is performed. I started simple with ble_app_blinky code and resolved all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Apr 2021 14:36:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73851/integrating-dws3000-with-nrf52840-dk-with-ble-stack-enabled" /><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/305328?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 14:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5af72b99-823e-4eac-aada-a5a8c5f4ce51</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are other potential ways to fix it but this is the simplest. Other more complicated is as suggested in the &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52840_Rev2/ERR/nRF52840/Rev2/latest/anomaly_840_198.html"&gt;errata text&lt;/a&gt;. This is not fixed in any SDK release to this date.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/305195?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 04:17:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74830985-268c-4db6-a70b-88ee5aa4f101</guid><dc:creator>Ukhan</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for sharing this.&lt;br /&gt;I could fix the issue that way, but is it a way around or do we have it fixed in the recent SDK version?&lt;br /&gt;&lt;br /&gt;Regard.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/305138?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 14:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c56fdcb2-bf41-49fa-ba1c-b9df12fa1e87</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SoftDevice restricts access to&amp;nbsp; the memory and peripheral it uses. If the application writes to any of it, you will get an error. The issue here is that the workaround is not compatible with the SoftDevice as it does exactly that. You can see more about it and an alternative way to do it in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42994/segmentation-fault-after-enabling-ble-stack/168987#168987"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/304953?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 04:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c4cfea-7689-45f9-a008-7bed08c638f9</guid><dc:creator>Ukhan</dc:creator><description>&lt;p&gt;Correctly pointed that out, thanks.&lt;br /&gt;&lt;br /&gt;Now I am getting a different error&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;error&amp;gt; app: SOFTDEVICE: INVALID MEMORY ACCESS. INFO 0x1&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;I further tried to debug to check where it enters restricted memory range.&lt;br /&gt;&lt;br /&gt;In Decawave APIs, from the function&amp;nbsp;&lt;strong&gt;read_dev_id()&lt;/strong&gt;&amp;nbsp;it&amp;nbsp;enters &lt;strong&gt;readfromspi()&lt;/strong&gt;&amp;nbsp;and later enters &lt;strong&gt;spim_xfer()&lt;/strong&gt; where condition&amp;nbsp;&lt;strong&gt;p_spim == NRF_SPIM3&lt;/strong&gt; is met and&amp;nbsp;&lt;span style="color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;anomaly_198_enable&lt;/strong&gt;&lt;/span&gt; is called, here we get the error of&amp;nbsp;&lt;span style="color:#800000;"&gt;INVALID MEMORY ACCESS&lt;/span&gt;.&amp;nbsp;&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Could you please guide on this?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/304927?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 19:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cb97384-75e1-4c47-8c0f-73ed9888be46</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;OK. so at line 107 in nrfx_glue.h in SDK 16 you have the assert in the NRFX_IRQ_PRIORITY_SET macro:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRFX_IRQ_PRIORITY_SET(irq_number, priority) \
    _NRFX_IRQ_PRIORITY_SET(irq_number, priority)
static inline void _NRFX_IRQ_PRIORITY_SET(IRQn_Type irq_number,
                                          uint8_t   priority)
{
    ASSERT(INTERRUPT_PRIORITY_IS_VALID(priority));
    NVIC_SetPriority(irq_number, priority);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And as you are using BLE that means the SoftDevice is present, so&amp;nbsp;INTERRUPT_PRIORITY_IS_VALID is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define INTERRUPT_PRIORITY_IS_VALID(pri) ((((pri) &amp;gt; 1) &amp;amp;&amp;amp; ((pri) &amp;lt; 4)) || \
                                          (((pri) &amp;gt; 4) &amp;amp;&amp;amp; ((pri) &amp;lt; 8)))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But you have some code somewhere that is trying to register an interrupt priority which is illegal (reserved by the SoftDevice). So that needs to be fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/304688?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 04:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:800ef552-fa4c-4509-b4bc-3024a72e786c</guid><dc:creator>Ukhan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;16.0.0 nRF5 SDK&lt;br /&gt;&lt;br /&gt;Can be Downloaded from&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK/Download"&gt;www.nordicsemi.com/.../Download&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/304541?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 12:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a93a5e6-7b13-4b54-90fb-4accfb747eea</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which SDK version do you use (so that I can look at the correct version of nrfx_glue.h)?&amp;nbsp;The key is to find where the error code comes from so that we can &amp;quot;follow the trail&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/304388?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 01:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c11f195a-0218-4027-9586-e99767918a5e</guid><dc:creator>Ukhan</dc:creator><description>&lt;p&gt;Hi Einar,&lt;br /&gt;&lt;br /&gt;Thanks for your kind response.&lt;br /&gt;Upon following the instructions and enabling the logs I get the following:&lt;br /&gt;&lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 3735928559 [Unknown error code] at ../../../../../../integration/nrfx/nrfx_glue.h:107&lt;br /&gt;PC at: 0x0002DC2F&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;br /&gt;&lt;br /&gt;Any help at this point would be much appreciated.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating DWS3000 with nRF52840 DK with BLE stack enabled</title><link>https://devzone.nordicsemi.com/thread/304304?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 13:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39be52c-a0ce-4f0b-a4e9-5eceacde8aae</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please make a debug build to get more error information out of the log. If you use SES, then simply select &amp;quot;Debug&amp;quot; from the build configuration dropdown. If using another toolchain, define &amp;quot;DEBUG&amp;quot; and &amp;quot;DEBUG_NRF&amp;quot; for the project. Then the log should tell you the file name, file number and error code that was detected, which is a good starting point for digging further down into the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>