<?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>Direct test mode sample crashes when using LE coded PHY</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67576/direct-test-mode-sample-crashes-when-using-le-coded-phy</link><description>Hi, 
 I&amp;#39;m playing around with the Bleutooth DTM sample ( https://github.com/nrfconnect/sdk-nrf/tree/master/samples/bluetooth/direct_test_mode ) on two nRF52840 boards. The documentation only mentions nRF53 support, but the code seems to have nRF52 support</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Nov 2020 08:36:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67576/direct-test-mode-sample-crashes-when-using-le-coded-phy" /><item><title>RE: Direct test mode sample crashes when using LE coded PHY</title><link>https://devzone.nordicsemi.com/thread/281959?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 08:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:772dc10a-0618-40f7-9eb3-aa267c2c5877</guid><dc:creator>Simonr</dc:creator><description>[quote user="basvkesteren"]I think integrating the nRF5 code into that would be tricky due to the different API&amp;#39;s and such...[/quote]
&lt;p&gt;Indeed.&lt;/p&gt;
[quote user="basvkesteren"]If I disable the assert-check in nrfx_timer_enable(), the code runs. Dunno what I&amp;#39;m breaking by doing that, though[/quote]
&lt;p&gt;&amp;nbsp;Erratum 172 refers to BLE long range co-channel performance in the nRF52840 where you can experience packet loss when a blocker signal is present at the same or a nearby RF frequency. The consequence here is that the BLE test with co-channel interference&amp;nbsp;&lt;span&gt;(RF-PHY/RCV/BV-29-C)&lt;/span&gt; will fail without the correct FW workaround.&lt;/p&gt;
&lt;p&gt;It seems like this workaround might not be implemented correctly in NCS as of yet. I will report this internally and come back to you with any updates on this. Thank you for updating us with your discoveries. I can&amp;#39;t guarantee that this will be prioritized and fixed immediately&amp;nbsp;though, as we already have a functioning DTM example in the nRF5 SDK, but it should find its way into an NCS release eventually.&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: Direct test mode sample crashes when using LE coded PHY</title><link>https://devzone.nordicsemi.com/thread/281883?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 15:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac3dec7-2acf-42f7-88db-1421ef092af5</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Late reply, sorry about that; have been focusing on some other problems.&lt;/p&gt;
&lt;p&gt;I took a look at the nRF5 DTM source; I have the DTM code integrated in our own (nrfconnect based) application; I think integrating the nRF5 code into that would be tricky due to the different API&amp;#39;s and such...&lt;/p&gt;
&lt;p&gt;I did do some more debugging on the nrfconnect code: after receiving a packet, something goes wrong with the anomaly 172 workaround code: in dtm.c, dtm_wait_internal(), the following piece of code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (dtm_inst.state == STATE_RECEIVER_TEST &amp;amp;&amp;amp;
      nrf_radio_event_check(NRF_RADIO, NRF_RADIO_EVENT_READY)) {
    nrf_radio_event_clear(NRF_RADIO, NRF_RADIO_EVENT_READY);

    if (dtm_inst.anomaly_172_wa_enabled) {
      nrfx_timer_clear(&amp;amp;dtm_inst.anomaly_timer);
      nrfx_timer_enable(&amp;amp;dtm_inst.anomaly_timer);
    }
  }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The nrfx_timer_enable() call results in an assert:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;ASSERTION FAIL [m_cb[p_instance-&amp;gt;instance_id].state == NRFX_DRV_STATE_INITIALIZED] @ WEST_TOPDIR/modules/hal/nordic/nrfx/drivers/src/nrfx_timer.c:150&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;If I disable the assert-check in nrfx_timer_enable(), the code runs. Dunno what I&amp;#39;m breaking by doing that, though &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;I tried to compare this piece with the nRF5 code; it looks similar. Did notice that the nRF5 code lacks the assert-checks the nrfconnect code has.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct test mode sample crashes when using LE coded PHY</title><link>https://devzone.nordicsemi.com/thread/276863?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 12:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6ca0f8b-4519-496c-a680-58455188c388</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Bastiaan&lt;/p&gt;
&lt;p&gt;Quite a bit has changed between the nRF52 and nRF53, so applications made specifically for one device is not necessarily made for the other.&lt;/p&gt;
&lt;p&gt;The DTM example is rather simple, which is why the 53-version works for nRF52 devices as well, but the Coded PHY layer requires some configuration changes in both cores of the nRF53, which is likely why your application is crashing.&lt;/p&gt;
&lt;p&gt;I suggest you use the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_dtm_serial.html"&gt;nRF5 SDK&amp;#39;s DTM example&lt;/a&gt; which is specifically made for the nRF52 series and supports all these PHYs by default.&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>