<?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>Unexpected asserts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102772/unexpected-asserts</link><description>Hi, We are developing firmware application supporting ble central and peripheral that scans bluetooth devices for custom uuid128 to receive few advertisement and scan responses where scan responses change data. Peripheral advertises it own changing data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2023 06:19:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102772/unexpected-asserts" /><item><title>RE: Unexpected asserts</title><link>https://devzone.nordicsemi.com/thread/448739?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 06:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72aa75fe-2cb5-42bb-952d-99047e2e6ed3</guid><dc:creator>iivanov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Fix includes&lt;/p&gt;
&lt;p&gt;CONFIG_BT_SCAN_WITH_IDENTITY=y&lt;/p&gt;
&lt;p&gt;(otherwise central and peripheral using same address which creates issue)&lt;/p&gt;
&lt;p&gt;and checking connect/disconnect events are for correct peripheral/central connection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected asserts</title><link>https://devzone.nordicsemi.com/thread/448554?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 15:04:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaff2c27-f736-41bb-95df-7722f5fb38fa</guid><dc:creator>drumpros</dc:creator><description>&lt;p&gt;Hi there&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did this ever get resolved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected asserts</title><link>https://devzone.nordicsemi.com/thread/441893?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 14:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:684ed66d-ada8-432e-b07a-5dfde1abdfea</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Depending on your logging settings, there are some settings (ie. in-place logging) that will affect the runtime execution of the firmware.&lt;/p&gt;
&lt;p&gt;Could you try disabling RTT and see if the issue still occurs?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected asserts</title><link>https://devzone.nordicsemi.com/thread/441730?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 02:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e927e08e-99fa-4260-8d29-0a10516feda3</guid><dc:creator>iivanov</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Uart and RTT log backends are enabled.&lt;br /&gt;Main concern is with assert at zephyr/subsys/bluetooth/host/conn.c:1177] Conn reference counter is 0. Last caller of bt_conn_unref() was le_conn_complete_cancel.&lt;/p&gt;
&lt;p&gt;I understand that source code of peripheral and central examples are necessary to track down the issue. Our peripheral and central-peripheral projects are quite big so I working on cut down versions. &lt;br /&gt;It probably will take some time.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Ivan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected asserts</title><link>https://devzone.nordicsemi.com/thread/440976?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 13:43:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:213b43f6-b07a-4b62-8c30-bb45cc0f41f5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am struggling a bit to understand what you did in your application that causes these asserts.&amp;nbsp;&lt;/p&gt;
[quote user=""]1. ncs v2.2.0 does not allow to use mutexes in ISR so logging from ISRs been queued and processed later in main loop.[/quote]
&lt;p&gt;Where are you trying to log? Did you modify any of the NCS files, or did you only add logging in your own, custom files?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]2. Assert from zephyr/subsys/bluetooth/host/conn.c start poping up at different stages of BLE processes.[/quote]
&lt;p&gt;Did you modify the bluetooth files in NCS v2.4.0?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to upload the application(s) that are required to reproduce the issues that you are seeing? Please test it on an unmodified version of NCS to see that it is possible to replicate with the setup we would be using here. If it requires a peripheral device that it needs to connect to in order to replicate, please upload that as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;NB: I will be out of office for a while, but I will pop your ticket back in the queue, so that someone else can pick it up on Monday.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>