<?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>How can I find source of problem?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72111/how-can-i-find-source-of-problem</link><description>Hi ! 
 I&amp;#39;m trying to debug. I followed this video : https://www.youtube.com/watch?v=uP8RYgYGRvI&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV&amp;amp;index=7 . But I can&amp;#39;t completely. 
 the program stop at NRF_BREAKPOINT_COND in app_error_weak.c. 
 I used breakpoint</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Mar 2021 15:39:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72111/how-can-i-find-source-of-problem" /><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302199?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9093ba4e-a219-492b-ab56-12d429092504</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="cemalb"]the problem seems to be fixed.&amp;nbsp;[/quote]
&lt;p&gt;I am happy to hear that the problem seems to be resolved!&lt;br /&gt;While we may not have added a lot of new features during this back-and-forth, we certainly have improved the overall quality of your project, and minimized a lot of potential for future frustration and failure.&lt;/p&gt;
[quote user="cemalb"]If I encounter the same problem again, I would bother you :)&amp;nbsp;[/quote]
&lt;p&gt;Sure, that sounds all right with me!&lt;/p&gt;
[quote user="cemalb"]Thank you for your help and patience.[/quote]
&lt;p&gt;No problem at all, I am happy to help! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open a new ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302198?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58e05657-2285-4dc2-b87f-0509d454c578</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;In fact, it cannot be said that I have made much changes in the codes.&amp;nbsp;Although we cannot explain it exactly, the problem seems to be fixed.&amp;nbsp;If I encounter the same problem again, I would bother you :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your help and patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302197?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a1e8afe-7099-4edd-9ff3-18b8545a7936</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;It is unfortunately very hard to say exactly why the creation of those two timers failed before you started checking their returned error codes.. but it looks like their creation failed, which led to you call to app_timer_start also failing. I can&amp;#39;t really say much more than that, because I do not have any information about whether the conditions of your testing has changed since then, or if you have made any other changes to the code, etc.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302196?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e5a5d7f-d8f4-4ff0-9538-eaa09ec078b4</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;So what happened to the NRF_ERROR_INVALID_STATE error?Why does that error message no longer occur?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302195?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1acb3a2a-bc5a-4a20-8733-33b5becf4ca9</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="cemalb"]I added the error code.the program does not fail anymore. I could not understand why.&amp;nbsp;So adding the error code solved everything?[/quote]
&lt;p&gt;No, not exactly. you were passing in a&amp;nbsp;&lt;a href="https://www.tutorialspoint.com/cprogramming/c_variables.htm#:~:text=Variable%20Declaration%20in%20C,complete%20detail%20about%20the%20variable."&gt;&lt;em&gt;declared&amp;nbsp;&lt;/em&gt;variable to your error check, but you never&amp;nbsp;&lt;em&gt;initialized&lt;/em&gt; it&lt;/a&gt;. When you declare a variable that only means that the compiler will allocate the required memory for that variable type, &lt;em&gt;it does not provide it with a value&lt;/em&gt;. So the variable will hold whatever value existed in the allocated memory prior to its allocation - which is pretty much random.&lt;br /&gt;&lt;br /&gt;When you then passed this random-valued error code to the error check it immediately failed, because it was != NRF_SUCCESS, causing your application to reset.&lt;br /&gt;&lt;br /&gt;I am happy to hear that your program is not failing any more, either way!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302192?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b28c75b-d471-4c88-a234-7a8c715db594</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;I&amp;#39;m really angry with myself for my carelessness.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0066.aaa.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I added the error code.the program does not fail anymore. I could not understand why.&amp;nbsp;So adding the error code solved everything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302191?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4ea281-6500-463c-9f97-d796fad75639</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;You are not checking the returned error of your call to app_timer_stop on line 377, you are checking the randomly instantiated value of err_code.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302189?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9f4651f-a7bc-4630-9f0a-fa5d1215a147</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&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/asa.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302187?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97a1740-8c12-42ad-bbff-bc0ee14898ba</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;I see from your screenshot that this is in fact line 385 and 386.&lt;br /&gt;Please share the snippet of the function containing line 377.&lt;/p&gt;
[quote user="cemalb"]I forgot to share the code on line 377 because I was tired. sorry.&amp;nbsp;[/quote]
&lt;p&gt;No need to apologize - I hope you get some rest soon! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302184?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3eacff7-4998-485f-a824-9b2fa77a738c</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0535.aaa.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302181?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8d75a84-0377-4e2d-baa3-36bfb7095de6</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;I forgot to share the code on line 377 because I was tired. sorry.&amp;nbsp;Since I do not reply to your last answer, I am writing here.&lt;/p&gt;
&lt;p&gt;At line 377, a function is called to stop a timer:&lt;/p&gt;
&lt;p&gt;void stopTimer_open_door_timer(){&lt;br /&gt; ret_code_t err_code;&lt;br /&gt; err_code = app_timer_stop(m_open_door_timer_id);&amp;nbsp; &amp;nbsp; /* Stop open door timer. */&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302172?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e7ea8a2-a18e-43a8-809e-bd5fbaade6df</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="cemalb"]Ok, I will add immediately.[/quote]
&lt;p&gt;Great! If you now see that the previous developer never checked any error codes you might have to review your whole project for this, but rest assured that it is essential to check error codes to know whether a function has completed successfully or not.&lt;/p&gt;
[quote user="cemalb"]&lt;p&gt;I guess the error has changed. the last error is:&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 536907338 [Unknown error code] at XXX\V1.5.9\examples\btc_ble_peripheral\xxxBluetooth\timer_init.c:377&lt;br /&gt;PC at: 0x000336CB&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;[/quote]
&lt;p&gt;What function is being called at line 377 of your&amp;nbsp;&lt;em&gt;timer_init.c&lt;/em&gt; file?&lt;br /&gt;Keep in mind that I do not have you project, so there is no way for me to know what is happening here unless you tell me.&lt;br /&gt;Please also share the snippet of code of the function containing line 377 of timer_init.c.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302168?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a065344-9263-4d3b-8ada-6ea89cd6e5fe</guid><dc:creator>cemalb</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/302165#302165"]Please make sure to add APP_ERROR_CHECK to all places where it is appropriate in your code,&lt;br /&gt;not just the timer_init function.[/quote]
&lt;p&gt;Ok, I will add immediately.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/302165#302165"]Are you still getting the&amp;nbsp;&lt;span&gt;NRF_ERROR_INVALID_STATE returned from your two app_timer_start calls, or has that too disappeared? If so, what error code is being returned currently?&lt;/span&gt;[/quote]
&lt;p&gt;I guess the error has changed. the last error is:&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 536907338 [Unknown error code] at XXX\V1.5.9\examples\btc_ble_peripheral\xxxBluetooth\timer_init.c:377&lt;br /&gt;PC at: 0x000336CB&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302165?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5c964e-6af9-43c2-9b84-15400d2103aa</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="cemalb"]I replied late because I had to deal with other projects.[/quote]
&lt;p&gt;No problem at all - we continue whenever you have the chance! :)&amp;nbsp;&lt;/p&gt;
[quote user="cemalb"]While creating timers, I added error codes for all of them, but they didn&amp;#39;t return any error codes. they all return 0.[/quote]
&lt;p&gt;I am happy to see that you have added this!&lt;br /&gt;Please make sure to add APP_ERROR_CHECK to all places where it is appropriate in your code,&lt;br /&gt;not just the timer_init function.&lt;br /&gt;&lt;br /&gt;So they all return successfully, that is good news!&lt;br /&gt;Are you still getting the&amp;nbsp;&lt;span&gt;NRF_ERROR_INVALID_STATE returned from your two app_timer_start calls, or has that too disappeared? If so, what error code is being returned currently?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/302138?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 13:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c01087ab-0bef-4863-a223-cfb85bb2630e</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;I replied late because I had to deal with other projects.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/300962#300962"]Please add error code checks to all functions currently missing them, see what error code is being returned by the functions, and then check the API Reference to see why the function call failed.[/quote]
&lt;p&gt;While creating timers, I added error codes for all of them, but they didn&amp;#39;t return any error codes. they all return 0.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2605.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300962?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 13:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d27190-2802-4a3d-afc7-789d58996602</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="cemalb"]I already start all timers with the timers_init() function inside the main() function.[/quote]
&lt;p&gt;No, you currently&amp;nbsp;&lt;em&gt;&lt;/em&gt;&lt;em&gt;attempt&lt;/em&gt; to start all the timers. You never actually check whether you were successful in doing so or not.&lt;br /&gt;You are &lt;em&gt;not checking&lt;/em&gt;&amp;nbsp;&lt;em&gt;any&lt;/em&gt; of the error codes returned from all your calls to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__app__timer.html&amp;amp;anchor=ga5c31f03a2b9d4bf2a3cd629e6603e72e"&gt;app_timer_create&lt;/a&gt;.&lt;br /&gt;Please always check the API reference / documentation of functions you are using that you have not written yourself - such as SDK functions - before using them, and please &lt;strong&gt;always&lt;/strong&gt; check the returned error codes of functions you end up using in your code.&lt;br /&gt;If you do not check the returned error codes, you will have&amp;nbsp;&lt;em&gt;no way&lt;/em&gt; of knowing whether a function call has failed for whatever reason, or if you application to could proceed as usual.&lt;br /&gt;Checking the returned error codes is&amp;nbsp;&lt;em&gt;crucial&lt;/em&gt; - it is also why we have taken the time to implemented them in the first place.&lt;br /&gt;&lt;br /&gt;Please add error code checks to all functions currently missing them, see what error code is being returned by the functions, and then check the API Reference to see why the function call failed.&lt;br /&gt;Do this, and let me know if it resolves your issue.&lt;br /&gt;&lt;br /&gt;Looking forward to resolve these issues together.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300892?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 11:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c89de8ae-d7c3-4bca-862b-b685d3068e79</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/300870#300870"]Please check that you have created the two timers in question, prior to attempting to start them.[/quote]
&lt;p&gt;I already start all timers with the timers_init() function inside the main() function.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/44.PNG" /&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/7674.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300870?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 10:14:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0afcf8a-5197-440a-aa1d-5b79a09ce0a4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="cemalb"]I did not change it. it is 6 by default.[/quote]
&lt;p&gt;Thank you for confirming.&amp;nbsp;&lt;/p&gt;
[quote user="cemalb"]I forgot to return the error code value for the function that caused the error. I fixed it.&amp;nbsp;the error code is[/quote][quote user="cemalb"]The codes in the relevant line are as follows:[/quote][quote user="cemalb"]but how can i solve this?&amp;nbsp;[/quote]
&lt;p&gt;When an error code is returned from a function, you should always check the functions API reference to determine the cause of the error. In this case,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__app__timer.html&amp;amp;anchor=gaa2e52b98d7c4030d5e283ddfe50c81c7"&gt;the app_timer_start function&lt;/a&gt;&amp;nbsp;documentation about the returned error reads:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;NRF_ERROR_INVALID_STATE&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;If the application timer module has not been initialized or the timer has not been created.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;So, you have either not initialized the timer module, or created this particular timer you are trying to use. Since your other timers are working as intended, I would think the latter is the case here.&lt;br /&gt;Please check that you have created the two timers in question, prior to attempting to start them.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300859?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 10:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d99a54-98a0-4fb4-bb63-7df58bf8ac72</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/300624#300624"]If you were using interrupt priority 0 for your UART, then that would definitely be a problem, yes.&lt;br /&gt;Now you are using the NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY, is this still the default value, or have you modified this?&amp;nbsp;[/quote]
&lt;p&gt;I did not change it. it is 6 by default.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/300624#300624"]It seems the error is triggered at line 299 of your &amp;#39;timer_init.c&amp;#39; file. Which function is being called here? Could you also share the entire function being executed in line 299 of timer_init.c, so I may take a look?[/quote]
&lt;p&gt;I forgot to return the error code value for the function that caused the error. I fixed it.&amp;nbsp;the error code is:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;error&amp;gt; app: ERROR 8 [NRF_ERROR_INVALID_STATE] at&amp;nbsp;&lt;/span&gt;&lt;span&gt;D:\1_1_xxx_xxx_xxx\V.1.5.9_CML\V1.5.9\V1.5.9\examples\xxx_ble_peripheral\XXX_Project\timer_init.c:299&lt;/span&gt;&lt;br /&gt;&lt;span&gt;PC at: 0x000335C7&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The codes in the relevant line are as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5633.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;also when I cancel this line, it gives the same warning for line 285:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3058.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess there was a problem while creating the timers.I use 5 more timers other than these two timers. however, there was no such problem for them.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; but how can i solve this?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300624?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 10:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6565baea-ff3b-4364-b1bb-06317998f475</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="cemalb"]&lt;p&gt;its initial value is 0. this conflicts with the softdevice priority value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could this be what caused the problem?&lt;/p&gt;[/quote]
&lt;p&gt;If you were using interrupt priority 0 for your UART, then that would definitely be a problem, yes.&lt;br /&gt;Now you are using the NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY, is this still the default value, or have you modified this?&amp;nbsp;&lt;/p&gt;
[quote user="cemalb"]&amp;lt;error&amp;gt; app: ERROR 211843 [Unknown error code] at D:\1_1_kale_kilit_yazilim\V.1.5.9_CML\V1.5.9\V1.5.9\examples\btc_ble_peripheral\BTC_Project\timer_init.c:299 PC at: 0x000335C5&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report[/quote]
&lt;p&gt;It seems the error is triggered at line 299 of your &amp;#39;timer_init.c&amp;#39; file. Which function is being called here? Could you also share the entire function being executed in line 299 of timer_init.c, so I may take a look?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300325?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 09:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12c83dda-169a-4e4a-b043-238e9c982d74</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8637.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;When I insert this line and debug it I got another error message:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 211843 [Unknown error code] at D:\1_1_kale_kilit_yazilim\V.1.5.9_CML\V1.5.9\V1.5.9\examples\btc_ble_peripheral\BTC_Project\timer_init.c:299 PC at: 0x000335C5&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300324?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 09:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a08ae3c4-37c2-4ec6-8172-fc2a98931a8d</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2335.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have just realized this situation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The comm_params variable is used when making the initial settings for the uart.&amp;nbsp;however, the initial value of the interrupt_priority element belonging to the nrf_drv_uart_config_t struct is not given while doing this setting. therefore, its initial value is 0. this conflicts with the softdevice priority value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could this be what caused the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300313?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 08:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1764f7f1-27dc-40a1-8e1f-d714fb471b72</guid><dc:creator>cemalb</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/299856#299856"]Did you ever check whether any of the peripherals you are using in your project attempt to set a priority that conflicts with &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsds_s140%2FSDS%2Fs1xx%2Fprocessor_avail_interrupt_latency%2Fexception_mgmt_sd.html"&gt;the priority levels reserved for the SoftDevice that I mentioned earlier&lt;/a&gt;?[/quote]
&lt;p&gt;wdt, timer and uart are used in the project. interrupt priority level setted 6 for all of them. I think there is no conflict since softdevice 132 uses interrupt priority level 0-1-4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/300276?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 06:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e86b6e28-c62c-4e4c-b253-67eb1f273c29</guid><dc:creator>cemalb</dc:creator><description>&lt;p&gt;I forgot to share this. I am so sorry.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6443.report_5F00_only_5F00_difference.htm"&gt;devzone.nordicsemi.com/.../6443.report_5F00_only_5F00_difference.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/72111/how-can-i-find-source-of-problem/299856#299856"]Did you ever check whether any of the peripherals you are using in your project attempt to set a priority that conflicts with &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsds_s140%2FSDS%2Fs1xx%2Fprocessor_avail_interrupt_latency%2Fexception_mgmt_sd.html"&gt;the priority levels reserved for the SoftDevice that I mentioned earlier&lt;/a&gt;?[/quote]
&lt;p&gt;I will check it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I find source of problem?</title><link>https://devzone.nordicsemi.com/thread/299856?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 14:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:386e0e6a-5d83-41ca-9fa9-defa7218bc8f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="cemalb"]Yes, unfortunately. it gives the same error again. I also set up for the comparator. i just created a report showing the only differences. Do you think there is a difference that causes our problem?&amp;nbsp;[/quote]
&lt;p&gt;The error points towards the 107th line of nrfx_glue.h which is an assert that triggers if an invalid priority level is attempted used.&lt;br /&gt;Did you ever check whether any of the peripherals you are using in your project attempt to set a priority that conflicts with &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsds_s140%2FSDS%2Fs1xx%2Fprocessor_avail_interrupt_latency%2Fexception_mgmt_sd.html"&gt;the priority levels reserved for the SoftDevice that I mentioned earlier&lt;/a&gt;?&lt;br /&gt;Those top priority levels are only available when the SoftDevice is not present.&lt;br /&gt;&lt;br /&gt;I do not suspect that a change has been made to the SDK, but it is still good for you and the future development to be aware of any changes the previous developer might have made, if any. So, it is still good that you have taken the time to verify the integrity of the SDK you have been handed from the previous developer.&lt;/p&gt;
[quote user="cemalb"]By the way, I fixed the spaces in the folder names as you said. Thank you for your warning.[/quote]
&lt;p&gt;Great, I am happy to hear that you found it helpful!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>