<?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>nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105319/nrf5340-dtm-connection-in-zephyr-environment</link><description>Dear nRF and all, 
 I&amp;#39;m trying to run the DTM example in nRF5340 evkit and failing to get the uart connection. 
 Environment: - Ubuntu 22.04 - nRF5340 evkit (PCA10095, 2.0.1) - Zephyr 3.3.0 - nRF Connect SDK 2.3.0 
 As per: developer.nordicsemi.com/.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2023 12:59:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105319/nrf5340-dtm-connection-in-zephyr-environment" /><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/458515?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 12:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ec10bcf-0467-4acc-ac57-ca1b2033ef31</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I had added the flag in all the possible places:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- boards/nrf5340dk_nrf5340_cpunet.conf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- child_image/remote_shell/prj.conf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- prj.conf&lt;/p&gt;
&lt;p&gt;But it seems that I was using wrong file when flashing (merged.hex instead of merged_domains.hex). Now the DTM image in our custom board is communicating nicely.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/458507?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 12:36:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ea6383-c24a-4509-bbff-b00a9993a268</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where did you put the&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS=y to ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As I mentioned, the application core (which run remote shell) handles the UART part. So you need to set that to the remote shell application, not the DTM firmware itself.&amp;nbsp;&lt;br /&gt;Please try adding &lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS=y&amp;nbsp;&lt;/span&gt;into&amp;nbsp; \child_image\remote_shell\prj.conf&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If that doesn&amp;#39;t help, please try to test blinky on your board if you can&amp;#39;t modify the DK hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/458485?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 11:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20a638e5-2fcf-49af-b894-85b610739f94</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;Thanks for your response.&lt;br /&gt;&lt;br /&gt;I tried the blinky example with led0 set to P0.03 in nrf5340dk_nrf5340_cpuapp.overlay:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
        leds {
                compatible = &amp;quot;gpio-leds&amp;quot;;
                led0: led_0 {
                        gpios = &amp;lt;&amp;amp;gpio0 3 GPIO_ACTIVE_LOW&amp;gt;;
                        label = &amp;quot;Green LED 0&amp;quot;;
                };
        };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;but the pin P0.03 seems to be idle (0V) all the time.&lt;br /&gt;&lt;br /&gt;I may have found the root cause for this problem from ticket:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94320/nrf5340-use-nfc-pins-as-gpio-input"&gt;devzone.nordicsemi.com/.../nrf5340-use-nfc-pins-as-gpio-input&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My nRF5340DK doesn&amp;#39;t have the HW modification, so next week I&amp;#39;ll ask our HW engineers to help me out with this and see if it helps.&lt;/p&gt;
&lt;p&gt;Although, that doesn&amp;#39;t explain why this is not working in our custom hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/458466?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 09:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2ef1d2e-b86d-4879-be12-9a946c526a31</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Teemu,&amp;nbsp;&lt;br /&gt;I&amp;#39;m taking over the ticket from Håkon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do some simple test for example blinking the pin P0.03 as a normal GPIO pin, like in blinky sample, do you see any problem ?&amp;nbsp;&lt;br /&gt;If that works you can try the &lt;a href="https://docs.zephyrproject.org/latest/samples/drivers/uart/echo_bot/README.html"&gt;UART sample&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After that you should try the remote IPC shell sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The DTM basically is a DTM firmware running on netcore and the remote shell running on app core. The output from the DTM firmware on the netcore is output to the remote shell and then to UART.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/457267?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 08:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daaeb68e-7b1b-4ccb-b0e8-9eeae64c9c32</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;I hope you are alright now.&lt;/p&gt;
&lt;p&gt;I have an additional problem related to this. I&amp;#39;m now able to run the nRF Connect Desktop -&amp;gt; DTM app with nRF5340dk using different gpios, but unfortunately the ones that are in my custom board cause problems. Some similarities with this one: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97992/nrf5340-dtm-serial-pin-modification-unsuccessful"&gt;devzone.nordicsemi.com/.../nrf5340-dtm-serial-pin-modification-unsuccessful&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My setup is: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; P0.26 as UART RX&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; P0.03 as UART TX&lt;/p&gt;
&lt;p&gt;UART RX is fine, but P0.03 as UART TX doesn&amp;#39;t seem to operate correctly.&lt;/p&gt;
&lt;p&gt;This is the NFCT dedicated pin, so using ncs v2.5.0 environment I&amp;#39;ve added:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;uicr {
    nfct-pins-as-gpios;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in the devicetree (assumed the child_image is the correct place, but tested the cpunet side too), but this doesn&amp;#39;t solve the problem.&lt;br /&gt;If I switch the wire and the devicetree setting to for example P0.09, the DTM app is connected and running smoothly.&lt;/p&gt;
&lt;p&gt;Runnin the test with TX GPIO P0.09 (and P0.26 RX) in DTM app using TTL232R-3V3 serial connection:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;09:45:50.320 No firmware defined for selected device
09:45:50.320 Please make sure the device has been programmed with a supported firmware
09:45:50.325 Device selected successfully
09:45:59.292 Running device setup
09:45:59.371 Starting test
09:46:06.390 Transmitter test finished successfully&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After changing TX to P0.03:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;09:47:52.951 No firmware defined for selected device
09:47:52.952 Please make sure the device has been programmed with a supported firmware
09:47:52.959 Device selected successfully
09:47:56.551 Running device setup
09:47:57.554 DTM setup reset command failed
09:47:57.554 Can not communicate with the device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is there now something else that I have to take into account in addition to nfct-pins-as-gpios -setting?&lt;br /&gt;I&amp;#39;ve also tried the CONFIG_NFCT_PINS_AS_GPIOS=y, but get the compilation warning about deprecation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/456200?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 14:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5aac957-ec49-4de7-9a0e-effc048f0c82</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Teemu, and so sorry about the wait. I&amp;#39;ve been sick for a while.&lt;/p&gt;
&lt;p&gt;I just had a look at this today, and&amp;nbsp;found that I also had issues getting it to work with minicom for some reason.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m so glad you found a way around it. Have a good week-end!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/456110?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 10:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c485269-af0c-4f70-b422-a8e1e05c1dc0</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tested this with the nRF Connect for Desktop v4.2.1 -&amp;gt; Direct Test Mode app and was successful using the cpuapp uart: /dev/ttyACM1.&lt;/p&gt;
&lt;p&gt;So the problem was probably that I assumed the cpunet (/dev/ttACM0) to be the one to use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/454124?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 08:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bbfc11b-aa9e-4059-9021-a50e03a1a85a</guid><dc:creator>tgoos</dc:creator><description>&lt;p&gt;Thanks Elfving,&lt;/p&gt;
&lt;p&gt;I have created an updated environment in a virtual ubuntu but with latest Zephyr (v3.5.0) and nRF Connect SDK v. 2.5.0&lt;/p&gt;
&lt;p&gt;The result seems to be the same. So I must be doing something wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 DTM connection in Zephyr environment</title><link>https://devzone.nordicsemi.com/thread/453998?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 14:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4c6a801-81e5-40eb-bffc-43f4bde696be</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Teemu,&lt;/p&gt;
&lt;p&gt;I will have to get back to you on this next week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>