<?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>RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115432/rf-transmission-problem-with-nrf52840-qfaa</link><description>Hi, I am developing a board with an nRF52840 QFAA, which needs to communicate via BLE. I tried loading the test code &amp;#39;ble_app_hrs&amp;#39; from the &amp;#39;nRF5_SDK_17.1.0_ddde560&amp;#39; folder, but when using a spectrum analyzer, I can’t detect the Bluetooth signal, which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2024 13:29:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115432/rf-transmission-problem-with-nrf52840-qfaa" /><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/506150?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 13:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01f667ca-9683-4ec0-92d7-5abedc815cb4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Gabriele,&lt;/p&gt;
&lt;p&gt;I see you are getting feedback on your hardware design in the private ticket.&lt;/p&gt;
[quote user="GabrieleParoli"]I don&amp;#39;t have any accessible microcontroller pins that I can connect to a UART-USB converter to control it from a terminal. Is there a way in the test code that uses BLE to utilize a single channel and thus a single frequency, or is frequency hopping between channels mandatory?[/quote]
&lt;p&gt;Frequency hopping is mandatory in Bluetooth (thoug you don&amp;#39;t have to advertise on all channels).&lt;/p&gt;
[quote user="GabrieleParoli"]From what I&amp;#39;ve read online, they suggested using masks in the &amp;#39;ble_advertising_start&amp;#39; function to transmit only on one channel, but I tried that and didn’t notice any difference.[/quote]
&lt;p&gt;I don&amp;#39;t think that will help much. Even if you only advertice on a&amp;nbsp;single channel the advertising packet is short in time and this is not appropriate for simple RF testing.&lt;/p&gt;
&lt;p&gt;Regarding radio test without UART, you could use the radio test sample from the nRF Connect SDK and do the adjustments described in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112225/ble-radio-testing-tx-continuous-modulated/489790"&gt;this post&lt;/a&gt; to control it via Segger RTT as long as you have a Segger debugger (which could be a DK using the debug out port).&lt;/p&gt;
&lt;p&gt;Note that you can also use RTT logging in the nRF5 SDK, in order to understand more about what is happening in your application. The&amp;nbsp;ble_app_hrs sample support it out of the box if you&amp;nbsp;set NRF_LOG_BACKEND_RTT_ENABLED in sdk_config.h to 1 (you also need to make sure&amp;nbsp;NRF_LOG_ENABLED is 1 in case you have set that to 0 before).&lt;/p&gt;
[quote user="GabrieleParoli"]Regarding the debug pin toggle inside the &amp;#39;heart_rate_meas_timeout_handler&amp;#39; function, I tried changing the HEART_RATE_MEAS_INTERVAL several times, and each time I reprogrammed the microcontroller, I saw the toggle frequency of the pin change as well (I tried 500ms and 50ms). If necessary, I can run more tests next week.[/quote]
&lt;p&gt;This would happen also if the device reset after the&amp;nbsp;HEART_RATE_MEAS_INTERVAL elabsed once and then an error reset the board. That may not be the case, and probably it is not, but it is worth ruling out. Either with a LED toggling only at startup,&amp;nbsp;or even better by getting logging up and running (you can use RTT as mentionned as you don&amp;#39;t have access to pins for UART).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505966?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 20:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81263895-67b7-4bca-b68d-e85a0eb6ef7f</guid><dc:creator>GabrieleParoli</dc:creator><description>&lt;p&gt;Thank you very much, Einar, for the information. The problem with using the radio test example code is that on the board I need to test, I don&amp;#39;t have any accessible microcontroller pins that I can connect to a UART-USB converter to control it from a terminal. Is there a way in the test code that uses BLE to utilize a single channel and thus a single frequency, or is frequency hopping between channels mandatory? From what I&amp;#39;ve read online, they suggested using masks in the &amp;#39;ble_advertising_start&amp;#39; function to transmit only on one channel, but I tried that and didn&amp;rsquo;t notice any difference. Let me know if this option exists so that we can know exactly what to expect on the spectrum analyzer.&lt;/p&gt;
&lt;p&gt;Regarding the debug pin toggle inside the &amp;#39;heart_rate_meas_timeout_handler&amp;#39; function, I tried changing the HEART_RATE_MEAS_INTERVAL several times, and each time I reprogrammed the microcontroller, I saw the toggle frequency of the pin change as well (I tried 500ms and 50ms). If necessary, I can run more tests next week.&lt;/p&gt;
&lt;p&gt;Let me know, and thanks again for your help!&lt;/p&gt;
&lt;p&gt;Gabriele&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505942?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 15:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73746e00-c406-466d-955b-960ed1438614</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We will review your hardware files and reply back on that in the private ticked after the weekend, but I am also interested in basic debugging as there could be non-RF related issues here as well (for instance indicated by your measurement of DEC3, I would expect you see somethign there when the radio is active), and basic debugging may tell us things about that. Essentially verifying that the application runs without error.&lt;/p&gt;
[quote user="GabrieleParoli"]Regarding the possibility of generating a fixed carrier frequency, is that possible?[/quote]
&lt;p&gt;Yes. You can use the &lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/nrf_radio_test_example.html"&gt;radio test example&lt;/a&gt; for that. You only need to modify the UART pins to match your hardware (some pins you can access and hook up to a UART-USB bridge or similar), and then controll it via UART. This is the exampe that we normally recomend for basic radio testing.&lt;/p&gt;
[quote user="GabrieleParoli"]I added a pin toggle in the &lt;code&gt;heart_rate_meas_timeout_handler&lt;/code&gt; function to see if the firmware runs correctly on the microprocessor.[/quote]
&lt;p&gt;That is a good indication. However, can you also check with a debugger? If you have not checked, it coudl for instance be that the device is in a reset loop where the pin is toggeled before resetting (though in that case it would be unlikely that the frequency of the toggling would match the correct frequency which is 1 Hz here unless you have modified it (the HEART_RATE_MEAS_INTERVAL is 1000 ms). If you have problems debugging or observing logging, a simple way to check this is to also add pin toggling in the start of main that would toggle on every reset. If yo see the pin in&amp;nbsp;heart_rate_meas_timeout_handler toggle continiously and the one in the start of main only once, that would indicate that the application is working (and that we need to focus on your hardware design).&lt;/p&gt;
[quote user="GabrieleParoli"]Do you know what the &lt;strong&gt;DEC3&lt;/strong&gt; pin is connected to? The internet mentions it is something related to RF, but it doesn’t specify what exactly. Also, what is &lt;strong&gt;DEC1&lt;/strong&gt; connected to?[/quote]
&lt;p&gt;We have not documented this publicaly so I cannot share details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505928?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 14:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2eb850d-d6e2-4737-b7d8-89cc99233011</guid><dc:creator>GabrieleParoli</dc:creator><description>&lt;p&gt;Ok, done!&amp;nbsp;&lt;br /&gt;Regarding the possibility of generating a fixed carrier frequency, is that possible?&lt;br /&gt;I&amp;#39;m connecting the antenna connector directly to the spectrum analyzer, so no RF is being generated at all from the microcontroller.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505924?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 14:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:070123cd-c21b-4a42-b11b-c1af267b1aa5</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;Can you open a new private case, upload the schematic and gerber files and refer to this case please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505913?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 13:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378e12c9-d4d8-4889-aead-6bf8bba6de2c</guid><dc:creator>GabrieleParoli</dc:creator><description>&lt;p&gt;As mentioned earlier, I am using the example code &amp;#39;ble_app_hrs&amp;#39;. I added a pin toggle in the &lt;code&gt;heart_rate_meas_timeout_handler&lt;/code&gt; function to see if the firmware runs correctly on the microprocessor. Once the code is loaded (no errors), we see the debug pin I just described continuing to toggle high and low, but the Bluetooth is not detected. Using a spectrum analyzer, we are not seeing any spikes around 2.4GHz, which we do see when using the evaluation board.&lt;/p&gt;
&lt;p&gt;When looking at the microprocessor pins with an oscilloscope, we see that &lt;strong&gt;DEC3&lt;/strong&gt; behaves differently on our board, staying fixed at 3.3V, while on the evaluation board, it is around 3V with small spikes downwards at 5Hz (we use a dedicated DC/DC power supply on our board; it is possible that this is the reason?).&lt;/p&gt;
&lt;p&gt;Do you know what the &lt;strong&gt;DEC3&lt;/strong&gt; pin is connected to? The internet mentions it is something related to RF, but it doesn&amp;rsquo;t specify what exactly. Also, what is &lt;strong&gt;DEC1&lt;/strong&gt; connected to?&lt;/p&gt;
&lt;p&gt;Another thing I wanted to ask is if it is possible to generate a fixed carrier frequency, which would help make debugging easier.&lt;/p&gt;
&lt;p&gt;Let me know, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505904?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 13:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61efd719-3621-4bb4-902b-abe5eb7a76a1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="GabrieleParoli"]On our board, the QFAA microprocessor is connected to an external LF clock of 32kHz[/quote]
&lt;p&gt;I see. Then you can ignore my comment about configuring for using LFRC.&lt;/p&gt;
[quote user="GabrieleParoli"]In order to get BLE working, is it necessary to activate the external 32MHz clock using SEGGER Embedded?[/quote]
&lt;p&gt;No, the BLE stack will automatically start the HFXO when it needs an accurate clock.&lt;/p&gt;
[quote user="GabrieleParoli"]Setting &lt;code&gt;NRF_SDH_CLOCK_LF_SRC&lt;/code&gt; to 0 as suggested by the link you shared made the situation worse[/quote]
&lt;p&gt;How did it make the situation worse? Can you elaborate? Also, can you explain about what you have found during debugging? Does the application start? If it does, does it run without issues, or do you see any errors?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505900?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 13:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d4d8285-5353-4319-81fb-50da492c43ea</guid><dc:creator>GabrieleParoli</dc:creator><description>&lt;p&gt;Hi, let me explain the situation better. On our board, the QFAA microprocessor is connected to an external LF clock of 32kHz and an external HF clock of 32MHz. In order to get BLE working, is it necessary to activate the external 32MHz clock using SEGGER Embedded? I&amp;rsquo;m attaching a photo of the settings I have in the &lt;code&gt;sdh_config.h&lt;/code&gt; file, and they are the same ones that work on the evaluation board. Setting &lt;code&gt;NRF_SDH_CLOCK_LF_SRC&lt;/code&gt; to 0 as suggested by the link you shared made the situation worse. If I want to select the external clocks, which lines of code should I change? Thanks!&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration

//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 1
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_ACCURACY_20_PPM 
// &amp;lt;8=&amp;gt; NRF_CLOCK_LF_ACCURACY_10_PPM 
// &amp;lt;9=&amp;gt; NRF_CLOCK_LF_ACCURACY_5_PPM 
// &amp;lt;10=&amp;gt; NRF_CLOCK_LF_ACCURACY_2_PPM 
// &amp;lt;11=&amp;gt; NRF_CLOCK_LF_ACCURACY_1_PPM 

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 7
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RF transmission problem with nRF52840 QFAA</title><link>https://devzone.nordicsemi.com/thread/505881?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 12:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71f14168-29ef-4b49-ae8e-0c8bfff84404</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]What could be causing this?[/quote]
&lt;p&gt;Have you done any debuggging to see what happens on your devices? A typical reason for example projects not running out of the box on custom boards is that they enable the optional 32.768 kHz ocillator. That needs to be disabled as explained &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/114423/error-in-dfu-phase/500913"&gt;in this post&lt;/a&gt; if the the crystal is not used on the board.&lt;/p&gt;
[quote user=""]Is there anything I need to configure differently since I’m using a QFAA instead of a QIAA, or should Bluetooth communication work the same way?[/quote]
&lt;p&gt;The package variant&amp;nbsp;should not matter when it comes to this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>