<?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>Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110456/crash-on-connect-with-ncs-2-6-0</link><description>You can find all information about the issue and how to produce it on GitHub: github.com/.../ncs-2.6.0-connect-crash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2024 05:39:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110456/crash-on-connect-with-ncs-2-6-0" /><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/513548?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd715831-1bcb-451e-961f-7b5b46b3d781</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;I just tested it and it works great, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/508762?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2024 08:27:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6094023-9e04-4226-ae95-c23bb6503ef9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have some good news! Our SoftDevice team have found the cause of this bug, and the fix is merged into our next release in v2.8.0. The issue was related to a lot of UART events being generated, which caused some issues with some internal buffers and parameters not being correctly cleared.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I believe v2.8.0 is right around the corner, so you can test the fix when it is released. (I am not certain it is part of the release candidates that are already available).&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><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/508195?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 14:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145cee4a-1ff1-4e49-95e2-4418ef160cab</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late replies. Someone in our SoftDevice team is looking into this, but they have not yet figured out the source of the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just wanted to let you know that this ticket is not forgotten or ignored. I will let you know as soon as I have more details.&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><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/507233?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 04:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b9c327-acb1-4eb5-9cba-ec065c8fd370</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;I did some additional testing(and have updated the repository) and have some more info to share:&lt;/p&gt;
&lt;p&gt;- In my previous post I was testing with peripheral_hr(from my repo, not the original) but I missed that the problem disappeared from peripheral_hr_coded(from my repo, not the original). Enabling CONFIG_BT_HCI_CORE_LOG_LEVEL_DBG made the problem reappear. That further hints at a race condition.&lt;/p&gt;
&lt;p&gt;- While changing the UART timeout from 100us to 1000us makes the problem disappear from peripheral_hr it does NOT make it disappear from peripheral_hr_coded, which is interesting to say the least. That means that the suggested workaround does not work reliably, unfortunately.&lt;/p&gt;
&lt;p&gt;- I have never been able to reproduce this with CONFIG_BT_EXT_ADV enabled, so this might be the real workaround here. I&amp;#39;m a little too scared to rely on this though, given that this might just be making the race condition harder to trigger, like the other changes I made.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/504354?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 12:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d559818d-d73b-4049-ab81-553a25603db5</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;All I had to do was to change the nRF SDK version in west.yml and run `west update`.&lt;/p&gt;
&lt;p&gt;For the central, only 2.7.0 makes the bug disappear. With 2.6.0 and 2.6.2, it still happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/504350?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 12:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd599947-1598-46ba-974a-e87e048d0065</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for coming back to us. I remember this issue. I see that there is no update on my internal ticket, but I will ping it. Can you please let me know whether you needed to do any changes to the application to reproduce it using 2.7.0? And just out of curiousity - Does it matter if the central is using 2.7.0 as well? Still reproducible? I am not saying that it is a fix to make sure that both are 2.7.0, but it can be a place to start to know whether it is reproducible when the central is 2.7.0 or not.&amp;nbsp;&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><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/504112?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 08:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e34c9df9-0fd1-4e27-b269-cebb8bef8c3d</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;I can still reproduce the issue (of the peripheral crashing) if I use 2.6.0(or 2.6.2) for the central and 2.7.0 for the peripheral. That means a slight difference in the behavior of the central just makes it less likely for the issue to appear, but it&amp;#39;s not fixed yet, unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/483009?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 11:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e43d3e2c-316f-40b8-9a59-bb44b1320c8c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;After talking to our SoftDevice team, they said that they are not able to reproduce the issue on the current main branch (which will turn into 2.7.0 at some point), but they are not yet sure what caused the issue. They are still looking into it. In the meantime, for further development, you can increase the uart inactivity timeout from 100µs to 1000µs, until we find the cause for the issue.&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><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/482779?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 11:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6d842ec-8138-445c-933c-a88b65abf30f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry. I forgot to mention, but I also changed your timeout for the UART. Try to increase it from 100 to at least 1000. I would also recommend that you change the memory[100] buffer with a buffer defined outside your work function, so it is valid after this work function returns.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure why it fails when the timeout is 100µs. I have forwarded this to our SoftDevice controller team.&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><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/482696?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 04:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:401c9d6f-99c9-4623-ac2e-aad170b1ff08</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;1) It&amp;#39;s interesting that it worked for you because for me, it doesn&amp;#39;t. See the updated GitHub repository.&lt;/p&gt;
&lt;p&gt;2) It&amp;#39;s not true, that you have to provide a second buffer with uart_rx_buf_rsp. This is totally optional and only needed if you want to continue receiving after the current buffer has filled up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/482431?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 07:26:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6da40092-8fdd-43e2-a084-1a6cd8ba90ad</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Simon is out of office, and asked if I could look into your ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the MPSL issue is because of an error in the UART handler. Your UART handler was empty, so you probably didn&amp;#39;t notice it being called, but it was being called with event-&amp;gt;type = UART_RX_BUF_REQUEST. As you can see from uart.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	/**
	 * @brief Driver requests next buffer for continuous reception.
	 *
	 * This event is triggered when receiving has started for a new buffer,
	 * i.e. it&amp;#39;s time to provide a next buffer for a seamless switchover to
	 * it. For continuous reliable receiving, user should provide another RX
	 * buffer in response to this event, using uart_rx_buf_rsp function
	 *
	 * If uart_rx_buf_rsp is not called before current buffer
	 * is filled up, receiving will stop.
	 */
	UART_RX_BUF_REQUEST,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So you need to provide a buffer via uart_rx_buf_rsp().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason you need to provide another buffer is that the uart is double buffered.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint8_t my_uart_buffer[100];

