<?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>Device reset when memory is full</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114663/device-reset-when-memory-is-full</link><description>Hello, 
 We use nRF5 SDK v17.1.0 (soft device S140 v7.2.0) and it works well except that when receiving many message over bluetooth the device reset due to memory being full so the SDK was not able to allocate more memory for incoming message. I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Sep 2024 20:20:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114663/device-reset-when-memory-is-full" /><item><title>RE: Device reset when memory is full</title><link>https://devzone.nordicsemi.com/thread/502379?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 20:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c8a39c3-f87c-406f-af67-e7b5567b5f9e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]So the issue is that the callback can take more time to handle some messages than time to receive message so many message accumulates in the memory to the point where the SDK detect a memory full and call the error_handler which reset the device.[/quote]
&lt;p&gt;So a function returned an error-code, that was passed to APP_ERROR_CHECK(), and the error_handler reset the device.&lt;/p&gt;
&lt;p&gt;What&amp;nbsp;&lt;span&gt;function returned&amp;nbsp;the error code? And what error-code was returned?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device reset when memory is full</title><link>https://devzone.nordicsemi.com/thread/502326?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 13:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e4ed983-2831-4d83-904c-f4823f6a781c</guid><dc:creator>Remi P.</dc:creator><description>&lt;p&gt;I reread my ticket and I saw I was a bit too deep in our code, we register our own obserser for ble event with&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_drv_evt_dispatch, NULL);&lt;/p&gt;
&lt;p&gt;So this ble_drv_evt_dispatch calls the callback when there is a BLE_GATTS_EVT_WRITE event from soft device I hope it is more clear&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>