<?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>Can DTM on nRF52840 be controlled by SPI interface?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27683/can-dtm-on-nrf52840-be-controlled-by-spi-interface</link><description>We currently have a SPI interface between MSP and the Nordic nRF52840. In the DTM documentation it indicates UART is used to command the tests. Is it possible to do this using SPI?j</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Nov 2017 16:13:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27683/can-dtm-on-nrf52840-be-controlled-by-spi-interface" /><item><title>RE: Can DTM on nRF52840 be controlled by SPI interface?</title><link>https://devzone.nordicsemi.com/thread/109282?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 16:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47abce69-5cd4-40ab-91d0-40aab030e238</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, UART is the de-facto standard. Please take a look at the &lt;a href="https://www.bluetooth.com/specifications/bluetooth-core-specification"&gt;Bluetooth Core Specification Core version 5.0&lt;/a&gt;, page 2773:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Direct Test Mode shall be set up using
one of two alternate methods:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;over HCI (as defined in Section 2) or&lt;/li&gt;
&lt;li&gt;through a 2-wire UART interface (as defined in Section 3)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Each DUT
shall implement one of the two Direct
Test Mode methods in order to test the
Low Energy PHY layer.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;All DTM test software is based on this, and DTM testers, such as the Anritsu MT8852B uses UART. You only need 2 GPIO pins to do UART DTM. Creating a non-standard SPI wrapper to do DTM testing does not seem very advantageous. All authorized test lab that does BLE certification uses UART/HCI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can DTM on nRF52840 be controlled by SPI interface?</title><link>https://devzone.nordicsemi.com/thread/109281?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 15:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42eb0198-a17b-48e3-b662-f466b73abc3d</guid><dc:creator>JPierpont</dc:creator><description>&lt;p&gt;Thanks for the explanation Sigurd. Since we have SPI already in place it would seem advantageous to command DTM over this, however I do not see any testers that support SPI. Are you aware of any or is UART the de-facto standard for DTM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can DTM on nRF52840 be controlled by SPI interface?</title><link>https://devzone.nordicsemi.com/thread/109280?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 15:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d515d59-8dfe-4016-a360-4fb2dca5807a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, The nRF5x have flexible GPIO mapping, so all pins can be individually mapped to interface blocks for layout flexibility. You can therefore use any free GPIO pin you have on your board for UART(E).&lt;/p&gt;
&lt;p&gt;The nRF52840 have 2 UART(E) Peripherals. The first one can be configured to be used either with or without EasyDMA(either as UARTE0 or UART0), while the second one can only be configured with EasyDMA (UARTE1). The 2 UART(E) Peripherals each have its separate instance. See the Instantiation table &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.ps%2Fmemory.html&amp;amp;cp=2_0_0_7_3&amp;amp;anchor=topic"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can DTM on nRF52840 be controlled by SPI interface?</title><link>https://devzone.nordicsemi.com/thread/109279?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 15:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2087f3f9-e865-4be8-a2e1-1a2352499887</guid><dc:creator>JPierpont</dc:creator><description>&lt;p&gt;Hi Sigurd, we are using SPI interface in our production firmware. Can we add an additional UART interface to be configured in the nRF52840 dedicated for DTM using GPIO pins? - Thanks, J&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can DTM on nRF52840 be controlled by SPI interface?</title><link>https://devzone.nordicsemi.com/thread/109278?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 11:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bbfe486-08fd-49b4-bd7b-f7ac5b26450c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Why not use the UART ? The purpose of DTM is to test the operation of the radio at the physical level. Please read the DTM example project documentation &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.1.0/ble_sdk_app_dtm_serial.html?cp=4_0_1_4_5"&gt;here&lt;/a&gt;, and after that please take a look at our application note about DTM &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.appnotes/dita/appnotes/pdflinks/nan_34.html?cp=10_2"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can DTM on nRF52840 be controlled by SPI interface?</title><link>https://devzone.nordicsemi.com/thread/109283?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 07:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c3154d-f3fe-48de-825d-1b7d74fd9fa8</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Theoretically yes, it&amp;#39;s just not defined and not implemented in any example. But surely if you have some upper tester which will know how to run DTM commands over SPI instead UART then you can modify DTM FW examples from nRF5 SDK to communicate over SPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>