<?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>ASSERTION FAIL [net_buf_simple_tailroom(buf) &amp;gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80256/assertion-fail-net_buf_simple_tailroom-buf-len-west_topdir-zephyr-subsys-net-buf-c-800</link><description>Hi everybody, i get this error on a nrf53 with hr_coded on network coded, and UART example modified with multilink and coded_phy, tested by me on an nrf52. 
 
 The issue is, later of add the Kconfig necessary (copying the same as nrf52840 of my last project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Nov 2021 14:05:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80256/assertion-fail-net_buf_simple_tailroom-buf-len-west_topdir-zephyr-subsys-net-buf-c-800" /><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/338820?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 14:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6b81546-d792-432b-8cb6-283b9c079638</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;Sorry for the slow response, it has been very busy here lately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I ported your main file into an existing sample, and I was able to run it. I don&amp;#39;t appear to get the error you mentioned, you can see my log output below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636725865916v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Are you still having issues to run the project?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If so, can you zip and send me the entire project folder, including the source and .conf files?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/335149?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 16:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ba595c8-0b49-4902-af11-b1ccf2b5f40c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Thanks for the patience &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;p&gt;If there have been any developments on your end, please let me know.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/334977?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 05:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec3ec268-80d2-4c26-b02f-fd9bf57908dd</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Ok, don&amp;#39;t worry&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/334879?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 12:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bdd00b4-c4ee-4628-bc72-15291ab2d892</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just a quick update from my end: I am working to reproduce your issues, but I have encountered some issues on my end as well so progress has been slow. I will try to provide an update later this week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/333912?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 11:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aca18b7-db89-409d-a26f-b268038dd5f0</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Exactly that main with the Kconfig displayed before is working on nrf52840 nut no on nrf5340&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/333908?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 11:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c49ba3d-0a0d-4a91-8848-90d0d3a7ec19</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;The changes that i made are the advertising_params and the conn_params and Kconfig.&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/80256/assertion-fail-net_buf_simple_tailroom-buf-len-west_topdir-zephyr-subsys-net-buf-c-800/333891#333891"]If I understand you correctly you have modified the central_uart example to use coded phy?[/quote]
&lt;p&gt;Yes, coded and multilink.&lt;/p&gt;
&lt;p&gt;try with my main:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7245.main.c"&gt;devzone.nordicsemi.com/.../7245.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/333891?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 11:02:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a34dce-113a-4a62-89a2-376e0ab4d770</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I understand you correctly you have modified the central_uart example to use coded phy?&lt;/p&gt;
&lt;p&gt;I tried to do a quick modification of this example myself in order to reproduce the error, but I haven&amp;#39;t been able to see the same error yet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which changes did you make to the main.c file in order to enable coded phy?&lt;br /&gt;Maybe you can share the main.c file with me?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/333184?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 07:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0cdb9d-d766-417b-b5fb-322c15286962</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Debugging central project, the scanning doesn&amp;#39;t fail until an peripheral starts to advertising, but don&amp;#39;t arrive to trigger filter_match, before that happens the crash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/333177?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 07:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bb137fb-0c6e-4a54-a850-345b776e0514</guid><dc:creator>sotillo2409</dc:creator><description>[quote userid="107158" url="~/f/nordic-q-a/80256/assertion-fail-net_buf_simple_tailroom-buf-len-west_topdir-zephyr-subsys-net-buf-c-800/333172#333172"]Another note about, the same configuration on nrf53 but working as peripheral is working properly.[/quote]
&lt;p&gt;In my peripheral project, the nrf53 is working transmiting 200bytes/100ms on coded_s8 properly, so in my opinion the problem could have something related with the scan procedure/config.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/333172?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 07:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c914cf56-6874-41f1-8ed1-f3c1fde1e8e8</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;CONFIG_BT_RX_STACK_SIZE=2200&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A&lt;/em&gt;nd the error keeps.&lt;/p&gt;
&lt;p&gt;The error isn&amp;#39;t appear on a connection, so really i don&amp;#39;t know if it could have something related with bluetooth.&lt;/p&gt;
&lt;p&gt;The error happens when main finish, and theoretically start to scan. The error can&amp;#39;t be reproduce when uses default config on board (no coded).&lt;/p&gt;
&lt;p&gt;I have doubts when u ask me about prj.conf, all configurations that i add are on Kconfig, this is the Kconfig of my application core:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633676185621v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And this my config of the network core (hr_coded child image):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633676259731v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;On prj.conf is the default one:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Enable the UART driver
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_UARTE0=y
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Enable the BLE stack with GATT Client configuration
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_SMP=y
CONFIG_BT_GATT_CLIENT=y

# Enable the BLE modules from NCS
CONFIG_BT_NUS_CLIENT=y
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_UUID_CNT=1
CONFIG_BT_GATT_DM=y
CONFIG_HEAP_MEM_POOL_SIZE=2048

# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y

# Config logger
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n

CONFIG_ASSERT=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Really i have doubts of where and how is the correct way to apply this configuration. I think that no have sense that on app core I configure things of BT_...&lt;/p&gt;
&lt;p&gt;I wish follow clear steps to succed with this device.&lt;/p&gt;
&lt;p&gt;Another note about, the same configuration on nrf53 but working as peripheral is working properly.&lt;/p&gt;
&lt;p&gt;Thank you for the interest and support,&lt;/p&gt;
&lt;p&gt;regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/333031?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 11:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e31b7d48-c8ad-4e2c-9f9e-a9bc12c4b7a8</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you already used the hr_coded example as a starting point it is true that the child_image/hci_rpmsg.conf file should already be set correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This could possibly be caused by a stack overflow in the Bluetooth thread on the app core.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to increase the BT_RX_STACK_SIZE parameter in the app core?&lt;/p&gt;
&lt;p&gt;To do this in the prj.conf file, simply add the following line:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;CONFIG_BT_RX_STACK_SIZE=1024&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I am not sure we have a good tutorial on how to set up the child image for the network core in the nRF5340. I will have to ask around and get back to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/332764?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 08:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24270fc8-47b7-4b14-9ee8-f0ee3a9dbaaf</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi, I am not sure of what is the way to configure network core properly, i use child image of hr_coded because of that supports long range. Could you share a link of tutorial for how to custom this child image?&lt;/p&gt;
&lt;p&gt;And for configure other parameters i am used to use Kconfig. But i am desiring learn whats is the correct way to do it&lt;/p&gt;
&lt;p&gt;I will update the files that you ask for on a couple of days.&lt;/p&gt;
&lt;p&gt;Thank you for the support,&lt;/p&gt;
&lt;p&gt;regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL [net_buf_simple_tailroom(buf) &gt;= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800</title><link>https://devzone.nordicsemi.com/thread/332420?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 16:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38f1cb00-f503-4863-a0ab-1f9c9fbfe8a6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A common problem with the nRF5340 is to forget to configure the network core correctly, since the Bluetooth stack is split between the application and network cores.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you share the config files you use for the application and network cores?&lt;br /&gt;Normally the network core configuration is stored in the child_image/hci_rpmsg.conf file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, could you share the zephyr.map file with me?&lt;br /&gt;These kind of fatal errors are often caused by a stack overflow in a thread, and the map file should show which thread the error is related to.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>