<?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>Fatal Error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61668/fatal-error</link><description>In my project i usinf nrf52840 and nrf sdk Version is 16.0.0. 
 two UART port using in project using nrf_serial lib. 
 on serial0 port i have connected GSM and on serial1 port i have connected one sensor. 
 on twi i have connected EEPROM. 
 i am using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jun 2021 10:38:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61668/fatal-error" /><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/314169?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 10:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34bf04e2-a2bb-4bc6-8183-8a168e572bdd</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note that you are replying to a thread that&amp;#39;s over a year old.&lt;/p&gt;
&lt;p&gt;So what debugging have&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;you&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;done to find what&amp;#39;s occurring?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/314143?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 09:35:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:433d114e-cdc1-41eb-be58-1f2c8cbfd9da</guid><dc:creator>gilbertjuly</dc:creator><description>&lt;p&gt;Why is adding 100ms delay solves the problem??? I&amp;#39;m faced with a TWI initailization problem as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252357?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 10:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e83c2808-1481-4c2e-8233-43cf96dd9101</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Thanks for feeding back&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8168._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252355?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 09:54:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5c834ac-5799-47f4-ba7d-05302e89262c</guid><dc:creator>DARSHBT</dc:creator><description>&lt;p&gt;Thank you so much for your kind support.&lt;/p&gt;
&lt;p&gt;I have solve the issue.&lt;/p&gt;
&lt;p&gt;issue is of TWI is not properly initialize every time.i have solve these just putting 100 ms delay.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252261?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 16:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8185a5c-ed3b-48ff-88f5-b97cfc60b48d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The clue is in the name: &lt;strong&gt;INVALID STATE&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The code you posted shows what state it &lt;em&gt;should&lt;/em&gt; be in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252260?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 15:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:285cd243-0a4b-4580-a9a3-903b6a22fe0c</guid><dc:creator>DARSHBT</dc:creator><description>&lt;p&gt;err_code = 8 means ,&amp;nbsp;NRFX_ERROR_INVALID_STATE. could you suggest me the possible reasons of these kind of error generation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252257?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 15:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0202d59a-8525-462e-bba7-18d5c7ab634f</guid><dc:creator>DARSHBT</dc:creator><description>&lt;p&gt;I have Stepped into nrf_drv_twi_init(),&lt;/p&gt;
&lt;p&gt;when&amp;nbsp;&amp;nbsp;nrfx_twim_init() function is call, in that,&lt;/p&gt;
&lt;p&gt;below mentioned if condition is check and then control direct go to last line of these function and then,&lt;/p&gt;
&lt;p&gt;app_error_fault_handler() function call.&lt;/p&gt;
&lt;p&gt;if (p_cb-&amp;gt;state != NRFX_DRV_STATE_UNINITIALIZED)&lt;br /&gt; {&lt;br /&gt; err_code = NRFX_ERROR_INVALID_STATE;&lt;br /&gt; NRFX_LOG_WARNING(&amp;quot;Function: %s, error code: %s.&amp;quot;,&lt;br /&gt; __func__,&lt;br /&gt; NRFX_LOG_ERROR_STRING_GET(err_code));&lt;br /&gt; return err_code;&lt;br /&gt; }&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252181?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 12:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:496c7b9a-8111-49d0-9b17-e4748974597b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The documentation for&amp;nbsp;&lt;strong&gt;nrf_drv_twi_init() &lt;/strong&gt;will list its possible return codes - you can find the&amp;nbsp;numeric values in the source code.&lt;/p&gt;
&lt;p&gt;Again, have you stepped into&amp;nbsp;&lt;span&gt;&lt;strong&gt;nrf_drv_twi_init()&lt;/strong&gt;&amp;nbsp;to see what is causing that error code?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252163?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 11:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86b4bb28-0955-4e9d-824b-3afd2856b801</guid><dc:creator>DARSHBT</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1590666981387v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I am getting err_code : 8 as show in figure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;as show in figure 1st time its give me err_code: 0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and after sleep, when it weak up it give me err_code :8.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;what is the meaning of err_code 8?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252042?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 17:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7608f486-26cc-414f-85b6-3bacf037c55b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So what &lt;strong&gt;err_code&lt;/strong&gt; are you getting?&lt;/p&gt;
&lt;p&gt;have you looked-up the meaning of that code?&lt;/p&gt;
&lt;p&gt;Have you stepped into&amp;nbsp;&lt;span&gt;&lt;strong&gt;nrf_drv_twi_init()&lt;/strong&gt; to see what is causing that error code?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/252041?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 17:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63628b5-0cd8-4cac-b43d-1df91704e4e1</guid><dc:creator>DARSHBT</dc:creator><description>&lt;p&gt;Thank you so much for your reply.&lt;/p&gt;
&lt;p&gt;sorry for late response.&lt;/p&gt;
&lt;p&gt;i have debug the code its stuck some times in twi_init() function after following line.&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_twi_init(&amp;amp;m_twi, &amp;amp;twi_config, twi_handler, NULL);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;and if it some time come out from these function then it stuck in HardFault_Handler();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error</title><link>https://devzone.nordicsemi.com/thread/251136?ContentTypeID=1</link><pubDate>Thu, 21 May 2020 13:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bad4e66e-bf95-4b6a-bcb7-dc3a74313719</guid><dc:creator>awneil</dc:creator><description>[quote userid="90532" url="~/f/nordic-q-a/61668/fatal-error"]after sleep when its wake up it gives fatal error[/quote]
&lt;p&gt;So what debugging have &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;done to find where, exactly, this is happening and what error, exactly, is occurring?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_keil/UG/gsg/debug_keil.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_keil/UG/gsg/debug_keil.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>