<?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>nRF21540 FEM configuration with ESB protocol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121241/nrf21540-fem-configuration-with-esb-protocol</link><description>Hello all, 
 I am having issues with the configuration of the FEM nRF21540 on the costum board Fanstel BT840NE with the Enhanced ShockBurst (ESB) protocole. 
 We are not able to set the PA output TX to a maximum of 20 dBm. 
 Range tests show that performance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jun 2025 07:17:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121241/nrf21540-fem-configuration-with-esb-protocol" /><item><title>RE: nRF21540 FEM configuration with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/540268?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2025 07:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c21555f8-5a2a-4d29-8e6c-15d426c5a382</guid><dc:creator>ryansmith532</dc:creator><description>&lt;hr data-start="213" data-end="216" /&gt;
&lt;p data-start="218" data-end="365"&gt;Thanks for sharing your setup &amp;mdash; it&amp;#39;s definitely frustrating when expected TX power isn&amp;#39;t being reached, especially when range is a critical factor.&amp;nbsp;&amp;nbsp;Have you confirmed whether the nRF21540&amp;#39;s &lt;code data-start="474" data-end="480"&gt;MODE&lt;/code&gt; and &lt;code data-start="485" data-end="492"&gt;TX_EN&lt;/code&gt; GPIOs are being toggled correctly during transmission? Misalignment here can prevent the FEM from entering TX mode properly. &lt;span style="color:#ffffff;"&gt;&lt;a style="color:#ffffff;" href="https://poorbunnygame.io/"&gt;poor bunny&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 FEM configuration with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/536014?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 13:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba508242-f2b3-464d-b643-4c1b13861c70</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you tried&amp;nbsp;just&amp;nbsp;building for the&amp;nbsp;&lt;span&gt;nrf21540dk/nrf52840, but update the overlay to fit your gpio pins for the&amp;nbsp;BT840NE?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/esb/esb_ptx/README.html#esb-ptx"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/esb/esb_ptx/README.html#esb-ptx&amp;nbsp;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then I expect this should work out of the box.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 FEM configuration with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/535718?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 08:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e91a5cc-7fcd-4798-b18b-103a7740c5df</guid><dc:creator>Yanis</dc:creator><description>&lt;p&gt;I thought that&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA=20 is only for BT protocole not ESB.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I added&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_ANTENNA=20 but could not build (SDK 2.7.0) the code because of the following error :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;c:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: modules/nrf/subsys/bluetooth/controller/lib..__nrf__subsys__bluetooth__controller.a(hci_driver.c.obj): in function `receive_signal_raise&amp;#39;:&lt;br /&gt;C:/ncs/v2.7.0/nrf/subsys/bluetooth/controller/hci_driver.c:296: undefined reference to `mpsl_work_q&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;I included the following headers :&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr/bluetooth/hci.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/hci_vs.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is my prj.conf&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_BT=y
CONFIG_BT_CTLR=y
CONFIG_BT_HCI=y
CONFIG_GPIO=y

CONFIG_MPSL=y
CONFIG_MPSL_FEM=y
CONFIG_MPSL_FEM_ONLY=y
CONFIG_MPSL_FEM_NRF21540_GPIO=y
CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=n
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA=20
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTB=10

CONFIG_BT_CTLR_TX_PWR_ANTENNA=27
CONFIG_MPSL_FEM_NRF21540_RUNTIME_PA_GAIN_CONTROL=n&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 FEM configuration with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/535537?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 11:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67b1e1b4-833c-470e-b90d-12cee7180aa4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I get the impression you are not using the MPSL FEM driver, which should take of this. Also, it will by default use 0dBm if you don&amp;#39;t set&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA=20.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to control this manually, I guess you need to set TX mode&amp;nbsp;by set TX pin high and RX pin low.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 FEM configuration with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/535393?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 16:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a58bd49-9d23-4f6b-9b72-a8e4c2112924</guid><dc:creator>Yanis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late response, I took time to further investigate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First of all, I am using SDK 2.7.0.&lt;/p&gt;
&lt;p&gt;We are using an external antenna with a ufl connexion cable, so the placement of the module is not that important.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve tested in radiated using a nRF52840 DK which&amp;nbsp;measures&amp;nbsp;the RSSI of the signal sent by the&amp;nbsp;&lt;span&gt;FEM nRF21540&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I also measured the current consumption of the nRF21540 using the ppk2.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems that when I set :&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB&lt;/span&gt;&lt;span&gt;=10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The RSSI is -26dBm and the current is 65 mA&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and when I set :&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The RSSI is -32 dBm and the current is 60 mA&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The gain at 10 seems to give better performance and more consumption compared to the gain at 20. It is a little confusing.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540 FEM configuration with ESB protocol</title><link>https://devzone.nordicsemi.com/thread/534271?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 11:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ee64618-62c7-4c71-9d54-9c0839a681c3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It would help to know what difference you see, e.g. conducted or radiated. Also make sure you have followed the guidelines of the module manufacturer of placement of the module.&lt;/p&gt;
&lt;p&gt;Looking at the answer here it should be straight forward:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112200/how-to-control-nrf21540-in-esb"&gt;How to control NRF21540 in ESB&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>