<?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>Stack overflow when send &amp;quot;chat private&amp;#39; over a serial terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122872/stack-overflow-when-send-chat-private-over-a-serial-terminal</link><description>Hi, 
 I send &amp;quot;chat private 0x0028 hi&amp;quot; over a serial terminal, and the MCU restart because of overflow, please see error log as below picture. 
 I tried to modify the &amp;quot;CONFIG_SHELL_STACK_SIZE&amp;quot; to 2048, the overflow still happened. 
 My env: 
 54L15DK board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Jul 2025 06:49:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122872/stack-overflow-when-send-chat-private-over-a-serial-terminal" /><item><title>RE: Stack overflow when send "chat private' over a serial terminal</title><link>https://devzone.nordicsemi.com/thread/542184?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 06:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82e77673-fa11-40f4-ac80-1cc0f8221f27</guid><dc:creator>ShawnL</dc:creator><description>&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;Increased CONFIG_SHELL_STACK_SIZE to 3072 bytes to avoid stack overflow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack overflow when send "chat private' over a serial terminal</title><link>https://devzone.nordicsemi.com/thread/542135?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 14:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70c0fb4-f7b8-43eb-809b-5081ee8afab1</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;CONFIG_SHELL_SACK_SIZE should already be 2048 as the default value, so if that is where the stack overflow happens, then an even higher value would be needed to fix the issue.&lt;/p&gt;
&lt;p&gt;There is also a known issue with CONFIG_BT_MESH_ADV_STACK_SIZE being too small for some Bluetooth Mesh applications, so you could try setting that one to 2048.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>