<?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>PlatformIO Zephyr Settings for nrf21540 FEM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99774/platformio-zephyr-settings-for-nrf21540-fem</link><description>Hi all, 
 I am currently developing with PlaformIO/Zephyr using a custom board based on the nrf52840 coupled with the nrf21540 Front-End-Module / FEM. 
 I appreciate we are a bit crippled in terms of SDK and Zephyr version using PlatformIO and we will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 May 2023 15:04:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99774/platformio-zephyr-settings-for-nrf21540-fem" /><item><title>RE: PlatformIO Zephyr Settings for nrf21540 FEM</title><link>https://devzone.nordicsemi.com/thread/425943?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 15:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93c3ec63-0626-4056-860a-a2f1d56f5bb3</guid><dc:creator>mwill195</dc:creator><description>&lt;p&gt;Thank you for your reply Bendik, testing is working reliably for now!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PlatformIO Zephyr Settings for nrf21540 FEM</title><link>https://devzone.nordicsemi.com/thread/425940?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 14:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc01ed37-f644-415a-80e2-078fa8c46dcd</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on my understanding of the configs, this should be the correct timing values to use.&lt;/p&gt;
&lt;p&gt;The most important part of the timing is that the FEM must be in TX/RX mode before the radio activity starts, if is too late the start of a TX or RX packet will be cut off leading to problems with the connection. Additionally if the PA is turned on after the SoC have started transmitting there will be ringing on the transmitted signal leading to a very wide band of noise around the transmitting frequency.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since you are planning on moving over to the nRF connect SDK after PoC the current timings should be OK as long as you are not having problems with the connection. If you want to be on the safe side you could increase the offsets to make sure the FEM is ready before the radio starts transmitting/receiving.&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><item><title>RE: PlatformIO Zephyr Settings for nrf21540 FEM</title><link>https://devzone.nordicsemi.com/thread/425935?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 14:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cd9b4ec-5c1f-4560-b1b2-8d5cbe614e99</guid><dc:creator>mwill195</dc:creator><description>&lt;p&gt;Replying to my own &lt;span style="font-size:inherit;"&gt;question,&lt;/span&gt; I have read over the timings again and gone with the following for our PoC:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;CONFIG_BT_CTLR_GPIO_LNA_OFFSET=11&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;CONFIG_BT_CTLR_GPIO_PA_OFFSET=11&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;CONFIG_BT_CTLR_GPIO_PDN_CSN_OFFSET=18&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;This is taking the PDN/CSN offset to be PD to PG time - i.e. the time after releasing power down that we can select TX/RX EN. 18 used (17.5).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;The PA and LNA offsets are taken as the time from PG to TRX (the same for both), 11 used (10.5).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;Testing works but I would still like to dig into the code to prove to myself it is operating within the timing parameters of the FEM.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>