<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>MDBT42Q BLE not advertising when using simple SDK ble examples</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87869/mdbt42q-ble-not-advertising-when-using-simple-sdk-ble-examples</link><description>Hi everyone, and thanks for all the help provided on this site ! 
 I have tried to flash a MDBT42Q using the nrf82832-DK (PCA10040) and it works fine for simple peripheral examples (like GPIOs, entering sleep modes...). 
 But when I try to upload ble</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Fri, 13 May 2022 13:59:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87869/mdbt42q-ble-not-advertising-when-using-simple-sdk-ble-examples" /><item><title>RE: MDBT42Q BLE not advertising when using simple SDK ble examples</title><link>https://test-devzone.nordicsemi.com/thread/367868?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 13:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f1dfc5-fcf5-4a92-8d67-6293aa6acd80</guid><dc:creator>user116018</dc:creator><description>&lt;p&gt;Ok, new update,&lt;/p&gt;
&lt;p&gt;I found &lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/77569/nrf_sdh_clock_lf_rc_ctiv-and-nrf_sdh_clock_lf_rc_temp_ctiv-value-deep-understanding"&gt;this topic&lt;/a&gt; which indicated the following values for the parameters :&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_SDH_CLOCK_LF_RC_CTIV&lt;/span&gt;=16 and&amp;nbsp;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV=2&lt;/p&gt;
&lt;p&gt;I changed it like this in the sdk_config.h file, and it worked !&lt;/p&gt;
&lt;p&gt;So to sum up the changes I had to make for it work :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use Segger version 6.20 or older&lt;/li&gt;
&lt;li&gt;Comment out the line APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&lt;/li&gt;
&lt;li&gt;Change NRF_SDH_CLOCK_LF_SRC to 0 and NRF_SDH_CLOCK_LF_ACCURACY to 1 to activate the internal oscillator&lt;/li&gt;
&lt;li&gt;Change &lt;span&gt;NRF_SDH_CLOCK_LF_RC_CTIV&lt;/span&gt;=16 and&amp;nbsp;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV=2&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MDBT42Q BLE not advertising when using simple SDK ble examples</title><link>https://test-devzone.nordicsemi.com/thread/367867?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 13:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5de35c7d-7af1-47cb-bdd9-8ac6eb3c30cc</guid><dc:creator>user4240</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the update. Yes, that makes sense, you have to specify a calibration interval when and also declare the correct accuracy when using the internal RC oscillator as the 32Khz clock source.&lt;/p&gt;
&lt;p&gt;These are the configs we typically recommend for this clock source:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;/h&amp;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 0
#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 16
#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 2
#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 1
#endif
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MDBT42Q BLE not advertising when using simple SDK ble examples</title><link>https://test-devzone.nordicsemi.com/thread/367866?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 13:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3806adb7-20d1-4671-8b5c-a87d15fea530</guid><dc:creator>user116018</dc:creator><description>&lt;p&gt;Hi Vidar, &lt;br /&gt;&lt;br /&gt;Thank you very much for your precise and prompt reply ! &lt;br /&gt;I have switched back to Segger V 5.70 that I used previously and commented out the line you suggested, but still with no luck.&lt;/p&gt;
&lt;p&gt;I went a bit further though : when debugging, I get the error &amp;quot;app: ERROR 7 [NRF_ERROR_INVALID_PARAM]&amp;quot; when calling nrf_sdh_enable_request(). &lt;br /&gt;According to &lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/48791/nrf_sdh_enable_request-returns-7-invalid-parameter"&gt;this topic&lt;/a&gt; it might be related to the fact that I changed the&amp;nbsp;NRF_SDH_CLOCK_LF_SRC to 0 (&amp;quot;RC&amp;quot;) but I should also have changed the values of&amp;nbsp;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV and&amp;nbsp;NRF_SDH_CLOCK_LF_RC_CTIV.&amp;nbsp;&lt;br /&gt;The problem is that I don&amp;#39;t know to what values I should put those. Any idea ?&lt;/p&gt;
&lt;p&gt;I will look further and upload any findings in here. &lt;br /&gt;&lt;br /&gt;Thanks again for your support !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MDBT42Q BLE not advertising when using simple SDK ble examples</title><link>https://test-devzone.nordicsemi.com/thread/367835?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 11:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d9b227-03ef-4eb3-9c06-e2fb51a9ee2a</guid><dc:creator>user4240</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would recommend you to use an older version (&amp;lt;v6.20) of Segger embededded studio that is not affected by the issue discussed here: &lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/85405/nrf5-sdk-17-1-0-examples-is-not-compiling-in-latest-ses-6-20a/"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/85405/nrf5-sdk-17-1-0-examples-is-not-compiling-in-latest-ses-6-20a/&lt;/a&gt;. Otherwise you will have to create patch for retarget.c file to get printf to print out data on UART. &lt;/p&gt;
&lt;p&gt;As to why it&amp;#39;s not advertising, maybe you are getting a code assert due to a &amp;quot;APP_UART_COMMUNICATION_ERROR&amp;quot; due to a floating RX input? Do you see the same if you comment the line highlighted below? &lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1652442343486v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>