<?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>Reset with hard fault after bluetooth advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107808/reset-with-hard-fault-after-bluetooth-advertising</link><description>Goodmorning, 
 I have a problem with ble advertising on nrf52840. 
 I&amp;#39;m using a custom board using &amp;quot;zephyrOS v3.3.99-ncs1-1&amp;quot; and &amp;quot;nrf connect SDK v2.4.2&amp;quot;. 
 An hard fault occours just after the system starts advertising and resets with RESETREAS = 4 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Feb 2024 12:00:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107808/reset-with-hard-fault-after-bluetooth-advertising" /><item><title>RE: Reset with hard fault after bluetooth advertising</title><link>https://devzone.nordicsemi.com/thread/469009?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2024 12:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87e2fc56-3268-49b3-9231-110a1fcd6641</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad to hear that you were able to resolve this issue! Let me know if you have any further questions.&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: Reset with hard fault after bluetooth advertising</title><link>https://devzone.nordicsemi.com/thread/468329?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2024 08:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c150017-a84c-48bb-af0b-ce2b3ead902f</guid><dc:creator>simoiamma</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve noticed that the ramp up time changes once in a while: tipically is about 350us but sometimes goes up to 700us.&lt;/p&gt;
&lt;p&gt;However, it was a problem of ramp up time of the external crystal oscillator. Starting it before the BLE subsystem solved the&amp;nbsp; problem.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Simone&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset with hard fault after bluetooth advertising</title><link>https://devzone.nordicsemi.com/thread/466490?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 12:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8345f568-afc8-4a99-b468-9a3ec8037775</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This assert should be raised if the HF crystal is not running when it should be, and could indicate that the crystal oscillator ramp-up is too slow or that there&amp;#39;s an issue with the HF crystal.&lt;/p&gt;
&lt;p&gt;If it occurs just in some boards, what are the load capacitors set as on these boards. Another common issue is that the HF crystal is soldered on 90 degrees off, so that the GND pads are on the crystal pads and vice versa.&lt;/p&gt;
&lt;p&gt;You can also&amp;nbsp;&lt;span&gt;try to measure the crystal&amp;#39;s startup time. You can use the use the code snippet below for this (must be run before &lt;strong&gt;bt_enable&lt;/strong&gt;()).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;	NRF_TIMER1-&amp;gt;BITMODE = TIMER_BITMODE_BITMODE_32Bit &amp;lt;&amp;lt; TIMER_BITMODE_BITMODE_Pos;
	NRF_TIMER1-&amp;gt;TASKS_CLEAR = 1;
	NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
	NRF_TIMER1-&amp;gt;TASKS_START = 1;
	NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
	while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
	NRF_TIMER1-&amp;gt;TASKS_CAPTURE[0] = 1;

	printk(&amp;quot;HF Clock has started. Startup time: %d uS\n&amp;quot;, NRF_TIMER1-&amp;gt;CC[0]);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, are you using&amp;nbsp;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/nrfxlib/mpsl/doc/api.html#c.mpsl_clock_hfclk_latency_set" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/api.html#c.mpsl_clock_hfclk_latency_set" rel="noopener noreferrer" target="_blank"&gt;mpsl_clock_hfclk_latency_set&lt;/a&gt;() in your code?&lt;/span&gt;&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>