<?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>Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79517/forced-disconnections-when-i-try-to-send-50-bytes-per-second-on-uart-example</link><description>Hi everyone, 
 
 Explaning my project: an external device transmit via UART to nordik nrf52840DK device with UART peripheal firmware, this is connected to another nrf52840DK via BLE with UART central firmware. 
 So the peripheal is only working as bridge</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Sep 2021 18:46:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79517/forced-disconnections-when-i-try-to-send-50-bytes-per-second-on-uart-example" /><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/331392?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 18:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:963fb583-5782-47cd-bc34-a8c9dbe6c7a2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It does not seem like any of the options in our&amp;nbsp; board peripheral .defconfig is board specific. Can you comment out all those and introduce one-by-one to see the effect? Or alternatively use the nRF52840 DK board with your custom board, just modify pin configuration for the UART?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/331083?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 12:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06573f4d-3fbd-4ecc-9d87-06793037f2ef</guid><dc:creator>sotillo2409</dc:creator><description>[quote userid="107158" url="~/f/nordic-q-a/79517/forced-disconnections-when-i-try-to-send-50-bytes-per-second-on-uart-example/331046#331046"]The next test that I am going to do is with a default UART_Central/Peripheral and my custoim board (probably are going to crash).[/quote]
&lt;p&gt;I have tested dfault Central/Peripheral uart SDK example on my custom board and i got this error:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1632487331642v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;The external UART is connected to peripheral,where the error happen: the address mach with this thread:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1632487386582v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;As on the past i put up the Stacksize and the error is keeping, so we stay on this point&lt;/p&gt;
[quote userid="107158" url="~/f/nordic-q-a/79517/forced-disconnections-when-i-try-to-send-50-bytes-per-second-on-uart-example/329353#329353"]&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631609865407v1.png" alt=" " style="cursor:zoom-in;" /&gt;&lt;/p&gt;
&lt;p&gt;Is the default function to do the bridge on UART example&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On the other hand if I connect the external UART to the central i get the popular error of BUS FAULT:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1632488164812v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So definetly there are some on this custom board that isn&amp;#39;t well configured &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&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: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/331059?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 11:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c99bae60-b542-4ae9-813d-e93ed2cf5870</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;There are some way to know the Kconfig parameters of the example of UART on SDK ?&lt;/p&gt;
&lt;p&gt;Maybe i missed something and copying the original could solve something.&lt;/p&gt;
&lt;p&gt;regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/331046?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 11:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b5b9726-1b29-4467-8d31-0d37af3e369b</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have new information,&lt;/p&gt;
&lt;p&gt;I take&amp;nbsp;MY peripheral_UART code and put it into an nrf53 with the child image of hr_coded. I connect it to MY custom board with MYCentral_UART code. I connect the external UART to the peripheral nrf53 and is transmitting without problem and no asserts and no reboots.&lt;/p&gt;
&lt;p&gt;So i can deduce that my code works, but the configuration of my custom board doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;This is my board peripheral .defconfig:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_HELLO_BOARD=y

# Enable MPU
CONFIG_ARM_MPU=y

# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y

# Enable RTT
CONFIG_USE_SEGGER_RTT=y

# enable GPIO
CONFIG_GPIO=y

# enable uart driver
CONFIG_SERIAL=y

# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# additional board options
CONFIG_GPIO_AS_PINRESET=y

#Fundamental para ext adv on coded
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_USER_PHY_UPDATE=y

CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_BT_CTLR_CONN_RSSI=y
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I read about&amp;nbsp;CONFIG_FLASH=y and custom boards.&lt;/p&gt;
&lt;p&gt;The next test that I am going to do is with a default UART_Central/Peripheral and my custoim board (probably are going to crash).&lt;/p&gt;
&lt;p&gt;Any question, test or idea for debug is very welcome,&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: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/330862?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 12:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4140464-a28b-4fee-ab9b-aa2ba15b330a</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;OK, I will try.&lt;/p&gt;
&lt;p&gt;I keep my custom Central Uart but trying to connect to&amp;nbsp;&lt;span&gt;nRF connect for Desktop BLE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/79517/forced-disconnections-when-i-try-to-send-50-bytes-per-second-on-uart-example/330854#330854"]I thought the fault happened on the peripheral device? Now I see you have a bus fault on the central device as well?[/quote]
&lt;p&gt;The fault happen only on the device which the external UART is connected. On another words, the device which faults is receiving data through UART rx and sending it to the another device through BLE.&lt;/p&gt;
&lt;p&gt;So i can&amp;#39;t understand that the error is on this thread...&lt;/p&gt;
[quote userid="107158" url="~/f/nordic-q-a/79517/forced-disconnections-when-i-try-to-send-50-bytes-per-second-on-uart-example/330847#330847"]&lt;p&gt;On hci_core on line 65:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1632399066046v5.png" alt=" " style="cursor:zoom-in;" /&gt;&lt;/p&gt;
&lt;p&gt;This thread isn&amp;#39;t the same of the last time, I&amp;nbsp;CONFIG_BT_RX_STACK_SIZE=2200 and&amp;nbsp;CONFIG_BT_HCI_TX_STACK_SIZE=2200&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;pre class="tw-data-text tw-text-large XcVN5d tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/330854?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 12:40:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e03c9e61-5fb9-4c53-bc5d-e5759f453eac</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I thought the fault happened on the peripheral device? Now I see you have a bus fault on the central device as well?&lt;/p&gt;
&lt;p&gt;Can you try to make a minimal failing project that reproduce the issue using a single DK, and using any device (like nRF connect for Desktop BLE) as the peer? Also it should not rely on physical UART, but just send some dummy NSU data in firmware. That way it is easier to test and also fewer variables to look into. Also, if stripping away parts of your firmware changes the behavior that gives an indication on where to look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/330847?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 12:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:205b7b7c-0e86-4d3d-9089-94f0a341a7bc</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi another time,&lt;/p&gt;
&lt;p&gt;If you didn&amp;#39;t be able to debug my project until now, there aren&amp;#39;t any problem, but i work a little more on the projects, and as i can see only is keeping&amp;nbsp;the error of BUS Alert, but with some differences on directions, i will update all information:&lt;/p&gt;
&lt;p&gt;For reproduce this error is necessary have a connection of 1 central and 1 peripheral. On one of any devices connect&amp;nbsp;to a external UART(for example xctu) and send periodically a packet of 5 bytes + \r +\n every second.&lt;/p&gt;
&lt;p&gt;The error happens&amp;nbsp;on the device where the external UART is connected and sending data. Aparently the device reboots randomly. This is an example of the issue on Central:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1632398747708v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Debuging on direction 0x0029e5c:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1632398795484v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;On thread.c line 828:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1632398931221v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;To see wich thread is causing this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1632398992298v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;On hci_core on line 65:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1632399066046v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This thread isn&amp;#39;t the same of the last time, I&amp;nbsp;CONFIG_BT_RX_STACK_SIZE=2200 and&amp;nbsp;CONFIG_BT_HCI_TX_STACK_SIZE=2200&lt;/p&gt;
&lt;div&gt;and the error continue...&lt;/div&gt;
&lt;div&gt;I don&amp;#39;t know what more try.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you,&lt;/div&gt;
&lt;div&gt;regards.&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/330404?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 08:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:736eaa33-a899-4b53-b1d6-373f52b3e014</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;I think i am having troubbles with flow control of uart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/330377?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 05:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ea9d2d3-0518-4908-9bef-fa6ba0027134</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;don&amp;#39;t worry about the delay, i have been testing the examples more, and improving my structure of manage connection/disconnection between devices.&lt;/p&gt;
&lt;p&gt;What I was trying is send this time from the central to the peripheral. I get an error relationed with the buffers that i post on another thread.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79820/help-to-understanding-error-not-able-to-allocate-uart-receive-buffer"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/79820/help-to-understanding-error-not-able-to-allocate-uart-receive-buffer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But the ble communication seems to work properly, so i guess that the issue of this thread is going to be something realtioned with buffers, configuration, k_free function on peripheral project,&lt;/p&gt;
&lt;p&gt;I will update with news,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/330310?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 14:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd695505-70d6-4acc-9604-04c54ce034e6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay. I have not been able to test this yet but will give it a shot soon, hopefully tomorrow. Have you made any progress since last week?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329704?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 05:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d2408e0-0b52-479f-be60-6c489da59cd3</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uartF_5F00_ML1.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uartF_5F00_ML1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the interest on debug my project, is so important to mi achieve this.&lt;/p&gt;
&lt;p&gt;To reproduce my configuration you should compile that project with another board (I use a custom board named hello_board, the only difference with nrf52840 dk are the UART, buttons and Leds pins).&lt;/p&gt;
&lt;p&gt;Firstly u should close a communication between 2 devices, my project use a filter by name, and only work on coded phy, so i will upload Central UART too to make you&amp;nbsp;easier.&lt;/p&gt;
&lt;p&gt;Later you should send packets of 50 bytes every second from another device to UART rx pin of peripheral.&lt;/p&gt;
&lt;p&gt;If this happend while there are a communication the error must happen.&lt;/p&gt;
&lt;p&gt;Thank you, regards.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_uart_5F00_ML1.zip"&gt;devzone.nordicsemi.com/.../central_5F00_uart_5F00_ML1.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329577?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 10:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae643e7-806d-4e39-b497-662565d66e37</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Can you upload the full project (Bluetooth peripheral_uart sample with some modifications I assume) so that I can test the exact same thing as you on my side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329353?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 08:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa10560e-703a-46ea-a8be-e5391cc1ee96</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631609865407v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is the default function to do the bridge on UART example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329349?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 08:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360424b5-923f-40b8-959b-ddbeb41d8fd4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Now we know that there&amp;nbsp;exception happens in &lt;code&gt;ble_write_thread&lt;/code&gt;, but not what causes it. Can you share the implementation of that function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329301?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 05:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6f9472-37f3-4b27-9b51-ff620bebc591</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;As u recommend:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631597087963v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And in line 676 of main.c&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631597117398v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I increase the STACKSIZE=1024 to 20*1024 and the error keeps continuing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329265?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 14:06:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cc475e5-5758-4086-9cef-9be3cd062819</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. So there is a spinlock assert for some reason. Looking at the error relates to the tread at&amp;nbsp;0x20001b88. Can you check the map file to see which thread it corresponds to? Does it help upping the stack for that thread?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329186?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 10:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2557d88d-af42-4a72-ba3d-7fd77f0c2520</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.07\bin&amp;gt;arm-none-eabi-addr2line -e C:\Users\pixelcom\Documents\PlatformIO\Nordic\peripheral_uartF_ML\build_hello_board\zephyr\zephyr.elf 0x00025ef0&lt;br /&gt;C:/NordSemi/v1.6.1/zephyr/kernel/thread.c:828&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631529136667v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The error of BUS ALERT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329182?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 10:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbcc11c1-6529-4ae4-ae61-5d3a0a2e9b1d</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.07&amp;gt;arm-none-eabi-addr2line -e C:\Users\pixelcom\Documents\PlatformIO\Nordic\peripheral_uartF_ML\build_hello_board\zephyr\zephyr.elf 0x0002c618&lt;br /&gt;C:/NordSemi/v1.6.1/zephyr/lib/os/assert.c:46&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631528320741v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329174?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed167349-9203-42c3-a4e4-6da3a5a39d18</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;I will try right now, the last error on Segger is combined with this,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631526742424v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So the rebooting is duoe two differents reasons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329173?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32bd123a-56b7-4bae-8c39-bd7b9c5c1c4f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Can you check what is at&amp;nbsp;0x0002c618? That would be using something like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-addr2line -e build-folder/zephyr/zephyr.elf 0x0002c618&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329171?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31ca7e33-06ad-4258-a8a4-ddfe192599d4</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes i am using nRF Connect SDK 1.6.1 and&amp;nbsp;&lt;span&gt;nRF Connect 3.7.1 with Toolchain Manager 0.9.3.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The last output error is getted via UART on the peripheal. The next output error appears on Segger Studio Debug at the same time:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[00:00:18.517,486] [1;31m&amp;lt;err&amp;gt; os: r0/a1: 0x00000004 r1/a2: 0x0000009a r2/a3: 0x00000001[0m&lt;br /&gt;[00:00:18.517,517] [1;31m&amp;lt;err&amp;gt; os: r3/a4: 0x0001832d r12/ip: 0x00000000 r14/lr: 0x00015c97[0m&lt;br /&gt;[00:00:18.517,517] [1;31m&amp;lt;err&amp;gt; os: xpsr: 0x41000000[0m&lt;br /&gt;[00:00:18.517,517] [1;31m&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0002c618[0m&lt;br /&gt;[00:00:18.517,547] [1;31m&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0[0m&lt;br /&gt;[00:00:18.517,547] [1;31m&amp;lt;err&amp;gt; os: Current thread: 0x20001b88 (unknown)[0m&lt;br /&gt;[00:00:18.696,929] [1;31m&amp;lt;err&amp;gt; fatal_error: Resetting system[0m&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329165?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:16:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cbea1ef-8d41-429d-aad9-9e418b8f0f1b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is a good indication of the issue. Can you check wat is located at&amp;nbsp;0x200033d4 in order to get closer? Using addr2line with the .elf file should do this.&lt;/p&gt;
&lt;p&gt;(Regarding the APP_ERROR_CHECK that was under the assumption that you were using nRF5 SDK, which was not the case. I was hipping to get much of the same information you got from the assert you shown in your last post)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329151?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 07:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e65b716-a31e-488f-a9fa-da1e08027678</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;I get the next error output due to reboots of peripheals:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ASSERTION FAIL [chunk_used(h, c)] @ WEST_TOPDIR/zephyr/lib/os/heap.c:154&lt;/p&gt;
&lt;p&gt;unexpected heap state (double-free?) for memory at 0x200033d4&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1 ***&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329131?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 05:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0596b00-ce51-402e-b9dc-a3f580ded3a6</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Okay, i debug it and the peripheal is rebooting&amp;nbsp;unexpectedly on random times, don&amp;#39;t have a patron fixed, maybe peripheal have sended 20 messages or maybe 2 before of reboot. When i send an array of data of 5 bytes to peripheal UART every second this reboot isn&amp;#39;t happend, with more of 20 bytes start to reboot. I think the issue is due to UART data flow.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/79517/forced-disconnections-when-i-try-to-send-50-bytes-per-second-on-uart-example/329014#329014"]Perhaps you did not properly handle full buffers, and that lead to a APP_ERROR_CHECK being hit[/quote]
&lt;p&gt;Where and what i can do??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you, regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Forced disconnections when i try to send 50 bytes per second on UART example</title><link>https://devzone.nordicsemi.com/thread/329023?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 11:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920c7c83-4689-4e42-a256-b3cbd94f1fd4</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi, looking it better the&amp;nbsp;&lt;span&gt;Disconnect reason -8 is coming of the central Device, so i will try to debug peripheal to see which is the reasson of it disconnection&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>