<?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>DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81788/dtm-via-nrf-connect-using-a-custom-board</link><description>How is it possible to run a DTM Test on a custom board using the nRF Connect Tool? 
 I am able to run it successfully with 2 DK boards, but I need to run it on my custom PCB (fitted with an nRF52840). 
 Notes: 
 
 The DTM example in the SDK 17.1 (nRF5_SDK_17</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Nov 2021 12:08:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81788/dtm-via-nrf-connect-using-a-custom-board" /><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/340324?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 12:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f35ed3-e2ca-49e4-a1eb-8cfca1009071</guid><dc:creator>CacO3</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon&lt;/p&gt;
&lt;p&gt;Thanks for your patience!&lt;/p&gt;
&lt;p&gt;The issue was that I had adapted your sample project into our own application/dts. And there where some extra prj.conf flags which are not compatible.&lt;/p&gt;
&lt;p&gt;How ever it now is working as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/340258?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 08:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21886bc7-2b73-4994-bec1-2c721adc7171</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried the same scenario, where I use a ttyUSB0 device, and it is able to run properly at my end:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1637655753358v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that you normally need permission to open ttyUSB* devices as a normal user, but it seems that you have this already in order.&lt;/p&gt;
[quote user="CacO3"]with cutecom and 19200 baud:[/quote]
&lt;p&gt;Your cutecom shows 115k2 baud, but you need to use 19k2 with the direct test mode application.&lt;/p&gt;
[quote user="CacO3"]Thank you for hinting me to &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode&lt;/a&gt;[/quote]
&lt;p&gt;You must have this app.overlay present to force all devices to use 19k2 baud:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/direct_test_mode/app.overlay"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/direct_test_mode/app.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try with this app.overlay file present in your folder and re-generate/flash your project to see if it works now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/340139?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 14:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1180ac9-5639-4645-9cc4-752034bf0e3e</guid><dc:creator>CacO3</dc:creator><description>&lt;p&gt;Dear H&amp;aring;kon&lt;/p&gt;
&lt;p&gt;Thank you for hinting me to &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I built that sample for my own hardware (nrf52840, sender) and used a DK board as receiver (firmware installed by &amp;quot;Direct test mode&amp;quot; PC application).&lt;/p&gt;
&lt;p&gt;I could test it successfully according to &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode#testing-with-nrf-connect-for-desktop"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode#testing-with-nrf-connect-for-desktop&lt;/a&gt; with cutecom and 19200 baud:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x193/__key/communityserver-discussions-components-files/4/pastedimage1637592031176v3.png" /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637592057816v4.png" /&gt;&lt;br /&gt;So the wiring is working correctly (TX=P0.10, RX=P0.09)!&lt;/p&gt;
&lt;p&gt;Then I tried to use it with the &amp;quot;Direct test mode&amp;quot; PC application. I selected the Unknown Port&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637592120349v5.png" /&gt;&lt;/p&gt;
&lt;p&gt;And pressed Start:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637592209905v6.png" /&gt;&lt;/p&gt;
&lt;p&gt;Still every time I get a &amp;quot;No firmware defined for selected device&amp;quot; and &amp;quot;Can not communicate with the device&amp;quot; error!&lt;/p&gt;
&lt;p&gt;Notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Of course I first disconnected cutecom.&lt;/li&gt;
&lt;li&gt;I tested the latest nrf Connect Tool (3.9.0) and DTM App 2.0.0.&lt;/li&gt;
&lt;li&gt;In relation to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81654/dtm-v2-00-issue-in-nrf-connect-for-desktop"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/81654/dtm-v2-00-issue-in-nrf-connect-for-desktop&lt;/a&gt; I also tested the older version (nrf Connect 3.7.0, DM App 1.1.7).&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/339492?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 15:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:201a11f5-045e-4a55-aea3-978a9b479366</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="CacO3"]so is the DTM implementation in zephyr (&lt;a href="https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BT_CTLR_DTM_HCI.html)"&gt;docs.zephyrproject.org/.../CONFIG_BT_CTLR_DTM_HCI.html)&lt;/a&gt; compatible with the 2-wire uart and nRF Connect for desktop &amp;quot;Direct test mode&amp;quot; PC application?[/quote]
&lt;p&gt;Unfortunately, this is a HCI command set for DTM, which is not the same as &amp;quot;2-wire&amp;quot;, which is essentially standard UART.&lt;/p&gt;
&lt;p&gt;For zephyr,&amp;nbsp;we have ported the dtm project in NCS:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, you can use the one from nRF5 SDK if you&amp;#39;d like. They&amp;#39;re both implementing the same protocol.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;DTM does not depend on a bluetooth stack, it is there to evaluate your hardware (ie. the board itself).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/339490?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 15:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929ade0f-04ec-49dd-ae68-b5404a7cba7c</guid><dc:creator>CacO3</dc:creator><description>&lt;p&gt;so is the DTM implementation in zephyr (&lt;a href="https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BT_CTLR_DTM_HCI.html)"&gt;docs.zephyrproject.org/.../CONFIG_BT_CTLR_DTM_HCI.html)&lt;/a&gt; compatible with the 2-wire uart and nRF Connect for desktop &amp;quot;Direct test mode&amp;quot; PC application?&lt;br /&gt;I couldn&amp;#39;t find any information or an example project for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/339486?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 15:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db9076e7-853f-4d13-969c-7b02f7f8eae6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also run into this feature from time to time.&lt;/p&gt;
&lt;p&gt;If you set the preprocessor define &amp;quot;CONFIG_NFCT_PINS_AS_GPIOS&amp;quot; and recompile your project, you should be able to use those pins as normal GPIOs.&lt;/p&gt;
&lt;p&gt;If you are using the nRF52840-DK with the NFC pins, you also need to add some zero ohm resistors on the kit itself.&lt;/p&gt;
[quote user="CacO3"]Also the ublox datasheet notes that those pins can be used as long as we stay under 10 kHz![/quote]
&lt;p&gt;This is a recommendation from our PS, that specific GPIOs near the radio should not be used for high speed switching (PWM signal for instance), as it can potentially inject noise into the radio:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html?cp=4_0_0_6_0"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html?cp=4_0_0_6_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Given that DTM only sends and receives uart payloads on start and stop of a test,&amp;nbsp;this is not going to be a problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/339481?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 15:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf4487d-3522-4f8d-b2f5-b86cb1b9d87b</guid><dc:creator>CacO3</dc:creator><description>&lt;p&gt;Yes, we use exactly those pins &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define RX_PIN_NUMBER  9
#define TX_PIN_NUMBER  10&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How ever it confuses me a bit as I tested the UART communication with an UART terminal and it worked correctly!&lt;/p&gt;
&lt;p&gt;Also the ublox datasheet notes that those pins can be used as long as we stay under 10 kHz!&lt;br /&gt;And we successfully use them for zephyr logging with 115200 baud!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/339462?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 14:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ec46706-e47e-4a4d-bf8b-52da91ea07b1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which GPIOs are you using? Note that some GPIOs are not available by default, like the NFC pins (P0.09 and P0.10).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/339346?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 08:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a8b3f5-451c-40e3-82b5-f58678031993</guid><dc:creator>CacO3</dc:creator><description>&lt;p&gt;Thanks for the quick reply!&lt;/p&gt;
&lt;p&gt;I tried already to use the 2-wire UART. It is connect to the PC via an FTDI-usb-cable. The nRF Connect for desktop &amp;quot;Direct test mode&amp;quot; PC application does see it, how ever I always get the &amp;quot;Can not communicate with the device&amp;quot; error when I try to start the test.&lt;/p&gt;
&lt;p&gt;Is the dtm firmware example (&lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-dtm/tree/master/firmware/src"&gt;https://github.com/NordicSemiconductor/pc-nrfconnect-dtm/tree/master/firmware/src&lt;/a&gt; ) able to work with 2-wire UART? I confirmed that the RX/TX lines are mapped correctly, also I disabled the HW Flow Control (CtS/RTS) lines:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define HWFC           false&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM (via nRF Connect) using a custom board</title><link>https://devzone.nordicsemi.com/thread/339344?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 07:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4677b30a-8c05-4242-b293-d4fd262bd2c5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;How is it possible to run a DTM Test on a custom board using the nRF Connect Tool?&lt;/p&gt;
&lt;p&gt;I am able to run it successfully with 2 DK boards, but I need to run it on my custom PCB (fitted with an nRF52840).&lt;/p&gt;[/quote]
&lt;p&gt;Yes, you can use the nRF Connect for desktop &amp;quot;Direct test mode&amp;quot; PC application with any device that supports 2-wire DTM.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By default, the uart rxd and txd is P0.08 and P0.06, so if you use other GPIOs for your uart output, you&amp;#39;ll need to change this mapping in the direct_test_mode firmware.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>