<?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>MPU FAULT occurs when discovering attributes of client</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90853/mpu-fault-occurs-when-discovering-attributes-of-client</link><description>Hi, 
 I am a newbie to the world of nRF. I am trying to develop a gateway using nRF52840dk using nRF connect SDKv2.0.0. 
 While I am trying to create a freestanding application from central_hr samples, it is possible to build and flash the code successfully</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Aug 2022 11:25:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90853/mpu-fault-occurs-when-discovering-attributes-of-client" /><item><title>RE: MPU FAULT occurs when discovering attributes of client</title><link>https://devzone.nordicsemi.com/thread/380994?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 11:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92fb3471-db08-4eb2-b54d-bdaed5a2dc43</guid><dc:creator>Vishnu Vijayan</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/90853/mpu-fault-occurs-when-discovering-attributes-of-client/380990"]Ah, good, I looked at the screenshot to quickly. In that case, try to add CONFIG_BT_RX_STACK_SIZE=2048 (or even higher if needed) to your prj.conf.[/quote]
&lt;p&gt;&amp;nbsp;Ya this Works. Thank you for your immediate response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU FAULT occurs when discovering attributes of client</title><link>https://devzone.nordicsemi.com/thread/380990?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 11:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d32ffc-d58f-4233-893a-15ea29720b88</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Vishnu Vijayan"]before adding the CONFIG_THREAD_NAME=y in prj.conf , the thread name is available in the error code &lt;span style="color:rgba(255, 0, 0, 1);"&gt;(Current thread:0x20001ae0 (BT RX))&amp;nbsp;&lt;/span&gt;But how can I found out the location of this thread?[/quote]
&lt;p&gt;Ah, good, I looked at the screenshot to quickly. In that case, try to add CONFIG_BT_RX_STACK_SIZE=2048 (or even higher if needed) to your prj.conf.&lt;/p&gt;
[quote user="Vishnu Vijayan"]I created a .c file and .h file inside a new folder in the src. I have added all the ble part to this c file and declare functions in .h file.[/quote]
&lt;p&gt;Knowing exactly which changes you made could be relevant, so if the above does not solve it please explain that in detail all the changes/additions you made (for instance by sharing the full project or a diff).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU FAULT occurs when discovering attributes of client</title><link>https://devzone.nordicsemi.com/thread/380987?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 11:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89e90d9b-b268-4872-9b7c-f26228559f24</guid><dc:creator>Vishnu Vijayan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I created a .c file and .h file inside a new folder in the src. I have added all the ble part to this c file and declare functions in .h file.&lt;/p&gt;
&lt;p&gt;I created the code based on this reference:&lt;a title="Refer" href="https://www.youtube.com/watch?v=ufjv2NaLfN8&amp;amp;t=1638s"&gt;https://www.youtube.com/watch?v=ufjv2NaLfN8&amp;amp;t=1638s&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;before adding the CONFIG_THREAD_NAME=y in prj.conf , the thread name is available in the error code &lt;span style="color:#ff0000;"&gt;(Current thread:0x20001ae0 (BT RX))&amp;nbsp;&lt;/span&gt;But how can I found out the location of this thread?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU FAULT occurs when discovering attributes of client</title><link>https://devzone.nordicsemi.com/thread/380978?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 10:31:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c71e3e89-0c87-4faf-b5eb-579f07a9e1d2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What changed did you do other than copying out the sample? In any case, MPU fault is typically what you get when there is a stack overflow. I suggest that you set&amp;nbsp;CONFIG_THREAD_NAME=y in&amp;nbsp; your prj.conf as described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90787/how-to-decipher-hard-fault-mpu-fault-on-zephyr-running-on-nrf52832/380620"&gt;this post&lt;/a&gt; and test again. What does the full log output say then? Then try increasing the stack size of that thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>