<?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>How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98720/how-to-adapt-the-radio-test-sample-to-nrf52840-dongle</link><description>Hi Nordic 
 i would like to adapt radio test sample to nRF52840 dongle from based on pca10056. 
 can you help to check below steps are correct? 
 1- Followed the the instruction : nRF52840 Dongle Programming Tutorial - Getting Started - nRF5 SDK guides</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Oct 2023 09:48:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98720/how-to-adapt-the-radio-test-sample-to-nrf52840-dongle" /><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/453208?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 09:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f0654c8-4d6d-44e3-8b85-dbdae3545013</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you delete the build directory completely after making the changes? Sometimes it is necessary to delete the build directory when making changes to devicetree.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/452653?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 15:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cf06afd-fa52-4192-b03b-84b26d03a4c7</guid><dc:creator>alliebarrett</dc:creator><description>&lt;p&gt;Hi, yes I have tried those things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/452465?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 08:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11915147-cd07-4dcb-b16f-b3f50a725a54</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="alliebarrett"]In addition, when I tried to add the dongle as the device to build for it was not in the list of compatible devices[/quote]
&lt;p&gt;This is because the dongle is not officially supported in the sample.&lt;/p&gt;
[quote user="alliebarrett"] however now that I have corrected that and am using&amp;nbsp;&lt;span&gt;nrf52840dongle_nrf52840&lt;/span&gt; I am running into the following build error:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;warning: CONSOLE_HANDLER (defined at drivers/console/Kconfig:27) was assigned the value &amp;#39;y&amp;#39; but got&amp;nbsp;&lt;/span&gt;&lt;span&gt;the value &amp;#39;n&amp;#39;.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Since the sample does not support the dongle out of the box, you need to apply the changes in my first comment in this ticket:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/98720/how-to-adapt-the-radio-test-sample-to-nrf52840-dongle/420527"&gt;RE: How to adapt the Radio Test sample to nRF52840 dongle?&lt;/a&gt; , specifically adding the two files nrf52840dongle_nrf52840.conf, and boards/nrf52840dongle_nrf52840.overlay, and making the changes to CMakeLists.txt and main.c as I mention there.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/452427?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 07:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50c239bc-93a5-44d5-8c02-57b3d7c484e8</guid><dc:creator>alliebarrett</dc:creator><description>&lt;p&gt;Hi, you were correct I was building for the incorrect device, however now that I have corrected that and am using&amp;nbsp;&lt;span&gt;nrf52840dongle_nrf52840&lt;/span&gt; I am running into the following build error:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;warning: CONSOLE_HANDLER (defined at drivers/console/Kconfig:27) was assigned the value &amp;#39;y&amp;#39; but got&amp;nbsp;&lt;/span&gt;&lt;span&gt;the value &amp;#39;n&amp;#39;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;In addition, when I tried to add the dongle as the device to build for it was not in the list of compatible devices. I am attaching the config log as well as a screen shot of my build cofig setup, can you please let me know if you see what is going wrong?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/buildConfig.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: C:/nrfWorkspace/radio_test&lt;br /&gt;-- CMake version: 3.20.5&lt;br /&gt;-- Found Python3: C:/ncs/toolchains/ffa23e2f3e/opt/bin/python.exe (found suitable version &amp;quot;3.8.2&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter &lt;br /&gt;-- Cache files will be written to: C:/ncs/v2.5.0-rc2/zephyr/.cache&lt;br /&gt;-- Zephyr version: 3.4.99 (C:/ncs/v2.5.0-rc2/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)&lt;br /&gt;-- Board: nrf52840dongle_nrf52840&lt;br /&gt;-- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/ffa23e2f3e/opt/zephyr-sdk)&lt;br /&gt;-- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/ffa23e2f3e/opt/zephyr-sdk)&lt;br /&gt;-- Found Dtc: C:/ncs/toolchains/ffa23e2f3e/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) &lt;br /&gt;-- Found BOARD.dts: C:/ncs/v2.5.0-rc2/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts&lt;br /&gt;-- Found devicetree overlay: boards/nrf52840dongle_nrf52840.overlay&lt;br /&gt;-- Generated zephyr.dts: C:/nrfWorkspace/radio_test/build/zephyr/zephyr.dts&lt;br /&gt;-- Generated devicetree_generated.h: C:/nrfWorkspace/radio_test/build/zephyr/include/generated/devicetree_generated.h&lt;br /&gt;-- Including generated dts.cmake file: C:/nrfWorkspace/radio_test/build/zephyr/dts.cmake&lt;/p&gt;
&lt;p&gt;warning: CONSOLE_HANDLER (defined at drivers/console/Kconfig:27) was assigned the value &amp;#39;y&amp;#39; but got&lt;br /&gt;the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: UART_CONSOLE (=n), CONSOLE (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_CONSOLE_HANDLER"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up&lt;br /&gt;CONSOLE_HANDLER in the menuconfig/guiconfig interface. The Application Development Primer, Setting&lt;br /&gt;Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful&lt;br /&gt;too.&lt;/p&gt;
&lt;p&gt;Parsing C:/ncs/v2.5.0-rc2/zephyr/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;C:/ncs/v2.5.0-rc2/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;C:/nrfWorkspace/radio_test/prj.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;C:/nrfWorkspace/radio_test/nrf52840dongle_nrf52840.conf&amp;#39;&lt;br /&gt;Configuration saved to &amp;#39;C:/nrfWorkspace/radio_test/build/zephyr/.config&amp;#39;&lt;br /&gt;Kconfig header saved to &amp;#39;C:/nrfWorkspace/radio_test/build/zephyr/include/generated/autoconf.h&amp;#39;&lt;br /&gt;-- Found GnuLd: c:/ncs/toolchains/ffa23e2f3e/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version &amp;quot;2.38&amp;quot;) &lt;br /&gt;-- The C compiler identification is GNU 12.2.0&lt;br /&gt;-- The CXX compiler identification is GNU 12.2.0&lt;br /&gt;-- The ASM compiler identification is GNU&lt;br /&gt;-- Found assembler: C:/ncs/toolchains/ffa23e2f3e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;See also &amp;quot;C:/nrfWorkspace/radio_test/build/CMakeFiles/CMakeOutput.log&amp;quot;.&lt;br /&gt;See also &amp;quot;C:/nrfWorkspace/radio_test/build/CMakeFiles/CMakeError.log&amp;quot;.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\ffa23e2f3e\opt\bin\cmake.EXE&amp;#39; -DWEST_PYTHON=C:/ncs/toolchains/ffa23e2f3e/opt/bin/python.exe &amp;#39;-Bc:\nrfWorkspace\radio_test\build&amp;#39; -GNinja -DBOARD=nrf52840dongle_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DOVERLAY_CONFIG:STRING=nrf52840dongle_nrf52840.conf -DDTC_OVERLAY_FILE:STRING=boards/nrf52840dongle_nrf52840.overlay &amp;#39;-DBOARD_ROOT:STRING=c:/nrfworkspace/blinky_pwm;c:/nrfworkspace/radio_test;c:/nrfworkspace/nrf_ex_radiotest;c:/nrfworkspace/radio_test_1&amp;#39; &amp;#39;-Sc:\nrfWorkspace\radio_test&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/451990?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 13:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70154779-91e1-4a83-ae98-2138111bd513</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the address range of the application? The MBR (Master Boot Record) occupies 0x-0xFFF on the nRF52840 dongle, so you need to make sure your application starts after this. In addition, the USB bootloader starts at 0xE0000 and occupies the rest of the flash, so this should also be reserved. This should automatically be configured when you build for the dongle (nrf52840dongle_nrf52840), but if it is not, you can use static partitioning. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/scripts/partition_manager/partition_manager.html#configuring-static-partitions"&gt;Configuring static partitions&lt;/a&gt; for more information on this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/451800?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 16:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e12fb460-0cef-4a31-813f-4e03276c58ad</guid><dc:creator>alliebarrett</dc:creator><description>&lt;p&gt;Hello, I had tried that approach, but there appears to be something wrong because I am not able to click the write button.&lt;br /&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1698077121842v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/451656?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 09:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7cf6440-94b9-4322-805b-e080a5c2a7ce</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to use the zephyr.hex file, under build/zephyr.&lt;/p&gt;
&lt;p&gt;Put the nRF52840 Dongle in Bootloader mode by pressing the reset button as described in &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dongle/UG/nrf52840_Dongle/programming.html"&gt;nRF52840 Dongle - Programming&lt;/a&gt;, then program the zephyr.hex file using the Programmer app.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/451621?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 07:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e41fd13d-07ad-4c1c-a735-dfa1455d4fa9</guid><dc:creator>alliebarrett</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am able to build the file, but I am not sure what file to be putting into the Programmer application to load this onto my device. Can you please provide more direction on how to program the device with the bootloader instead of jlink?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/420654?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 06:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd8a9f83-ca0f-418a-929e-849436470cec</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try building the sample directly instead of creating a new application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/420596?ContentTypeID=1</link><pubDate>Sat, 15 Apr 2023 05:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38ef01d7-c492-4055-91e9-80ad21f7facb</guid><dc:creator>LouisKK007</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for your quikly reply.&lt;/p&gt;
&lt;p&gt;1. I deleted the &amp;quot;raido test &amp;quot; and unziped the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/radio_5F00_test_5F00_dongle.zip"&gt;radio_test_dongle.zip&lt;/a&gt;&amp;nbsp;to new&amp;nbsp; &amp;quot;radio_test&amp;rdquo;&amp;nbsp; to the foolder C:\ncs\v2.3.0\nrf\samples\peripheral&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Then follow to the&amp;nbsp;&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/get_started/build_app_ncs.html"&gt;How to build an application - nRF Connect for VS Code&lt;/a&gt;&amp;nbsp; to create a new application:&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/0167.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3.i added&amp;nbsp; &amp;quot;C:/ncs/v2.3.0/zephyr/include/zephyr/**&amp;quot; to&amp;nbsp; c_cpp_properties.json to solve &amp;quot;Include *.h&amp;quot; issue :&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/1638.png" alt=" " /&gt;&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/pastedimage1681534671632v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;4.&lt;span&gt;&amp;nbsp;Added build Configuration:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1681534709877v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;5. Add &amp;quot;rsource &amp;quot;$srctree/../nrf/samples/bluetooth/direct_test_mode/src/fem/Kconfig&amp;quot;&amp;quot; to Kconfig file to sove the issue:&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/pastedimage1681534857399v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;6.Another issue happened:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2112.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you help to check which wrong configure i have make?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adapt the Radio Test sample to nRF52840 dongle?</title><link>https://devzone.nordicsemi.com/thread/420527?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 13:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:083a4030-564a-4066-8e6c-038344237795</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I recommend using the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/samples/peripheral/radio_test/README.html"&gt;Radio test&lt;/a&gt; sample in nRF Connect SDK instead of nRF5 SDK. For the nRF52840 Dongle, you must use USB instead of UART or solder on a serial interface connection on the dongle for UART. The recommendation is to use USB. &lt;br /&gt;However, modifying an example to use USB and support the dongle is much simpler in nRF Connect SDK than in nRF5 SDK.&lt;/p&gt;
&lt;p&gt;I have added support for the dongle in the nRF Connect SDK radio test sample to show you how it can be done there. &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/radio_5F00_test_5F00_dongle.zip"&gt;devzone.nordicsemi.com/.../radio_5F00_test_5F00_dongle.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I added two files, nrf52840dongle_nrf52840.conf, and boards/nrf52840dongle_nrf52840.overlay, and made some changes to CMakeLists.txt and main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/samples/peripheral/radio_test/CMakeLists.txt b/samples/peripheral/radio_test/CMakeLists.txt
index 971270d4d..ea52c3c13 100644
--- a/samples/peripheral/radio_test/CMakeLists.txt
+++ b/samples/peripheral/radio_test/CMakeLists.txt
@@ -29,6 +29,10 @@ if (CONFIG_RADIO_TEST_USB)
   set(remote_shell_CONF_FILE ${CMAKE_CURRENT_LIST_DIR}/conf/remote_shell/prj_usb.conf)
 endif()
 
+if (${BOARD} STREQUAL &amp;quot;nrf52840dongle_nrf52840&amp;quot;)
+  list(set CONF_FILE &amp;quot;nrf52840dongle_nrf52840.conf&amp;quot;)
+endif()
+
 find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
 project(NONE)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/samples/peripheral/radio_test/src/main.c b/samples/peripheral/radio_test/src/main.c
index ed81fe871..4668df027 100644
--- a/samples/peripheral/radio_test/src/main.c
+++ b/samples/peripheral/radio_test/src/main.c
@@ -8,6 +8,10 @@
 #include &amp;lt;zephyr/drivers/clock_control.h&amp;gt;
 #include &amp;lt;zephyr/drivers/clock_control/nrf_clock_control.h&amp;gt;
 
+#if DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_shell_uart), zephyr_cdc_acm_uart)
+#include &amp;lt;zephyr/usb/usb_device.h&amp;gt;
+#endif
+
 static void clock_init(void)
 {
        int err;
@@ -42,6 +46,14 @@ static void clock_init(void)
 
 void main(void)
 {
+       #if DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_shell_uart), zephyr_cdc_acm_uart)
+       int ret;
+       ret = usb_enable(NULL);
+       if (ret != 0) {
+               printk(&amp;quot;Failed to enable USB\n&amp;quot;);
+               return;
+       }
+       #endif
        printk(&amp;quot;Starting Radio Test example\n&amp;quot;);
 
        clock_init();
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For more information on the nRF Connect SDK, please see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/getting_started.html"&gt;nRF Connect SDK - Getting started&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>