<?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>RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103523/rf-test-on-custom-board-nrf5340-nrf21540</link><description>Hello, 
 I create a custom board based on nRF5340 with a FEM nRF21540 and I would like to test radio part with some fixed frequency test. 
 It seems that SDK (nrf connect 2.4) provides a sample for RF test (Direct Test Mode). 
 After adding my board in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Sep 2023 08:55:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103523/rf-test-on-custom-board-nrf5340-nrf21540" /><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/447003?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 08:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032ff13a-a220-4947-bddd-4880c47d2c23</guid><dc:creator>benoit.gorostidi</dc:creator><description>&lt;p&gt;Device tree of my board provides 3 ACM ports. But in fact, 4 ports appears on host.&lt;/p&gt;
&lt;p&gt;So, I removed all the ACM ports on my device tree and lets the conf/remote_shell/usb.dts enable 1 port.&lt;pre class="ui-code" data-mode="text"&gt;  zephyr_udc0: &amp;amp;usbd {
 	 compatible = &amp;quot;nordic,nrf-usbd&amp;quot;;
 	 status = &amp;quot;okay&amp;quot;;
 
// 	 cdc_acm_uart0: cdc_acm_uart0 {
// 		 compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
// 	 };
 
// 	 cdc_acm_uart1: cdc_acm_uart1 {
// 		 compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
// 	 };

// 	 cdc_acm_uart2: cdc_acm_uart2 {
// 		compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
// 	 };
  };
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After this change, only 1 port appears on host and &amp;quot;Direct Test Mode&amp;quot; desktop app can drive the cpunet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/446862?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 12:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c328dd20-8830-4097-9810-fb434ee3436d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming, but then I don&amp;#39;t understand how the nRF USB&amp;nbsp;exposes multiple ACM ports. Have you tried to program the FW built for the &amp;#39;nrf5340dk_nrf5340_cpunet&amp;#39; target to your custom board to see if that works? You can edit the board overlays if it is necessary to change the pinout.&lt;/p&gt;
&lt;p&gt;VS Code settings for building the nRF5340 DK with FEM enabled and USB activated in the remote shell app:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5758.pastedimage1695211279353v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="benoit.gorostidi"]I thought that Remote shell app was builded/flashed in the same time due to the CONFIG_NCS_SAMPLE_REMOTE_SHELL_CHILD_IMAGE[/quote]
&lt;p&gt;Yes, it should. But the remote shell app should only expose one COM port on the nRF USB interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/446704?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 14:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc566e24-3699-4d98-8f69-4ff50187499b</guid><dc:creator>benoit.gorostidi</dc:creator><description>&lt;p&gt;1. I use the native nRF USB interface.&lt;/p&gt;
&lt;p&gt;2. Just flashing the Direct Test Mode app with VScode. I thought that Remote shell app was builded/flashed in the same time due to the CONFIG_NCS_SAMPLE_REMOTE_SHELL_CHILD_IMAGE option.Same process for nrF5340DK board work fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/446691?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 14:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e79589b-7735-4c82-80b9-57944ba9c21a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;To help me better understand your setup, could you please answer the questions below?&lt;/p&gt;
&lt;p&gt;1. Are you using the native nRF USB interface for USB ACM, or are you using an external UART-to-USB bridge?&lt;/p&gt;
&lt;p&gt;2. Do you have the remote shell application programmed on the appcore?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/446663?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 12:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1497f369-e468-4985-9fa9-d1f5c3aa4c96</guid><dc:creator>benoit.gorostidi</dc:creator><description>&lt;p&gt;DTM commands sended manualy doesn&amp;#39;t have any effects on each of 4 ports.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/446280?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 12:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83353d4f-8602-4080-b750-f246f42f9da3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try with a serial terminal such as Putty or similar, and see if you can send the DTM commands manually as explained in the sample documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/446197?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 08:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58179c57-cccd-45b1-a60a-379faac2ce3d</guid><dc:creator>benoit.gorostidi</dc:creator><description>&lt;p&gt;Thanks for the modified version of the project. I&amp;#39;m now able to build and flash the project.&lt;/p&gt;
&lt;p&gt;In our app, custom board provides 3 virtual serial ports through USB ACM, but with &amp;quot;Direct test mode&amp;quot; app, 4 serial ports are available. Direct Test Mode desktop app&amp;nbsp; detect &amp;quot;Nordic Remote Shell sample&amp;quot; device but cannot communicate with none of the 4 ports.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/445797?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 09:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc615d0-2178-475b-8c39-e280251d4e38</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I did not notice your attachment earlier. Please try the modified version of your project included below and see if that works for you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8524.direct_5F00_test_5F00_mode.zip"&gt;devzone.nordicsemi.com/.../8524.direct_5F00_test_5F00_mode.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/boards/arm/erl_nrf5340/Kconfig.board b/boards/arm/erl_nrf5340/Kconfig.board
index acca550..0566ae9 100644
--- a/boards/arm/erl_nrf5340/Kconfig.board
+++ b/boards/arm/erl_nrf5340/Kconfig.board
@@ -13,6 +13,6 @@ config BOARD_ERL_NRF5340_CPUAPP_NS
 
 endif # SOC_NRF5340_CPUAPP_QKAA
 