static void uart_callback(const struct device *const uart_dev, struct uart_event *const event,
			  void *const user_data)
{
    
    switch (event-&amp;gt;type) {
        case UART_RX_BUF_REQUEST:
            LOG_INF(&amp;quot;uart cb type UART_RX_BUF_REQUEST&amp;quot;);
            uart_rx_buf_rsp(uart_dev, my_uart_buffer, sizeof(my_uart_buffer));
            break;
        default:
            LOG_INF(&amp;quot;uart cb type %d&amp;quot;, event-&amp;gt;type);
            break;
    }

}

static void work_handler(struct k_work *work)
{
	ARG_UNUSED(work);

	int ret;

	ret = uart_callback_set(uart_dev, uart_callback, NULL);
	if (ret) {
		LOG_ERR(&amp;quot;Failed to set UART driver callback: %d&amp;quot;, ret);
		return;
	}

	//static uint8_t memory[100];
    ret = uart_rx_enable(uart_dev, my_uart_buffer, sizeof(my_uart_buffer), SYS_FOREVER_US);
	if (ret) {
		LOG_ERR(&amp;quot;Failed to enable UART RX: %d&amp;quot;, ret);
		return;
	}

	LOG_INF(&amp;quot;UART initialized&amp;quot;);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That worked in my case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You may notice that I am just using the same buffer again, so this means that it will use the same buffer when the buffer is full. So if you receive data too fast, it may start overwriting the start of the buffer before you get to read it out. To work around this, either see how it is done in the peripheral_uart sample, or use a double buffer, where you change what buffer is being provided in the UART_RX_BUF_REQUEST event.&amp;nbsp;&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><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/481428?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 04:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceec9cc7-d08b-4ad4-aaf0-af0b74808f20</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;first: We don&amp;#39;t need a workaround, because we are willing to wait a little bit for a proper fix. We simply don&amp;#39;t want to be stuck with 2.5.1 forever(where the bug doesn&amp;#39;t exist).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I implemented your suggested change and pushed it to GitHub. It did not make a difference:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.012,939] &amp;lt;inf&amp;gt; main: BT ready
[00:00:00.037,963] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x200187ec len 68
[00:00:00.037,994] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: Getting net_buf from queue
[00:00:00.038,024] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: buf 0x200187ec type 1 len 68
[00:00:00.038,024] &amp;lt;dbg&amp;gt; bt_hci_core: hci_event: event 0x3e
[00:00:00.038,055] &amp;lt;dbg&amp;gt; bt_hci_core: hci_le_meta_event: subevent 0x08
[00:00:00.038,085] &amp;lt;dbg&amp;gt; bt_ecc: bt_hci_evt_le_pkey_complete: status: 0x00
[00:00:01.000,488] &amp;lt;inf&amp;gt; main: UART initialized
[00:00:05.054,046] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x200187ec len 33
[00:00:05.055,511] &amp;lt;err&amp;gt; os: ***** BUS FAULT *****
[00:00:05.055,511] &amp;lt;err&amp;gt; os:   Imprecise data bus error
[00:00:05.055,541] &amp;lt;err&amp;gt; os: r0/a1:  0x0014043e  r1/a2:  0x200125bf  r2/a3:  0x00000006
[00:00:05.055,572] &amp;lt;err&amp;gt; os: r3/a4:  0x0014043f r12/ip:  0x00000003 r14/lr:  0x00004e27
[00:00:05.055,572] &amp;lt;err&amp;gt; os:  xpsr:  0xa1000000
[00:00:05.055,572] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0000bb74
[00:00:05.055,633] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 26: Unknown error on CPU 0
[00:00:05.055,664] &amp;lt;err&amp;gt; os: Current thread: 0x20012958 (MPSL Work)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/481303?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 13:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d91275b4-cec7-487f-b3c8-a828154dd777</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, the BUS error seems to come from the SoftDevice handler, and after some discussing with colleagues, we are back at the UART likely being the blocker here and it stops the SoftDevice controller from handling the MTU exchange and callbacks correctly. I reproduced it here as well, but have not had time to test this out yet on my end. Try moving uart_rx_enable() into a workqueue as is done in the peripheral_uart sample, with the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;k_work_init_delayable(&amp;amp;uart_work, uart_work_handler);

static void uart_work_handler(struct k_work *item)
{
    struct uart_data_t *buf;
 
    buf = k_malloc(sizeof(*buf));
    if (buf) {
        buf-&amp;gt;len = 0;
    } else {
        LOG_WRN(&amp;quot;Not able to allocate UART receive buffer&amp;quot;);
        k_work_reschedule(&amp;amp;uart_work, UART_WAIT_FOR_BUF_DELAY);
        return;
    }
 
    uart_rx_enable(uart, buf-&amp;gt;data, sizeof(buf-&amp;gt;data), UART_WAIT_FOR_RX);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&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: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/481208?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 07:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f75313d3-244c-4c7a-b73f-c76794b3a00d</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;And some more questions I forgot to answer &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f643.svg" title="Upside down"&gt;&amp;#x1f643;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt; Hmm, is there a reason you&amp;#39;re using this Zephyr advertising API on your end? I don&amp;#39;t see it being a great fit with the SoftDevice controller.&lt;/p&gt;
&lt;p&gt;I see it the other way around: We don&amp;#39;t need and don&amp;#39;t want to use extended advertising due to incompatibility with certain centrals. There is no reason for us to enable or use that API and it might save flash size(which not an important reason though).&lt;/p&gt;
&lt;p&gt;&amp;gt; It could be MTU related it seems, so could it be that the MTU sizes are invalid when disabling the extended advertising config and trying to enable the UART service? &lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know, but isn&amp;#39;t that handled by zephyr internally? The only thing we can do is to set some limits using kconfigs and accept or reject a centrals change request using one of the connection callbacks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/481205?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 07:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b727245a-58b0-499a-b27f-01ae6304d9a2</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;Sry, that I missed your question about addr2line. There is no line information for that closed-source function, but it&amp;#39;s from nrfxlib/mpsl/lib/cortex-m4/soft-float/libmpsl.a and this is the relevant objdump:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;0000bb5c &amp;lt;sym_DQONLUECJTIEYFOFJXXAPJO4POIAJKJNKBGVN5A&amp;gt;:
    bb5c:       ea81 0300       eor.w   r3, r1, r0
    bb60:       079b            lsls    r3, r3, #30
    bb62:       e92d 41f0       stmdb   sp!, {r4, r5, r6, r7, r8, lr}
    bb66:       d15d            bne.n   bc24 &amp;lt;sym_DQONLUECJTIEYFOFJXXAPJO4POIAJKJNKBGVN5A+0xc8&amp;gt;
    bb68:       0787            lsls    r7, r0, #30
    bb6a:       d05f            beq.n   bc2c &amp;lt;sym_DQONLUECJTIEYFOFJXXAPJO4POIAJKJNKBGVN5A+0xd0&amp;gt;
    bb6c:       2a00            cmp     r2, #0
    bb6e:       d057            beq.n   bc20 &amp;lt;sym_DQONLUECJTIEYFOFJXXAPJO4POIAJKJNKBGVN5A+0xc4&amp;gt;
    bb70:       4603            mov     r3, r0
    bb72:       e001            b.n     bb78 &amp;lt;sym_DQONLUECJTIEYFOFJXXAPJO4POIAJKJNKBGVN5A+0x1c&amp;gt;
    bb74:       2a00            cmp     r2, #0
    bb76:       d053            beq.n   bc20 &amp;lt;sym_DQONLUECJTIEYFOFJXXAPJO4POIAJKJNKBGVN5A+0xc4&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/481125?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 14:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fa30231-c4a1-470e-99a4-3fc07b5fcd14</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hmm, is there a reason you&amp;#39;re using this Zephyr advertising API on your end? I don&amp;#39;t see it being a great fit with the SoftDevice controller. I&amp;#39;m sorry, but I have not had time to set this up on my end yet but will try to do so tomorrow. It could be MTU related it seems, so could it be that the MTU sizes are invalid when disabling the extended advertising config and trying to enable the UART service?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I still think using&amp;nbsp;&lt;span&gt;the command window in your build folder and the following command to get a file name and line number for that address could be helpful, so please give it a try in the meantime:&amp;nbsp;&lt;/span&gt;&lt;strong&gt;arm-none-eabi-addr2line -e _build/zephyr/zephyr.elf 0xbb74&lt;/strong&gt;&lt;span&gt;.&lt;/span&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: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/480865?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 11:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d2df7e-948b-40c6-afe0-e21b7c1b6376</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;I&amp;#39;ve updated the code on the linked repository(please read the commit messages)&lt;/p&gt;
&lt;p&gt;- I have copied peripheral_hr_coded. This by itself doesn&amp;#39;t crash&lt;/p&gt;
&lt;p&gt;- I have disabled the coded phy, changed the advertising name and removed the ext flag from the advertising options(but still using the ext API). Still doesn&amp;#39;t crash&lt;/p&gt;
&lt;p&gt;- I have initialized UART DMA. Still doesn&amp;#39;t crash&lt;/p&gt;
&lt;p&gt;- I have switched to zephyrs non ext advertising API. Still doesn&amp;#39;t crash&lt;/p&gt;
&lt;p&gt;- I have disabled CONFIG_BT_EXT_ADV. Now it crashes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tested a few more permutations and it looks like it&amp;#39;s mostly important that DMA UART is initialized and that CONFIG_BT_EXT_ADV is disabled. To me, this still looks like a softdevice_controller bug rather than a usage bug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/480598?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 07:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:761af535-515e-4335-b7b2-4db5eb84950e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m very sorry, for some reason I thought &lt;strong&gt;uart_rx_enable&lt;/strong&gt; was enabling the radio peripheral for some reason, but I see I got way ahead of myself. I&amp;#39;m very sorry about the confusion here.&lt;/p&gt;
&lt;p&gt;Taking another look at the sample you&amp;#39;re using I see you&amp;#39;re basing your sample on the peripheral_hr sample, which is a Zephyr project, not tested with the nRF SoftDevice controller, so that might be the issue here, although I agree it&amp;#39;s very strange it only propagates when uart_rx_enable and the SoftDevice controller is used.&lt;/p&gt;
&lt;p&gt;Please compare your project with the peripheral_hr_coded which is designed and tested for the nRF SoftDevice controller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bus faults are a bit tricky to debug, but you can try to check&amp;nbsp;&lt;code&gt;Faulting instruction address (r15/pc): 0x0000bb74&lt;/code&gt;&amp;nbsp;for what address this line is pointing to,&amp;nbsp;you can use the command window in your build folder and the following command to get a file name and line number for that address:&amp;nbsp;&lt;strong&gt;arm-none-eabi-addr2line -e _build/zephyr/zephyr.elf 0xbb74&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: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/480179?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 11:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f8df63-ad30-4c4b-b102-6f3b3720be21</guid><dc:creator>m1cha</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;1) Moving uart_rx_enable to after bt_enable didn&amp;#39;t fix the issue.&lt;/p&gt;
&lt;p&gt;2) Which sample do you mean? nrf/samples/bluetooth/peripheral_uart calls uart_rx_enable before bt_enable, too.&lt;/p&gt;
&lt;p&gt;3) Since we are heavily relying on zephyrs driver/device model, and initialization(and deinitialization) of Bluetooth and UART happen independently and based on external factors, changing the order is not an option for us.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on connect with NCS 2.6.0</title><link>https://devzone.nordicsemi.com/thread/480147?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 09:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9422726-d9e4-4779-ad28-8d6479eb162b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It&amp;#39;s clear that the peripheral is what is crashing here. Based on your description I think the &lt;strong&gt;uart_rx_enable()&lt;/strong&gt; is being enabled before you try to enable BLE with &lt;strong&gt;bt_enable().&amp;nbsp;&lt;/strong&gt;Please see how uart_rx_enable() is used in our sample projects (as part of uart_init()).&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>