<?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>FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118569/fem-tx-gain-configuration</link><description>Hi, 
 I&amp;#39;m working with the nRF21540 Development Bundle (DB) , which includes the nRF21540 DK and nRF21540 EK . I need to use the FEM module with the GPIO+SPI interface to boost TX power. 
 Changes Made 
 I added the following line to CMakeLists.txt while</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 15 Feb 2025 02:57:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118569/fem-tx-gain-configuration" /><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/523115?ContentTypeID=1</link><pubDate>Sat, 15 Feb 2025 02:57:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cefe7be-3109-452e-9ed1-26b2d4d06089</guid><dc:creator>Chandu@1996</dc:creator><description>&lt;p&gt;Using only the NRF21540-DK board, I conducted testing by adding FEM configurations in the firmware. I utilized the BLE Mesh Chat example to send 100 bytes of data to the receiver. Following previous suggestions, I measured power consumption using the PPK kit at test points TP26 and TP48. The results showed power consumption exceeding 95mA.&lt;br /&gt;&lt;br /&gt;Thanks for the support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/522389?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 10:05:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8443bdc-7e58-4a49-aaff-ae4b4cc3d86c</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Thanks for the picture, this clears thing up for me. The nRF21540EK is mounted on the nRF21540DK. The nRF21540DK already have a nRF52840+nRF21540 so there is no need to add the nRF21540EK on top of it. The EK is intended to be used with other development kit if you want to use a FEM with for example the nRF5340.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When using the nRF21540DK you don&amp;#39;t need to modify the device tree. The board files for the nRF21540DK already have the correct device tree node for the nRF21540, just build for the nrf21540dk/nrf52840 target.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The RSSI viewer app can&amp;#39;t really be used for measuring the output power, but you can use it to see if the FEM is actually working, as you will se a higher RSSI when using the nRF21540DK vs a nRF52840DK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To use the nRF21540EK with a development kit you also need a MXHT83QE3000 cable to connect the RF output of the development kit to the TRX connector on the EK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/522351?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 08:12:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0d039f-084a-418b-9130-06a662811315</guid><dc:creator>Chandu@1996</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;As suggested, by enabling&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CONFIG_RADIO_TEST_POWER_CONTROL_AUTOMATIC=y (also reverted the previous changes in proj.conf)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Thereby using total_output_power command to set the total ouput power(&lt;span&gt;aka nRF52840 output power + nRF21540 Tx gain)&lt;/span&gt;&lt;br /&gt;&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/pastedimage1739261381235v1.png" /&gt;&lt;br /&gt;Note: Set up env is also added.&lt;br /&gt;And in radio test documentation (&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/peripheral/radio_test/README.html#testing"&gt;https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/peripheral/radio_test/README.html#testing&lt;/a&gt;), it&amp;nbsp;explains about two ways of radio tetesting. Im using RSSI viewer app to test the tx power. But the app has configurable levels only from -110 to -20dbm.&amp;nbsp;&amp;nbsp;How to verify the FEM amplifier with +21dbm settings using RSSI viewer app?&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/ac83eebf_2D00_a18d_2D00_4a43_2D00_bb33_2D00_7a3cf98abfa5.JPEG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/522219?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 14:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7be6d43a-d173-4736-bf15-d20490227131</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Apologies for the delay.&lt;/p&gt;
&lt;p&gt;First of all you should not use 8dBm output power from the nRF52840 with the nRF21540, the maximum tolerated input power on the TRX pin is +5dBm.&lt;/p&gt;
[quote user="Chandu@1996"]&lt;p&gt;I flashed the &lt;strong&gt;radio test example&lt;/strong&gt; on &lt;strong&gt;Device A&lt;/strong&gt; and the &lt;strong&gt;RSSI viewer program&lt;/strong&gt; on &lt;strong&gt;Device B&lt;/strong&gt;.&lt;br /&gt; Device A was set to TX mode using the following commands (as per the &lt;code&gt;README.md&lt;/code&gt; instructions):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;data_rate ble_2Mbit&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;start_channel 40&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;start_tx_modulated_carrier&lt;/code&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0702.pastedimage1738846222578v2.png" alt=" " /&gt;&lt;/li&gt;&lt;/ol&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Based on this screen shot it looks like there is no transmission at all, with 2440MHz being low compared to the rest of the spectrum.&lt;/p&gt;
&lt;p&gt;Can you share a picture of your setup?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Chandu@1996"]&lt;h4&gt;&lt;strong&gt;With FEM (nRF21540-EK)&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Changes made in &lt;code&gt;proj.conf&lt;/code&gt;:&lt;/p&gt;
&lt;div style="max-width:100%;overflow:auto;max-height:none;"&gt;&lt;pre&gt;&lt;code&gt;CONFIG_FEM=y
CONFIG_RADIO_TEST_POWER_CONTROL_AUTOMATIC=n
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;radio peripheral output_power&lt;/strong&gt; was set to &lt;strong&gt;8 dBm&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;FEM module&lt;/strong&gt; was configured using the &lt;code&gt;tx_power_control&lt;/code&gt; command to set &lt;code&gt;FEM_TX_PWR&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;However, the &lt;strong&gt;total output power&lt;/strong&gt; still displayed &lt;strong&gt;8 dBm&lt;/strong&gt; instead of the expected higher value.&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;parameters_print only show the nRF52840 configuration, since you are building without automatic power control. If you enable automatic power control you can use the total_output_power command to set the total output power, aka nRF52840 output power + nRF21540 Tx gain.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/521857?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 06:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c8f90e7-b087-49e0-ae63-6207c8b771fc</guid><dc:creator>Chandu@1996</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt; I checked the test points(TP26,TP48) on the nRF21540-DK alone, after flashing the radio test example with &lt;code&gt;CONFIG_RADIO_TEST_POWER_CONTROL_AUTOMATIC=y&lt;/code&gt; enabled. The current measured at these points is around 13-14mA. However, when measuring at the P22 connector (pins 1 and 2), it shows only 0.90mA.&lt;/p&gt;
&lt;p&gt;Am I measuring incorrectly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/521850?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 05:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95263ff6-3454-4e7c-8cb0-9eac8d4779ed</guid><dc:creator>Chandu@1996</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Waiting for your reply.&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/521723?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 12:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06450dc-eea7-4066-be26-82dccf907573</guid><dc:creator>Chandu@1996</dc:creator><description>&lt;p&gt;I tested the radio functionality using two boards:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Device A&lt;/strong&gt;: nRF21540DK&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Device B&lt;/strong&gt;: nRF52840-DK&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;strong&gt;Test Setup&lt;/strong&gt;&lt;/h3&gt;
&lt;h4&gt;&lt;strong&gt;Without FEM (nRF21540-EK)&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;I flashed the &lt;strong&gt;radio test example&lt;/strong&gt; on &lt;strong&gt;Device A&lt;/strong&gt; and the &lt;strong&gt;RSSI viewer program&lt;/strong&gt; on &lt;strong&gt;Device B&lt;/strong&gt;.&lt;br /&gt; Device A was set to TX mode using the following commands (as per the &lt;code&gt;README.md&lt;/code&gt; instructions):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;data_rate ble_2Mbit&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;start_channel 40&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;start_tx_modulated_carrier&lt;/code&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&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/pastedimage1738846222578v2.png" alt=" " /&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;strong&gt;With FEM (nRF21540-EK)&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Changes made in &lt;code&gt;proj.conf&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-plaintext"&gt;CONFIG_FEM=y
CONFIG_RADIO_TEST_POWER_CONTROL_AUTOMATIC=n
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;radio peripheral output_power&lt;/strong&gt; was set to &lt;strong&gt;8 dBm&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;FEM module&lt;/strong&gt; was configured using the &lt;code&gt;tx_power_control&lt;/code&gt; command to set &lt;code&gt;FEM_TX_PWR&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;However, the &lt;strong&gt;total output power&lt;/strong&gt; still displayed &lt;strong&gt;8 dBm&lt;/strong&gt; instead of the expected higher value.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Can you&amp;nbsp;help me troubleshooting, why the FEM module isn&amp;#39;t increasing the output power?&lt;/p&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/pastedimage1738846146293v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/521491?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 09:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b5c243f-d51f-4f65-ab51-74234088be9a</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;The test points are only relevant for the nRF21540-DK, the nRF21540-EK have a separate power measurement connector P5. To use it you need to remove R3, this is shown in the nRF21540-EK documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf21540_ek/page/UG/nrf21540_DK/prepare_board.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf21540_ek/page/UG/nrf21540_DK/prepare_board.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/521438?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 03:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7fc96fb-dbd3-4724-8ab0-ff9588baa24b</guid><dc:creator>Chandu@1996</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt; The test points you mentioned are connected to the nRF21540 SOC on the DK board. However, when using the nRF21540-EK, I&amp;#39;m bypassing the SOC on the DK board. Do you think it&amp;#39;s still a viable option to check those test points in this setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/521088?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2025 11:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:132259ee-759e-4760-a70f-f5339072af95</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;If you measure current on the nRF21540 DK then the power to the nRF21540 doesn&amp;#39;t go through the measurement header: you only measure the current to the nRF52840 (you can see this in the schematic of the DK).&lt;/p&gt;
&lt;p&gt;If you use the DK then the output power will be -20/30/40dBm (dont&amp;#39; remember the number from the top of my head but it is very low) if you haven&amp;#39;t gotten the nRF21540 enabled correctly. This should be possible to detect by looking at the RSSI on the receiver side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FEM Tx Gain Configuration</title><link>https://devzone.nordicsemi.com/thread/521073?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2025 10:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3e53910-7c9f-4b17-b860-f541335dc8fc</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The current measurement connector on the nRF21540DK only measures the current draw of the nRF52840, to measure the current draw of the nRF21540 you need to cut solder bridge SB16 and connect the ammeter between TP26 and TP48:&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/pastedimage1738578579388v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]&lt;ul&gt;&lt;li&gt;Are there any additional configurations required to ensure the &lt;strong&gt;FEM is correctly enabled&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;How can I confirm that the &lt;strong&gt;FEM is active during TX&lt;/strong&gt;?&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;The configuration looks correct, to verify that the FEM is working you can use the RSSI Viewer application in &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop"&gt;nRF Connect for Desktop&lt;/a&gt;. If you test the same application on a nRF52840DK you should see that the measured RSSI is lower than on the nRF21540DK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Bendik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>