<?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>TX pin not set on transmission using FEM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90855/tx-pin-not-set-on-transmission-using-fem</link><description>Hi, 
 
 We use the SKY66112 FEM in front of nRF5340. The FEM is configured in the DTS file. On our ordinary firmware, the TX pin is set and reset automatically. I can see the TX pulse on the scope on transmission. 
 We are also using the Radio Test project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Aug 2022 06:27:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90855/tx-pin-not-set-on-transmission-using-fem" /><item><title>RE: TX pin not set on transmission using FEM</title><link>https://devzone.nordicsemi.com/thread/382135?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 06:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa320fe1-3327-4244-89dd-408dfbef000b</guid><dc:creator>Marius Waage Aabel</dc:creator><description>&lt;p&gt;Problem is now solved.&lt;/p&gt;
&lt;p&gt;The problem was that this line was missing from the net cpu overlay:&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;radio {
      fem = &amp;lt;&amp;amp;nrf_radio_fem&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX pin not set on transmission using FEM</title><link>https://devzone.nordicsemi.com/thread/381731?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 10:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d8e808c-a611-4edd-b0b5-29e2eec0a41a</guid><dc:creator>Marius Waage Aabel</dc:creator><description>&lt;p&gt;Note:&amp;nbsp;GPIO_ACTIVE_LOW is a typo, should be&amp;nbsp;GPIO_ACTIVE_HIGH.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX pin not set on transmission using FEM</title><link>https://devzone.nordicsemi.com/thread/381582?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 12:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5115af03-9387-4d7b-ba1c-5ef95ea743d1</guid><dc:creator>Marius Waage Aabel</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Priyanka,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did not get the provided code to work. I think it may contain typos (0 vs O, etc, error in pin mode, space in node name).&lt;br /&gt;&lt;br /&gt;I think you will be able to reproduce the problem by following this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Create a new project based on the Bluetooth / Radio Test for the nRF5340 MCU&lt;br /&gt;- Add this to the&amp;nbsp;nrf5340dk_nrf5340_cpunet.overlay file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	nrf_radio_fem: fem {
		compatible = &amp;quot;skyworks,sky66112-11&amp;quot;,  &amp;quot;generic-fem-two-ctrl-pins&amp;quot;;
		ctx-gpios = &amp;lt;&amp;amp;gpio0 13 GPIO_ACTIVE_LOW&amp;gt;;
		crx-gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_LOW&amp;gt;;
		crx-settle-time-us =  &amp;lt; 5 &amp;gt;;
		ctx-settle-time-us =  &amp;lt; 5 &amp;gt;;
	};
 };
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-&amp;nbsp;When building you will get errors because the config refers to: &amp;quot;&lt;/span&gt;../../bluetooth/direct_test_mode&amp;quot; in Kconfig and CMakeList.txt. Change the references to: &amp;quot;../nrf/samples/bluetooth/direct_test_mode&amp;quot;&lt;br /&gt;- Build again. Now it will build.&amp;nbsp;&lt;br /&gt;- Flash to nRF5340DK&lt;br /&gt;- Log on to the Radio Test Terminal&lt;br /&gt;- Connect a scope to GPIO0.13 and GPIO0.14 to be able to se the output state.&lt;br /&gt;- Run &amp;quot;start_rx&amp;quot;. Now &lt;strong&gt;GPIO0.14 should be HIGH. It is not.&lt;/strong&gt;&lt;br /&gt;- Run &amp;quot;cancel&amp;quot; and &amp;quot;start_tx_modulated_carrier&amp;quot;. &lt;strong&gt;GPIO0.13 should now be high. It is not.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Note that this error is on nRF5340, it is working like expected on nRF52833.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX pin not set on transmission using FEM</title><link>https://devzone.nordicsemi.com/thread/381470?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 07:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99c8617-7586-4466-9a1e-1242346af402</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Marius,&lt;/p&gt;
&lt;p&gt;One of out colleagues have suggested editing the dts file in the radio_test/baords/nrf5340dk_nrf5340_cpunet.overlay&lt;/p&gt;
&lt;p&gt;It has been tested and works well.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/{
    nrf_ radio_fem: fem {
        compatible = &amp;quot;generic-fem-two-ctr l-pins&amp;quot;:
//      ctx-gpios = &amp;lt;&amp;amp;gpioO 26 O&amp;gt;; 
        crx-gpios = &amp;lt;&amp;amp;gpioO 27 O&amp;gt;; 
        crx-settle-time-us =  &amp;lt; 5&amp;gt;;
        };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX pin not set on transmission using FEM</title><link>https://devzone.nordicsemi.com/thread/381213?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 13:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1cc2544-06c4-4f3f-b93a-4a04f319218d</guid><dc:creator>Marius Waage Aabel</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- SDK 2.0.0&lt;/p&gt;
&lt;p&gt;- By TX I refer to the GPIO pin on the microcontroller defined in the FEM configuration in the device tree files for the board (CTX).&lt;/p&gt;
&lt;p&gt;- As my understanding, the FEM code will handle the two GPIO pins itself?&lt;/p&gt;
&lt;p&gt;- The FEM if added to the device tree as explained in the documentation on how to enable Skyworks FEM&lt;/p&gt;
&lt;p&gt;The thing is, on our ordinary firmware it works like it is supposed to, but not when compiling and flashing the radio_test example project, using the same &amp;quot;board&amp;quot; as on the ordinary firmware. That&amp;#39;s why I wonder if it is something&amp;nbsp;regarding the radio_test project.&lt;/p&gt;
&lt;p&gt;One hint I found: if I try to manipulate the TX pin with:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;gpio_pin_set(ctx_pin_dev, &lt;/span&gt;&lt;span&gt;CTX_PIN&lt;/span&gt;&lt;span&gt;, 1&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;in the function radio_cmd_init() in radio_test.c , it does not change state. It seems like the pin is not mapped. I use the &amp;quot;&lt;a class="reference internal" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/nrf5340/empty_app_core/README.html#nrf5340-empty-app-core"&gt;&lt;span class="std std-ref"&gt;Empty firmware for application core&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&amp;quot; project for the App core, which transfers control of all GPIO pins to the Net core.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX pin not set on transmission using FEM</title><link>https://devzone.nordicsemi.com/thread/381208?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 13:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4b837cf-cc0c-4ece-968b-1ffe3dc36cc3</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Marius,&lt;/p&gt;
&lt;p&gt;Have you referred to the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/peripheral/radio_test/README.html#skyworks-front-end-module:~:text=User%20interface.-,Skyworks%20front%2Dend%20module,refer%20to%20Adding%20support%20for%20Skyworks%20front%2Dend%20module%20for%20details.,-Use%20case%20of"&gt;documentation on Skyworks FEM &lt;/a&gt;? Also, what version of nRF Connect SDK are you using? Are you referring to the TX pin on the FEM? Is the TX pin enabled? i.e. is it set to later or not set at all? Have you checked with the datasheet whether it is active high or low?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>