-config BOARD_ERL_NRF5340_CPUAPP_CPUNET
+config BOARD_ERL_NRF5340_CPUNET
 	bool &amp;quot;ERL NRF5340 Network MCU&amp;quot;
 	depends on SOC_NRF5340_CPUNET_QKAA
diff --git a/boards/arm/erl_nrf5340/Kconfig.defconfig b/boards/arm/erl_nrf5340/Kconfig.defconfig
index 974e5e0..f87f923 100644
--- a/boards/arm/erl_nrf5340/Kconfig.defconfig
+++ b/boards/arm/erl_nrf5340/Kconfig.defconfig
@@ -74,7 +74,7 @@ endif # BOARD_ERL_NRF5340_CPUAPP_NS
 endif # BOARD_ERL_NRF5340_CPUAPP || BOARD_ERL_NRF5340_CPUAPP_NS
 
 config BOARD
-	default &amp;quot;erl_nrf5340_cpunet&amp;quot; if BOARD_ERL_NRF5340_CPUAPP_CPUNET
+	default &amp;quot;erl_nrf5340_cpunet&amp;quot; if BOARD_ERL_NRF5340_CPUNET
 
 config MBOX_NRFX_IPC
 	default MBOX
@@ -90,9 +90,9 @@ config HEAP_MEM_POOL_SIZE
 
 endif #  BOARD_ERL_NRF5340_CPUAPP || BOARD_ERL_NRF5340_CPUAPP_NS
 
-if BOARD_ERL_NRF5340_CPUAPP_CPUNET
+if BOARD_ERL_NRF5340_CPUNET
 
 config BT_CTLR
 	default y if BT
 
-endif # BOARD_ERL_NRF5340_CPUAPP_CPUNET
+endif # BOARD_ERL_NRF5340_CPUNET
diff --git a/boards/arm/erl_nrf5340/erl_nrf5340_cpunet_defconfig b/boards/arm/erl_nrf5340/erl_nrf5340_cpunet_defconfig
index 6228a45..a2dae95 100644
--- a/boards/arm/erl_nrf5340/erl_nrf5340_cpunet_defconfig
+++ b/boards/arm/erl_nrf5340/erl_nrf5340_cpunet_defconfig
@@ -2,7 +2,7 @@
 
 CONFIG_SOC_SERIES_NRF53X=y
 CONFIG_SOC_NRF5340_CPUNET_QKAA=y
-CONFIG_BOARD_ERL_NRF5340_CPUAPP_CPUNET=y
+CONFIG_BOARD_ERL_NRF5340_CPUNET=y
 
 # Enable MPU
 CONFIG_ARM_MPU=y
diff --git a/boards/erl_nrf5340_cpunet.overlay b/boards/erl_nrf5340_cpunet.overlay
index e218494..c289448 100644
--- a/boards/erl_nrf5340_cpunet.overlay
+++ b/boards/erl_nrf5340_cpunet.overlay
@@ -10,4 +10,8 @@
 	ipc = &amp;lt;&amp;amp;ipc0&amp;gt;;
 	ept-name = &amp;quot;remote shell&amp;quot;;
 	current-speed = &amp;lt;19200&amp;gt;;
