<?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 and central UART sample crash when sending longer messages</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86426/peripheral-and-central-uart-sample-crash-when-sending-longer-messages</link><description>Hello, All 
 I received following message when I test the code, it appears on both sides, 
 ASSERTION FAIL [chunk_used(h, c)] @ WEST_TOPDIR/zephyr/lib/os/heap.c :163 
 unexpected heap state (double-free?) for memory at 0x20006fec 
 And then it reset,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Apr 2022 08:42:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86426/peripheral-and-central-uart-sample-crash-when-sending-longer-messages" /><item><title>RE: peripheral and central UART sample crash when sending longer messages</title><link>https://devzone.nordicsemi.com/thread/363795?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 08:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:215e65ea-b1a9-4acf-b4de-53eeb0374250</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Thank you for letting me know, I will try the new fix.&lt;/p&gt;
&lt;p&gt;Ping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral and central UART sample crash when sending longer messages</title><link>https://devzone.nordicsemi.com/thread/363420?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 06:30:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a5aa5c4-a510-4b48-b6f4-a7dcfc44d4ec</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We now have a pull request up with a fix for the double free issue in these samples.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/7190"&gt;https://github.com/nrfconnect/sdk-nrf/pull/7190&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral and central UART sample crash when sending longer messages</title><link>https://devzone.nordicsemi.com/thread/361106?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 21:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf8a987-6d58-4e6a-9d55-4a6aacd8cb48</guid><dc:creator>TF mulder</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;probably not THE sollution, but when i empty (remove the code) of&amp;nbsp; the routine:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ble_data_sent&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_nus_client&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;nus&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;uint16_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;the the crash is gone, and the send data i see on the peripheral.&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;...but,&amp;nbsp; probably i have now a missing feature ????&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best Regards,&lt;/div&gt;
&lt;div&gt;Theo&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral and central UART sample crash when sending longer messages</title><link>https://devzone.nordicsemi.com/thread/361104?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 19:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e5b7c6c-6ca8-4c1b-89f1-fe06e595d4c2</guid><dc:creator>TF mulder</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Seems i have the same issue.&lt;/p&gt;
&lt;p&gt;Im using nrfConnect/central_uart sample.&amp;nbsp; (im trying to combine the nrfConnect/cdc_acm sample into the central_uart, because i need to have that running on the nRF52840-dongle)&lt;/p&gt;
&lt;p&gt;looking forward, to the update.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Theo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral and central UART sample crash when sending longer messages</title><link>https://devzone.nordicsemi.com/thread/361032?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 12:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8288fcb0-0aa2-4a86-b3bd-e88a95a19b24</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for bringing this to our attention.&lt;/p&gt;
&lt;p&gt;We have had reports of a bug in these samples, and we are currently working on a fix.&lt;/p&gt;
&lt;p&gt;I will update you when we have a pull request ready.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>