<?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>Testing nRF5340 DK + nRF21540 EK using ncs 2.7 with child Image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117743/testing-nrf5340-dk-nrf21540-ek-using-ncs-2-7-with-child-image</link><description>Hello, 
 I want to test nRF21540 EK with a nRF5340 DK. 
 I am using ncs 2.7 , and don&amp;#39;t want to use sys build . I want to use child image/ hci_ipc . 
 
 I modified ncs/zephyr/samples/bluetooth/beacon sample to include hci_ipc_prj.conf file for MPSL Configurations</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jan 2025 16:31:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117743/testing-nrf5340-dk-nrf21540-ek-using-ncs-2-7-with-child-image" /><item><title>RE: Testing nRF5340 DK + nRF21540 EK using ncs 2.7 with child Image</title><link>https://devzone.nordicsemi.com/thread/518892?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 16:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0483d4d6-f656-43d6-af6c-823459b8e46f</guid><dc:creator>MJJ</dc:creator><description>&lt;p&gt;&lt;strong&gt;From:&lt;/strong&gt; Dhara Solanki &amp;lt;dsolanki@life360.com&amp;gt; &lt;br /&gt; &lt;strong&gt;Sent:&lt;/strong&gt; Tuesday, January 14, 2025 6:56 PM&lt;br /&gt; &lt;strong&gt;To:&lt;/strong&gt; Veilleux, Daniel &amp;lt;Daniel.Veilleux@nordicsemi.no&amp;gt;&lt;br /&gt; &lt;strong&gt;Cc:&lt;/strong&gt; Frey, Craig &amp;lt;Craig.Frey@nordicsemi.no&amp;gt;; Dave Stude &amp;lt;dstude@life360.com&amp;gt;; Omair Qazi &amp;lt;oqazi@life360.com&amp;gt;; J. Jones, Michael &amp;lt;michael.j.jones@nordicsemi.no&amp;gt;; Riddhi Patel &amp;lt;rpatel@life360.com&amp;gt;&lt;br /&gt; &lt;strong&gt;Subject:&lt;/strong&gt; Re: [Life360][Nordic] nrf21540 spi control for Tx gain&lt;/p&gt;