-};
\ No newline at end of file
+};
+
+&amp;amp;radio {
+	/delete-property/ dfe-supported;
+};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/445756?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 07:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b268f7-b949-4b29-83cf-38488840a32b</guid><dc:creator>benoit.gorostidi</dc:creator><description>&lt;p&gt;You can found it in the zip file uploaded in my first message. Let me know if you cannot access to the file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/445751?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 07:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebce1953-8759-44d6-b73a-090ab9ce27eb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Can you&amp;nbsp;upload&amp;nbsp;your .config file here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/445747?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 07:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f67339d-c359-46fa-8530-c26eb7de3f13</guid><dc:creator>benoit.gorostidi</dc:creator><description>&lt;p&gt;Actualy, DOMAIN_CPUAPP_BOARD symbol is not taken into account in the .config file.&lt;/p&gt;
&lt;p&gt;Kconfig content:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# ERL board configuration

if BOARD_ERL_NRF5340_CPUAPP || BOARD_ERL_NRF5340_CPUAPP_NS

config BOARD_ENABLE_DCDC_APP
	bool &amp;quot;Application MCU DCDC converter&amp;quot;
	select SOC_DCDC_NRF53X_APP
	default y

config BOARD_ENABLE_DCDC_NET
	bool &amp;quot;Network MCU DCDC converter&amp;quot;
	select SOC_DCDC_NRF53X_NET
	default y

config BOARD_ENABLE_DCDC_HV
	bool &amp;quot;High Voltage DCDC converter&amp;quot;
	select SOC_DCDC_NRF53X_HV
	default y

config BOARD_ENABLE_CPUNET
	bool &amp;quot;NRF53 Network MCU&amp;quot;
	select SOC_NRF_GPIO_FORWARDER_FOR_NRF5340 if \
		$(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_GPIO_FORWARDER))
	help
	  This option enables releasing the Network &amp;#39;force off&amp;#39; signal, which
	  as a consequence will power up the Network MCU during system boot.
	  Additionally, the option allocates GPIO pins that will be used by UARTE
	  of the Network MCU.
	  Note: GPIO pin allocation can only be configured by the secure Application
	  MCU firmware, so when this option is used with the non-secure version of
	  the board, the application needs to take into consideration, that the
	  secure firmware image must already have configured GPIO allocation for the
	  Network MCU.
	default y if (BT || NRF_802154_SER_HOST)

config DOMAIN_CPUNET_BOARD
	string
	default &amp;quot;erl_nrf5340_cpunet&amp;quot;
	depends on BOARD_ENABLE_CPUNET
	help
	  The board which will be used for CPUNET domain when creating a multi
	  image application where one or more images should be located on
	  another board. For example hci_rpmsg on the nRF5340_cpunet for
	  Bluetooth applications.

endif #  BOARD_ERL_NRF5340_CPUAPP || BOARD_ERL_NRF5340_CPUAPP_NS

config DOMAIN_CPUAPP_BOARD
	string
	default &amp;quot;erl_nrf5340_cpuapp&amp;quot;
	depends on BOARD_ERL_NRF5340_CPUNET
	help
	  The board which will be used for CPUAPP domain when creating a multi
	  image application where one or more images should be located on
	  another board.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/445550?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 08:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:728d08cd-43d0-43a7-8b81-dcbd53b73f59</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please check what the&amp;nbsp;&lt;span&gt;DOMAIN_CPUAPP_BOARD symbol is set to in your .config output file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1694507478709v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/445537?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 07:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84e83e45-671e-4fc5-ab03-92b7692c1f16</guid><dc:creator>benoit.gorostidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve double checked the Kconfig and the DOMAIN_CPUAPP_BOARD is well defined with the board name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF Test on custom board (nrf5340 + nrf21540)</title><link>https://devzone.nordicsemi.com/thread/444892?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 11:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f681fee5-9fec-4fea-97b2-997c7d5a31fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like your custom board does not define the&amp;nbsp;DOMAIN_CPUAPP_BOARD symbol. Please try adding it to the Kconfig file in your board directory like how we&amp;#39;ve done it for the nRF5340DK here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/c7094146b5b47fd4da05ed773e0128e2e6a634e1/boards/arm/nrf5340dk_nrf5340/Kconfig#L51"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/c7094146b5b47fd4da05ed773e0128e2e6a634e1/boards/arm/nrf5340dk_nrf5340/Kconfig#L51&lt;/a&gt;. Note that the string should reflect the name of your board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>