<?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>Running the zephyr/samples/bluetooth/peripheral sample program on a custom board results in Hard Faults.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76922/running-the-zephyr-samples-bluetooth-peripheral-sample-program-on-a-custom-board-results-in-hard-faults</link><description>I am using ncs V1.5.1 and I can run the zephyr/samples/bluetooth/peripheral sample flawlessly on an nrf52dk_nrf52832 board. I verify BLE by viewing the &amp;quot;Zephyr Peripheral Sample Long Name&amp;quot; on my Android nRF Connect App. Here is the SES debug terminal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jul 2021 12:20:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76922/running-the-zephyr-samples-bluetooth-peripheral-sample-program-on-a-custom-board-results-in-hard-faults" /><item><title>RE: Running the zephyr/samples/bluetooth/peripheral sample program on a custom board results in Hard Faults.</title><link>https://devzone.nordicsemi.com/thread/318785?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 12:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e36ce91-61f1-4bca-bc36-51f9d16dd435</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The faulting address&amp;nbsp;&lt;span&gt;0x0001d396 from the Zephyr.map file you provided seems to be from&amp;nbsp;mpsl_low_prio_irq_handler(which you already know) and looking into the code for this function does not seem to be doing much other than just signaling by&amp;nbsp;giving the semaphore.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void mpsl_low_prio_irq_handler(void)
{
	k_sem_give(&amp;amp;sem_signal);
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could be a stack overflow aswell. Have you enabled any thread stack related helper features like&amp;nbsp;&lt;span&gt;HW_STACK_PROTECTION and CONFIG_STACK_SENTINEL?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the zephyr/samples/bluetooth/peripheral sample program on a custom board results in Hard Faults.</title><link>https://devzone.nordicsemi.com/thread/318312?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 21:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52547c72-b9c1-460d-96bf-b9dc33789dec</guid><dc:creator>rhackl</dc:creator><description>&lt;p&gt;Looking at the NordicDK vs Controller board oscillators, There isn&amp;rsquo;t a tolerance difference.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;32MHz osc&amp;rsquo;s both have +/-10ppm tolerance&lt;/li&gt;
&lt;li&gt;32.768kHz osc&amp;rsquo;s both have +/-20ppm tolerance&lt;/li&gt;
&lt;li&gt;There are differences in the RLC model but that should not make a difference in this.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/CustomBoardHFCircuit.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/DKBoardHFCircuit.png" /&gt;&lt;/p&gt;
&lt;p&gt;Our Oscillator&amp;rsquo;s MPN:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;32MHz:&amp;nbsp; ABM12W-32.0000MHZ-4-D1X-T3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fabracon.com%2FResonators%2FABM12W.pdf&amp;amp;data=04%7C01%7Crich.hackl%40creationtech.com%7Cc93b48b6269e46cacf1608d93cd6513c%7C5d859f82437e44bc9c59494f57d7e5d0%7C0%7C0%7C637607713449013141%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=zcAWFbyANJwj%2FwRbbdRdTHNV56QPZAdqHMtNGt4fn8Q%3D&amp;amp;reserved=0"&gt;https://abracon.com/Resonators/ABM12W.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;32.768kHz: &amp;nbsp;ABS05-32.768KHZ-T&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fabracon.com%2FResonators%2FABS05.pdf&amp;amp;data=04%7C01%7Crich.hackl%40creationtech.com%7Cc93b48b6269e46cacf1608d93cd6513c%7C5d859f82437e44bc9c59494f57d7e5d0%7C0%7C0%7C637607713449013141%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=VNZhT%2FHQqWVyHWZPnuiIgMOxgvrpxSt%2BIstWXfvBS84%3D&amp;amp;reserved=0"&gt;https://abracon.com/Resonators/ABS05.pdf&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the zephyr/samples/bluetooth/peripheral sample program on a custom board results in Hard Faults.</title><link>https://devzone.nordicsemi.com/thread/318088?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 05:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d67c7277-57e6-4ca2-a8a1-7ade002b461e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;What clock sources(HFCLK/LFCLK) do you have on your custom board? Seems like their accuracy is different than the one we have on the DK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the zephyr/samples/bluetooth/peripheral sample program on a custom board results in Hard Faults.</title><link>https://devzone.nordicsemi.com/thread/317971?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 12:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42d7349-03f0-4870-9739-b5dab1802d79</guid><dc:creator>rhackl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zephyr.map"&gt;devzone.nordicsemi.com/.../zephyr.map&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your quick reply. The map file is attached. The fault appears to occur in mpsl_init.c:&lt;/p&gt;
&lt;p&gt;0x0001d394 0x50 modules/nrf/subsys/mpsl/lib..__nrf__subsys__mpsl.a(mpsl_init.c.obj)&lt;br /&gt; .text.mpsl_low_prio_irq_handler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the zephyr/samples/bluetooth/peripheral sample program on a custom board results in Hard Faults.</title><link>https://devzone.nordicsemi.com/thread/317945?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 11:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fff71a94-9441-42c2-a0bf-77c85def7269</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It gives you a faulting instruction address at&amp;nbsp;&lt;span&gt;0x0001d396. Could you please check in the map file what function is there? It might give more context on the hardfault.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>