<?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>direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79469/direction_finding_connectionless_rx-crashes-if-config_assert-y</link><description>If I enable CONFIG_ASSERT=y this example will crash (or code using the DF APIs) 
 To reproduce: 
 - nRF Connect 1.6.1 
 - In direction_finding_connectionless_rx add CONFIG_ASSERT=y to the prj.conf 
 - Build direction_finding_connectionless_rx and direction_finding_connectionless_tx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Sep 2021 12:40:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79469/direction_finding_connectionless_rx-crashes-if-config_assert-y" /><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/329444?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a936c733-e4b5-4a5d-b2ce-04ca28a9164d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;Thank you for pointing out that the &amp;quot;Booting Zephyr&amp;quot; message overwrote the ASSERTION FAIL. I missed it because of that. Very sorry about that.&lt;/p&gt;
&lt;p&gt;So, after some debugging I found out that the CONFIG_BT_BUF_ACL_RX_COUNT and CONFIG_BT_BUF_ACL_RX_SIZE were too small for the length and caused this ASSERT when CONFIG_ASSERT=y in the connectionless_rx sample project. If you change these to the following values you should be out of harms way. I have also reported this internally, and we&amp;#39;ll update the project in a future NCS release to fix this issue. Thank you again for reporting this to us!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CONFIG_BT_BUF_ACL_RX_COUNT=10&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;CONFIG_BT_BUF_ACL_RX_SIZE=200&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/329238?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 12:48:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07f19883-6583-4400-be59-a4d74aecdc99</guid><dc:creator>jakkra</dc:creator><description>&lt;p&gt;So I picked a new computer, installed nrfconnect, toolchain manager etc. and ncs version 1.6.1. My only modification is adding CONFIG_ASSERT=y in this folder:&amp;nbsp;NrfConnect\v1.6.1\nrf\samples\bluetooth\direction_finding_connectionless_rx&lt;/p&gt;
&lt;p&gt;Compiling with:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Transmitter:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;west build -p -b nrf52833dk_nrf52833 -- -DOVERLAY_CONFIG=overlay-aoa.conf -DTC_OVERLAY_FILE=boards/nrf52833dk_nrf52833.overlay&lt;/p&gt;
&lt;p&gt;west flash&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Receiver:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;west build -p -b nrf52833dk_nrf52833 -- -DTC_OVERLAY_FILE=boards/nrf52833dk_nrf52833.overlay&lt;/p&gt;
&lt;p&gt;west flash&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have uploaded the log from receiver. You can see it crashing over and over again with error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ASSERTION FAIL [net_buf_simple_tailroom(buf) &amp;gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using two nRF52833-DK without any antenna connected (just PCB antenna)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/putty.log"&gt;devzone.nordicsemi.com/.../putty.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Capture_5F00_assert.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/329167?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68747b48-9b04-400a-a4bf-0bfe6057e14d</guid><dc:creator>jakkra</dc:creator><description>&lt;p&gt;I use the sample in&amp;nbsp;&lt;strong&gt;\zephyr\&lt;/strong&gt;samples\bluetooth\direction_finding_connectionless_rx\prj.conf but I tried the one on nrf folder also I think. The last log the output is a bit currupted I think . The ** Booting Zephyr ....&amp;quot; text overwrote the half ASSERT message see below bold text (&lt;span&gt;ASSERTION FAIL [0])&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1 ***len] &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;@ WEST_TOPDIR/zephyr/subsys/net/buf.c:800&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Starting Connectionless Locator Demo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can see exactly the git diff in one of my previous comments see here again:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PATH: DF/v1.6.1/zephyr/samples/bluetooth/direction_finding_connectionless_rx ((v2.6.0-rc1-ncs1))&lt;br /&gt;$ git diff&lt;br /&gt;diff --git a/samples/bluetooth/direction_finding_connectionless_rx/prj.conf b/samples/bluetooth/direction_finding_connectionless_rx/prj.conf&lt;br /&gt;index 6de448fa5a..2761c58a9f 100644&lt;br /&gt;--- a/samples/bluetooth/direction_finding_connectionless_rx/prj.conf&lt;br /&gt;+++ b/samples/bluetooth/direction_finding_connectionless_rx/prj.conf&lt;br /&gt;@@ -10,3 +10,4 @@ CONFIG_BT_OBSERVER=y&lt;br /&gt;# Enable Direction Finding Feature including AoA and AoD&lt;br /&gt;CONFIG_BT_DF=y&lt;br /&gt;CONFIG_BT_DF_CONNECTIONLESS_CTE_RX=y&lt;br /&gt;+CONFIG_ASSERT=y&lt;br /&gt;\ No newline at end of file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ll try the sample on nrf folder also again to make sure same issue there. I&amp;#39;ll also reproduce everything once again with a completely clean install.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/329163?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56932890-b82e-44ac-b998-d11a5a533047</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see an assertion fail in the log you posted in your last reply, are you sure this is the complete log? Can you also confirm that you&amp;#39;re setting CONFIG_ASSERT=y in the prj.conf&amp;nbsp;file located in&amp;nbsp;&lt;strong&gt;...\NCS v1.x.x\nrf\samples\bluetooth\direction_finding_connectionless_rx\prj.con&lt;/strong&gt;f?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/328997?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 10:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:057129b5-4da7-4935-917b-fdd45e83d239</guid><dc:creator>jakkra</dc:creator><description>&lt;p&gt;Tried in a shielded box still crashes for me. ncs 1.6.1 downloaded from toolchain manager.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/328979?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 09:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc6b036-0629-45fe-aa3c-c634793df66d</guid><dc:creator>jakkra</dc:creator><description>&lt;p&gt;I now have both TX and RX (without antenna array) running on two nRF52833-DK and I get the same issue, only modification I made is to add the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_ASSERT=y&amp;nbsp;in receiver prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is a full log on RX side. Could it be the issue is that there are many devices around here which causes the problem. I can give it a try in a shielded box to verify that as that could explain why you are not able to reproduce.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1 ***len]&lt;br /&gt;Starting Connectionless Locator Demo&lt;br /&gt;Bluetooth initialization...success&lt;br /&gt;Scan callbacks register...success.&lt;br /&gt;Periodic Advertising callbacks register...success.&lt;br /&gt;Start scanning...success&lt;br /&gt;Waiting for periodic advertising...[DEVICE]: 14:05:3F:9F:6C:94 (random), AD evt type 3, Tx Pwr: 127, RSSI -81 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 22:D9:15:03:CB:94 (random), AD evt type 3, Tx Pwr: 127, RSSI -82 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 5B:A3:06:23:12:4A (random), AD evt type 0, Tx Pwr: 127, RSSI -88 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 5D:DD:54:53:92:DC (random), AD evt type 0, Tx Pwr: 127, RSSI -87 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 03:EA:66:FD:62:F6 (random), AD evt type 5, Tx Pwr: 127, RSSI -63 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0&lt;br /&gt;success. Found periodic advertising.&lt;br /&gt;Creating Periodic Advertising Sync...success.&lt;br /&gt;Waiting for periodic sync...&lt;br /&gt;[DEVICE]: 00:12:F3:43:44:41 (public), AD evt type 0, Tx Pwr: 127, RSSI -71 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:43:44:41 (public), AD evt type 4, Tx Pwr: 127, RSSI -70 NINA-B3-434441 C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: CF:98:95:2E:71:5A (random), AD evt type 3, Tx Pwr: 127, RSSI -85 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: F1:EE:A5:62:86:31 (random), AD evt type 3, Tx Pwr: 127, RSSI -80 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:00:00:39 (public), AD evt type 0, Tx Pwr: 127, RSSI -53 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:00:00:39 (public), AD evt type 4, Tx Pwr: 127, RSSI -52 NINA-B3-000039 C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:58:61:26 (public), AD evt type 0, Tx Pwr: 127, RSSI -88 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: D5:1F:F2:64:CA:90 (random), AD evt type 3, Tx Pwr: 127, RSSI -82 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 3C:6F:67:30:FD:B6 (random), AD evt type 3, Tx Pwr: 127, RSSI -73 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:00:00:49 (public), AD evt type 0, Tx Pwr: 127, RSSI -47 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:00:00:49 (public), AD evt type 4, Tx Pwr: 127, RSSI -46 NINA-B3-000049 C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:01:19:33 (public), AD evt type 0, Tx Pwr: 127, RSSI -78 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:01:19:33 (public), AD evt type 4, Tx Pwr: 127, RSSI -78 NINA-B1-011933 C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 7F:79:EF:92:9B:67 (random), AD evt type 0, Tx Pwr: 127, RSSI -87 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 69:CC:4E:EA:8A:1D (random), AD evt type 3, Tx Pwr: 127, RSSI -61 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 01:C8:56:46:29:80 (random), AD evt type 3, Tx Pwr: 127, RSSI -51 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:01:33:79 (public), AD evt type 0, Tx Pwr: 127, RSSI -69 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;[DEVICE]: 00:12:F3:01:33:79 (public), AD evt type 4, Tx Pwr: 127, RSSI -69 ANNA-B1-013379 C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255&lt;br /&gt;PER_ADV_SYNC[0]: [DEVICE]: 03:EA:66:FD:62:F6 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M&lt;br /&gt;success. Periodic sync established.&lt;br /&gt;Enable receiving of CTE...&lt;br /&gt;success. CTE receive enabled.&lt;br /&gt;Scan disable...Success.&lt;br /&gt;Waiting for periodic sync lost...&lt;br /&gt;PER_ADV_SYNC[0]: [DEVICE]: 03:EA:66:FD:62:F6 (random), tx_power 127, RSSI -55, CTE AOA, data length 0, data:&lt;br /&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1 ***len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800&lt;br /&gt;Starting Connectionless Locator Demo&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/328946?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 07:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc886a4c-d9f3-418c-a6b0-852ee8819018</guid><dc:creator>jakkra</dc:creator><description>&lt;p&gt;Hi thanks for input, at first I useed our custom board with our antenna, however after your reply I also tried rebuilding and re-flashing the RX code on a nRF52833 DK without antenna array, so nRF52833 DK using only single PCB antenna and I get the same crash. I verified that I have no diff in the sdk except:&lt;/p&gt;
&lt;p&gt;...DF/v1.6.1/zephyr/samples/bluetooth/direction_finding_connectionless_rx ((v2.6.0-rc1-ncs1))&lt;br /&gt;$ git diff&lt;br /&gt;diff --git a/samples/bluetooth/direction_finding_connectionless_rx/prj.conf b/samples/bluetooth/direction_finding_connectionless_rx/prj.conf&lt;br /&gt;index 6de448fa5a..2761c58a9f 100644&lt;br /&gt;--- a/samples/bluetooth/direction_finding_connectionless_rx/prj.conf&lt;br /&gt;+++ b/samples/bluetooth/direction_finding_connectionless_rx/prj.conf&lt;br /&gt;@@ -10,3 +10,4 @@ CONFIG_BT_OBSERVER=y&lt;br /&gt; # Enable Direction Finding Feature including AoA and AoD&lt;br /&gt; CONFIG_BT_DF=y&lt;br /&gt; CONFIG_BT_DF_CONNECTIONLESS_CTE_RX=y&lt;br /&gt;+CONFIG_ASSERT=y&lt;br /&gt;\ No newline at end of file&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to find another nRF52833 DK so that I can flash the transmitter code on that and not use our custom board for TX also if that makes a difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y</title><link>https://devzone.nordicsemi.com/thread/328933?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 07:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5733c68-8ac7-4aaf-9b92-ef34032dbdc9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tried this on my end and did not run into an assertion fail like this. Are you running the RX and TX examle projects on nRF52833 DKs or custom boards? Is the RX device connected to an antenna array or is it just using a single antenna?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>