<?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>Peripheral uart example - disconnection callback non called</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115227/peripheral-uart-example---disconnection-callback-non-called</link><description>Hello, 
 I&amp;#39;m running the &amp;quot; peripheral uart &amp;quot; example included in 2.7.0 SDK on a nRF52810. 
 It works fine but when central application disconnects no advertising messages are restarted and than no others connections are possible. 
 I tried to insert a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2024 16:06:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115227/peripheral-uart-example---disconnection-callback-non-called" /><item><title>RE: Peripheral uart example - disconnection callback non called</title><link>https://devzone.nordicsemi.com/thread/505777?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 16:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b799ac29-8202-4f6f-83e9-ae5e66a00039</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to know you fix it. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral uart example - disconnection callback non called</title><link>https://devzone.nordicsemi.com/thread/505775?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 16:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8393a6ba-b174-4fbc-aba9-c651adadc55f</guid><dc:creator>fa74</dc:creator><description>&lt;p&gt;Hi, thanks for the answer and sorry for my late reply.&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;m using the example you mentioned on a custom board. This board is equipped with Ezurio BL651 (that features a nRF52810)&lt;br /&gt;&lt;br /&gt;Starting from the example I made the following changes:&lt;/p&gt;
&lt;p&gt;- use the base configuration &lt;em&gt;prj_minimal.conf &lt;/em&gt;due to limitation of nRF52810&lt;/p&gt;
&lt;p&gt;- added the following defines to &lt;em&gt;prj_minimal.conf&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y&lt;/p&gt;
&lt;p&gt;These defines are needed since on my board I don&amp;#39;t have the external oscillator and I have to use the internal RC&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In any case after some check and investigations I discovered that the problem is that, when central app disconnects, the application crashes before calling the disconnection callback.&lt;/p&gt;
&lt;p&gt;After some (many) others checks and investigations I fixed the problem increasing the following stack define in&lt;em&gt; prj_minimal.conf &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_MPSL_WORK_STACK_SIZE=256&lt;/p&gt;
&lt;p&gt;Increasing it to 512 the application works perfectly&lt;/p&gt;
&lt;p&gt;Reagrds&lt;/p&gt;
&lt;p&gt;Fabiano&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral uart example - disconnection callback non called</title><link>https://devzone.nordicsemi.com/thread/505047?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 20:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1747fed9-91fc-4a5c-879e-1283e2cb0304</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;m running the &amp;quot;&lt;em&gt;peripheral uart&lt;/em&gt;&amp;quot; example included in 2.7.0 SDK on a nRF52810.[/quote]
&lt;p&gt;Are you using the unmodified nrf\samples\bluetooth\peripheral_uart? Are you using a custom board?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I cannot reproduce the issue with&amp;nbsp;&lt;span&gt;unmodified&amp;nbsp;&lt;/span&gt;&lt;span&gt;nrf\samples\bluetooth\peripheral_uart and&amp;nbsp;nRFConnect App or nrf\samples\bluetooth\central_uart sample on nRF52DK_nRF52810. The unmodified peripheral_uart will auto-advertise after disconnecting. Since&amp;nbsp;nRF52810 has limited space to enable debug logs, you could use another device such as nRF52DK to debug them and move back to nRF52810.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>