<?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>nrf51822 Softdevice crash on SDK12.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67197/nrf51822-softdevice-crash-on-sdk12-3</link><description>I have an application that is running for a while and then it crashes. 
 Execution goes to softdevice_fault_handler(), calling it with parameters: id=1; pc=0xf764; info=NULL 
 There is no helpful info in the call stack: 
 
 1. Is there a way to track</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Oct 2020 12:57:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67197/nrf51822-softdevice-crash-on-sdk12-3" /><item><title>RE: nrf51822 Softdevice crash on SDK12.3</title><link>https://devzone.nordicsemi.com/thread/275098?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28fc2938-0f4d-4951-acc0-0fb0a36f8185</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Ricardo,&lt;/p&gt;
[quote user="Ricardo Rodrigues"]Is there a way I could find out what exactly was the issue? In what module or what call was taking longer than it should?[/quote]
&lt;p&gt;The SDK or SoftDevice does not have any specific support for that. It would have to be that you either inspect or profile the application in some way.&lt;/p&gt;
[quote user="Ricardo Rodrigues"]Also, have you got the chance to look at point 4. from the original post?[/quote]
&lt;p&gt;Well. First of all it does not matter how much additional memory you have. As long as you are able to fit everything you are good. The exception is if you have a too small stack, and starts writing to RAM below the stack (stack overflow). I do not see anything in your question that indicate that this is a problem, though. Do you have any reason to think that this is a problem?&lt;/p&gt;
&lt;p&gt;If you want to free memory, you need to look at what you use. Removing something from&amp;nbsp;flash_placement.xml does not help, as that just tells the linker where to put things. If you remove something that is unused, then it makes no difference. If you remove something that is used, then you will get a linker error.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Softdevice crash on SDK12.3</title><link>https://devzone.nordicsemi.com/thread/275081?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aed4682b-6b8a-444a-9cc0-979fb1ec3d84</guid><dc:creator>Ricardo Rodrigues</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I am using &amp;quot;s130_nrf51_2.0.1_softdevice.hex&amp;quot;.&lt;/p&gt;
&lt;p&gt;I am using timers, app_scheduler library, and APP_UART_FIFO_INIT(), which calls a callback in an interreupt.&lt;/p&gt;
&lt;p&gt;The app_sched_event_put() function has a critical region, but it should be fast executing.&lt;/p&gt;
&lt;p&gt;Since yesterday I have:&lt;/p&gt;
&lt;p&gt;- made some optimizations to reduce memory usage to free up RAM for having another timer;&lt;/p&gt;
&lt;p&gt;- split the initial timer&amp;#39;s tasks into two different timers, executing at different intervals;&lt;/p&gt;
&lt;p&gt;- moved some of the app_scheduler tasks to the new timer, because maybe I was scheduling too many tasks two quickly;&lt;/p&gt;
&lt;p&gt;- and reduced the number of events overall;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The nrf app looks like it is now running more stable, so maybe it was just what you said. Some longer execution of some task.&lt;/p&gt;
&lt;p&gt;But this still leaves me wondering what exactly was the case and not knowing for sure if I fixed it or just reduced the frequency of the crashes (which is already a good thing, of course - but a better understanding of the problem would be even nicer).&lt;/p&gt;
&lt;p&gt;Is there a way I could find out what exactly was the issue? In what module or what call was taking longer than it should?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, have you got the chance to look at point 4. from the original post?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Softdevice crash on SDK12.3</title><link>https://devzone.nordicsemi.com/thread/275075?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:140285ef-3e2c-47cb-9bbb-a5f6176c5f33</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Ricardo,&lt;/p&gt;
&lt;p&gt;I assume you are suing S130 2.0.1? If so, the assert you get at&amp;nbsp;0x0000f764 indicate an assert caused by the SoftDevice missing a BLE event.&amp;nbsp;Do you use the timeslot API? Or have long high priority interrupt routines, or critical sections?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>