&lt;p&gt;Thanks Daniel. I’ll give this a try tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On Tue, Jan 14, 2025 at 5:27 PM Veilleux, Daniel &amp;lt;Daniel.Veilleux@nordicsemi.no&amp;gt; wrote:&lt;/p&gt;
&lt;p&gt;Hello Dhara,&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need any jumpers. I don&amp;#39;t have an nRF21540 shield here but I can see GPIO and SPI activity on the headers. The FEM is controlled by the MPSL — which isn&amp;#39;t used by default in the Zephyr samples — so I started with &amp;quot;nrf/samples/bluetooth/peripheral_uart&amp;quot; in &lt;strong&gt;v2.7.0&lt;/strong&gt;. Then:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open a shell:&lt;ol&gt;
&lt;li&gt;nrfutil toolchain-manager launch --shell --chdir &amp;quot;/home/foolsday/workspace/ncs&amp;quot; --ncs-version v2.7.0&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Extract the attached zip file to create a &amp;quot;child_image&amp;quot; dir containing cpunet conf and overlay files. This accomplishes two important things:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8171.child_5F00_image.zip"&gt;devzone.nordicsemi.com/.../8171.child_5F00_image.zip&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;ol&gt;
&lt;li&gt;CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y&lt;/li&gt;
&lt;li&gt;Disable UART0&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;Build:&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;&lt;ol&gt;
&lt;li&gt;west build -p -b nrf5340dk/nrf5340/cpuapp --no-sysbuild -- -DSHIELD=nrf21540ek_fwd -Dhci_ipc_SHIELD=nrf21540ek&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;Flash&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;&lt;ol&gt;
&lt;li&gt;west flash --recover&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Here is what the default GPIO pins looks like during advertising:&lt;/p&gt;
&lt;p&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/0247.GPIO.png" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know how it goes!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing nRF5340 DK + nRF21540 EK using ncs 2.7 with child Image</title><link>https://devzone.nordicsemi.com/thread/518335?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2025 22:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c74a34c-02a6-4596-8726-7135252adbe3</guid><dc:creator>DHARA</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We will be using GPIO+SPI config.&lt;/p&gt;
&lt;p&gt;If you can help me test nRf21540 working even with sysbuild, with any sample, any way, I would appreciate it.&lt;/p&gt;
&lt;p&gt;I did the following:&lt;/p&gt;
&lt;div&gt;1)&amp;nbsp;&lt;b&gt;&lt;i&gt;ncs 2.7&lt;/i&gt;&lt;/b&gt;&amp;nbsp;on linux&lt;/div&gt;
&lt;div&gt;2) Sample:&amp;nbsp;&lt;b&gt;&lt;i&gt;ncs/zephyr/samples/bluetooth/beacon&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;3)&amp;nbsp;&lt;b&gt;&lt;i&gt;Original unmodified nrf5340dk&lt;/i&gt;&lt;/b&gt;&amp;nbsp;files&lt;/div&gt;
&lt;div&gt;4) Build command:&lt;b&gt;&amp;nbsp;&lt;i&gt;nrfutil toolchain-manager launch --ncs-version v2.7.0 west build -- --pristine -b nrf5340dk/nrf5340/cpuapp --&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;-DSHIELD=nrf21540ek_fwd -Dhci_ipc_SHIELD=nrf21540ek&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;5) Flash command:&amp;nbsp;&lt;b&gt;&lt;i&gt;nrfutil toolchain-manager launch --ncs-version v2.7.0 west flash&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;But the board beacon RF signal is only coming from the nRF5340DK BLE Antenna&amp;nbsp;port, not ANT1 on nRF21540-EK. I also checked the logic analyzer traces on the interface pins but there is no activity. I only get High on vdd on nRf21540.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&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/pastedimage1736892306953v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks,&lt;br /&gt;Dhara&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing nRF5340 DK + nRF21540 EK using ncs 2.7 with child Image</title><link>https://devzone.nordicsemi.com/thread/517478?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 13:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93db4817-ec4a-4300-9367-657e418e52a3</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1.Work in progress from my side&lt;/p&gt;
&lt;p&gt;2. This is correct, when you are using a custom board with a non ek then you will need to create an overlay for the board where you have added the necessary devicetree entries. Please see &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/fem_software_support.html"&gt;Enabling FEM support&lt;/a&gt;&amp;nbsp;(adding it just in case, you have already enabled the Kconfig options).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do you plan to control the FEM? I would at least have a look &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/fem_nrf21540_gpio.html"&gt;here&lt;/a&gt; on how to set up the different ways to control it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing nRF5340 DK + nRF21540 EK using ncs 2.7 with child Image</title><link>https://devzone.nordicsemi.com/thread/517127?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 06:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33160760-23a5-4b5e-a68e-ba9928fe7d30</guid><dc:creator>DHARA</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;A) parent-child image with modified device tree files:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Ok yes I tried with --no-sysbuild.&lt;/p&gt;
&lt;p&gt;I was also adding the hci_ipc_prj.conf to app image Cmaklists instead of net image cmakelists file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I added it to samples/zephyr/bluetooth/hci_ipc, as the beacon sample was using this for netcore image.&lt;/p&gt;
&lt;p&gt;Then it showed me the hci_ipc/zephyr/.config file with correct MPSL settings and such as per the document.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But when I test, I see error in hci_core.c file at below location, and there is no beaconing.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; err = bt_dev.drv-&amp;gt;open();&lt;br /&gt; if (err) {&lt;br /&gt; LOG_ERR(&amp;quot;HCI driver open failed (%d)&amp;quot;, err);&lt;br /&gt; return err;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We need to move to using sysbuild but for now we are still using parent-child image and I&amp;nbsp;need to control nRF21540 using multi-image build.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;B) parent-child image with&amp;nbsp;-&lt;span&gt;DSHIELD=nrf21540ek&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Since above did not work for some reason, I tried without device tree changes, only with the CMAKE option of&amp;nbsp;&lt;em&gt;&lt;strong&gt;&amp;nbsp;-&lt;span&gt;DSHIELD=nrf21540ek&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I did see beaconing and no error, but looked like the advertising was coming from nRF5340 antenna itself and the nRf21540 was totally unused.&lt;/p&gt;
&lt;p&gt;I was expecting TX_EN to go high every 100 ms or so (adv interval) but that did not happen. SPI_SCK also remained low the whole time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;C)&lt;em&gt;&lt;strong&gt; sysbuild with&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;-&lt;span&gt;DSHIELD=nrf21540ek&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Again I see same result as in B and no effect of using the nRf21540 EK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;D)&amp;nbsp;&lt;em&gt;&lt;strong&gt;sysbuild with&lt;/strong&gt;&lt;strong&gt; -- -DSHIELD=nrf21540ek_fwd -Dhci_ipc_SHIELD=nrf21540ek&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As per&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/fem/21540ek_dev_guide.html"&gt;Developing with the nRF21540 EK&lt;/a&gt;&amp;nbsp;need above config for multicore soc like nrf5340.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Again I see same result as&amp;nbsp;&lt;/span&gt;&lt;span&gt;in B&amp;nbsp;&lt;/span&gt;&lt;span&gt;and no effect of using the nRf21540 EK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Questions:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;1. Will the&amp;nbsp;&lt;span style="color:#ff0000;"&gt;-- -DSHIELD=nrf21540ek_fwd -Dhci_ipc_SHIELD=nrf21540ek&lt;/span&gt; also work with multi-image builds?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;2. I ultimately want to &lt;span style="color:#ff0000;"&gt;use nRf21540 chip on our custom board&lt;/span&gt;. So we will not be using nRf21540 EK as is, but will need modified config.&amp;nbsp;&lt;/span&gt;&lt;span style="color:#000000;"&gt;In this case, &lt;span style="color:#ff0000;"&gt;the device tree changes will still be needed right?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;Not sure what to do next to get the nRF21540 to work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing nRF5340 DK + nRF21540 EK using ncs 2.7 with child Image</title><link>https://devzone.nordicsemi.com/thread/516991?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 13:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0320fe3a-9c21-4cfd-89d0-fe64867c1a80</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Dhara,&lt;/p&gt;
&lt;p&gt;In v2.7.0 you must specify that you do not want to use sysbuild when building applications that are located inside your west workspace. You can do this by adding --no-sysbuild to the build command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf5340dk/nrf5340/cpuapp --no-sysbuild&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The recommended method of including the nRF21540 EK is by providing it as a CMake option in the command with -DSHIELD=nrf21540ek. You do not need to add it to devicetree manually when adding it as a CMake option. Please see &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/fem/21540ek_dev_guide.html"&gt;Developing with the nRF21540 EK&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;Please note that parent-child image is deprecated in v2.7.0, and sysbuild is the recommended method.&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>