<?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>nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56923/nrf_sdh_enable_request-causes-restart-with-custom-board</link><description>I have a custom board uses nRF52810. When I flash my board with examples include SoftDevice (sdk 16.0.0) nRF52810 restarts. I am debugging with oscillascop and seeing that the code stucks on ble_stack_init(), actually nrf_sdh_enable_request(). It returns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jan 2020 13:40:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56923/nrf_sdh_enable_request-causes-restart-with-custom-board" /><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230642?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d9aa6de-e985-4fab-95eb-a8125929bc88</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad we were able to find out what the root cause was.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best of luck and regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230641?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d9bfef5-b2b4-4b4b-b816-515c964fb06d</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;Hi Mr. Romo.&lt;/p&gt;
&lt;p&gt;Thanks much for your time and attention, you supported me effectively. So, we have found what the problem is.&lt;/p&gt;
&lt;p&gt;There was some assembly problems, we fixed. You can close the case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230640?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 08:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a1a6f8a-50b3-404e-9a04-2d081e42026a</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;Mr. Romo, thanks for your attention. I will be doing necessary changes and then give&amp;nbsp;feedback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230639?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 07:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef9dd1a3-4ee9-4300-9958-1064ef3f5853</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve taken a look at your schematics and I have some notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The VDD pins should ave capacitors between the VCC_nRF net and GND. Please see the reference circuitry and make sure you get the correct values.&lt;/li&gt;
&lt;li&gt;The capacitor from DEC4 should be 1.0µF, not 4.7µF.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Other than that, it seems fine, but I recommend these changes are made to make sure the boards work optimally. DEC2 is fine to leave not connected. What limited success did you have when soldering the HF crystal onto the board correctly?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230638?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 13:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3616e6ba-f846-4358-b9d9-31dddebe6c47</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;The 32mHz crystal that we used had 4 legs and it was polar. It was assembled uncorrectly. Then, we flipped crystal 90 degrees and soldered again. We had limited success with only one board.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a40cb70300e049959af3497b20bbb304/WhatsApp-Image-2020_2D00_01_2D00_17-at-15.44.58.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;There might be some other problems, we have nothing connected to the DEC2 pin of SoC, should there be ?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a40cb70300e049959af3497b20bbb304/ss.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230637?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 12:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfdd79a8-fbeb-42d6-9efb-167436d47417</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would like you to upload the schematics of your board, as well as a high-resolution picture of the board if possible so I can take a closer look. I set the case to private mode so that only you and Nordic engineers will be able to see this ticket, and it will be treated with confidentiality.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230636?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 08:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9c9f6c3-f45a-4b8d-81f2-1a7fdc61bb0f</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;I am using Segger Embedded Studio as IDE and &lt;a href="https://www.ebay.com/itm/OB-ARM-Debugger-Programmer-Downloader-replace-v8-SWD-M74-For-J-Link-/202762866437"&gt;this one&lt;/a&gt; to flash.&lt;/p&gt;
&lt;p&gt;I have almost 100 boards problematical contains nRF52810.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230635?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 07:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9eee2b-f718-4459-bfb5-f4ef0fc06eee</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The only step that should be necessary in order to run a PCA10040e example on an nRF52810 SoC should be to remove the defines you mention. The reason I&amp;#39;m leaning toward this being a hardware issue is due to the fact that you&amp;#39;re not able to start the HF clock with the snippet you posted below.&lt;/p&gt;
&lt;p&gt;How do you flash the project to your device? What IDE are you using?&lt;/p&gt;
[quote user="cann0021"]I have worked on&amp;nbsp;several seperated boards.[/quote]
&lt;p&gt;&amp;nbsp;Does this mean that you see this same issue on several presumably identical boards?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230634?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 14:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3289453-23d0-42da-8e20-62e650ce9fcd</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;Solders were made properly, I am sure the capacitors are indeed 12pF. I have worked on&amp;nbsp;several seperated boards.&lt;/p&gt;
&lt;p&gt;What if the problem is about the software? What if I am missing something critical?&lt;/p&gt;
&lt;p&gt;What should I do from scratch to make my board work. For example, if I want to work with beacon example in SDK, what is the correct way to do it ?&lt;br /&gt;&lt;br /&gt;-I am using the configuration in PCA10040e folder. I have already removed&amp;nbsp;&lt;span&gt;DEVELOP_IN_NRF52832 and&amp;nbsp;NRFX_COREDEP_DELAY_US_LOOP_CYCLES definitions. What is the next ? Should I change anything in sdk_config.h file?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230633?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 11:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c60fbff-23f9-4afd-9881-4dd54952d1e5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;These oscillators seem&amp;nbsp;to be correct. Are you able to reproduce this on more than one board? Please make sure the capacitors are indeed 12pF, and that the oscillator is properly soldered on and working (you can try switching out the 32MHz oscillator in case it is faulty).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230632?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 08:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c2ccf7-61a9-4e98-96c6-d928b992ac84</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;Here&amp;nbsp;are Mouser web pages for my crystals:&lt;br /&gt;&lt;a href="https://www.mouser.com.tr/ProductDetail/Kyocera-Electronic-Components/ST3215SB32768B0HPWBB?qs=%2Fha2pyFaduiKJ1KZT%2FPKKJCvHN1rPOJNPhdEHbewM%2FgcKvF8QQO4xmQlw952NZ7%2F"&gt;32.768kHz&lt;/a&gt;&amp;nbsp;(XL1-XL2)&lt;br /&gt;&lt;a href="https://www.mouser.com.tr/ProductDetail/Kyocera-Electronic-Components/CX2016DB32000D0WZRC1?qs=%2Fha2pyFadugDExaTFaM5u45ivCOe7qk3sKJjRhfOBSlWy3ZRXd8Q5knBxKD9e%2FNU"&gt;32mHz&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (XC1-XC2)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230631?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 06:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ed6ab91-3a58-4834-9be2-0dfc67f1473d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;If the HF clock doesn&amp;#39;t start and is stuck like this, that means there&amp;#39;s something wrong with the crystal. It&amp;#39;s either not the correct part, mounted incorrectly, or the capacitivity is loaded incorrectly. Can you upload, or link to, the datasheet of the HF crystal that you&amp;#39;re using and check that it is mounted correctly on your board?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230630?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 14:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:087df3ce-20da-473f-be31-cb25d2cb5ddb</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-from-2020_2D00_01_2D00_15-17_2D00_51_2D00_01.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos;
    NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
    while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0){
      print_int_to_io(2,1);
    }

    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
    while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0){
      print_int_to_io(4,1);
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I test my hardware with code mentioned above, my program makes an infinite loop in second while (&lt;strong&gt;&lt;em&gt;while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0)&lt;/em&gt;&lt;/strong&gt;). My hardware guy says, &amp;quot;Yes we are using HF clock as you can see in our hardware schematic.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230629?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 14:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bad61a5d-9a65-4a6a-a56f-1ff1d2467c92</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;When using the external LF clock, the default configurations of the clock are correct, so you shouldn&amp;#39;t change anything there. Please confirm that you&amp;#39;re using the external HF clock in your design as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230628?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 10:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b94d02e-5b93-4ca4-879e-768012dff1db</guid><dc:creator>cann0021</dc:creator><description>&lt;p&gt;1. I have removed the&amp;nbsp;&lt;span&gt;DEVELOP_IN_NRF52832 and NRFX_COREDEP_DELAY_US_LOOP_CYCLES&amp;nbsp; defines from the compile flags, did not work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I have a 32.768kHz external crystal, I need to use it. What the configuration should be in sdk_config.h ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &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;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-from-2020_2D00_01_2D00_15-13_2D00_35_2D00_57.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_sdh_enable_request causes restart with custom board</title><link>https://devzone.nordicsemi.com/thread/230627?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 09:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c822e55b-7882-40d0-baa5-a8579221fda9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you removed the DEVELOP_IN_NRF52832 and NRFX_COREDEP_DELAY_US_LOOP_CYCLES&amp;nbsp; defines from the compile flags? This is necessary to make a PCA10040e example run natively on an nRF52810 SoC. It is described in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf52810_user_guide.html"&gt;the Infocenter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Do you have the external clocks on your custom board (&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52810/chapters/ref_circuitry/doc/image/nrf52810_qcaa_schematic.svg"&gt;see the reference schematics&lt;/a&gt;)? X1 is required for the SoftDevice/radio to run at all, and X2 is optional, as you&amp;#39;ll need to use the internal RC oscillator or synthesized LF clock instead if you leave it out of your design.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>