<?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>Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&amp;gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96493/debuggen-of-ble-applications-based-on-connect-sdk-2-2-0-not-possible---faulting-instruction-address-r15-pc</link><description>I have the problem that I am currently unable to debug any of my Bluetooth applications.
I&amp;#39;m sure that I was able to do this without any problems during the original development with SDK v1.9.1.

The firmware works fine without a debugger.
However, when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2024 08:29:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96493/debuggen-of-ble-applications-based-on-connect-sdk-2-2-0-not-possible---faulting-instruction-address-r15-pc" /><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/497105?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 08:29:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09c88384-97b9-4b71-bef9-c8fab357b5d7</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;@taspon98 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Hi, we don&amp;#39;t use CONFIG_BT_LL_SW_SPLIT anymore.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;This is also because in a later certification only &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52832/COMP/nrf52832/ble_qdid_qual_matrix.html"&gt;QDIDs will be available for the Nordic stack&lt;/a&gt;, but not for the Zephyr SW stack (CONFIG_BT_LL_SW_SPLIT).&lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt; That&amp;#39;s why I didn&amp;#39;t pursue the IRQ 24 issue any further.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/494925?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2024 09:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1591eb94-5dfa-4995-9f67-57f61801d08d</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;Hi, do you happen to know the other config that might be conflicting with&amp;nbsp;&lt;span&gt;CONFIG_BT_LL_SW_SPLIT? I am also running into the same issue with multi handler registration for irq 24 when migrating to 2.7.0&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/493457?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 14:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85fd2585-d66e-47d6-9842-f3fea45da803</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I have now found a useful guide for monitor mode.&lt;br /&gt;It allows me to debug my BLE project with SDK 2.6.1.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/topic/exercise-1-3/"&gt;Here &lt;/a&gt;I found a guide that worked for me:&lt;br /&gt;&lt;br /&gt;Section &amp;quot;7.1 Add the following Kconfig flags to prj.conf&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Add:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class="language-c-like" lang="C-like"&gt;CONFIG_CORTEX_M_DEBUG_MONITOR_HOOK=y&lt;br /&gt;&lt;/code&gt;&lt;code class="language-c-like" lang="C-like"&gt;CONFIG_SEGGER_DEBUGMON=y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;and section &amp;quot;7.4 Run the debug action&amp;quot; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Command in the debug console of nRF Connect for VS Code:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="language-c-like" lang="C-like"&gt;-exec monitor exec SetMonModeDebug=1&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/493397?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 11:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae2127ef-33ca-4375-aab7-aeb7e8224b82</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Note on SDK 2.6.1: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;No patch works here anymore!&lt;br /&gt;I get the following error when compiling the project:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;gen_isr_tables.py: error: multiple registrations at table_index 24 for irq 24 (0x18)&lt;/code&gt;&lt;br /&gt;&lt;code&gt; Existing handler 0x1a001, new handler 0x28e2f&lt;/code&gt;&lt;br /&gt;&lt;code&gt; Has IRQ_CONNECT or IRQ_DIRECT_CONNECT accidentally been invoked on the same irq multiple times?&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The reason is the use of CONFIG_BT_LL_SW_SPLIT!&lt;br /&gt;&lt;br /&gt;As soon as I remove CONFIG_BT_LL_SW_SPLIT and use the Nordic stack, I can compile successfully again.&lt;br /&gt;&lt;br /&gt;Unfortunately, debugging then no longer works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/475325?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 08:48:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5752c6a-9b62-40fd-97d5-6381647b518a</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;A note about SDK 2.5.2:&lt;br /&gt;The patch I mentioned no longer works here!&lt;br /&gt;The call to LL_ASSERT_MSG was removed in GIT on 2023-02-13 and is now not included in SDK 2.5.2 (possibly also in earlier SDK versions).&lt;br /&gt;&lt;br /&gt;Interestingly, on 2023-06-28 the define LL_ASSERT_OVERHEAD was added in zephyr\subsys\bluetooth\controller\hal\debug.h. Here you can prevent LL_ASSERT_MSG from being triggered via &amp;quot;!CONFIG_BT_CTLR_ASSERT_OVERHEAD_START&amp;quot;.&lt;br /&gt;&lt;br /&gt;See also &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_CTLR_ASSERT_OVERHEAD_START"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_CTLR_ASSERT_OVERHEAD_START&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The background seems a bit different, but it could also be a solution to my debug problem.&lt;br /&gt;I still have to check whether this is the &amp;quot;built-in&amp;quot; solution for my problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/445951?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 23:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9a75036-1d3c-4559-9c9e-8149dd68d73e</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Marko,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad that you&amp;#39;re able to debug your BLE application sufficiently with this &amp;quot;one extra step&amp;quot; into the connection!&lt;/p&gt;
&lt;p&gt;If you want to get an option included for this, I think the best way to proceed is to raise an issue or make a pull request on GitHub, and explain your reasoning. However,&amp;nbsp;I don&amp;#39;t think the option you suggest is likely to be added.&lt;/p&gt;
&lt;p&gt;I think your case is a rare one, and that most people will be expecting to debug further than this. But the assert was added for a reason - halting a BLE enabled application won&amp;#39;t work without the connection breaking down.&lt;/p&gt;
&lt;p&gt;Besides this, we primarily develop with the SoftDevice Controller in mind, and the assert is firmly in place there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tried this out myself yet, but please check out this documentation on the &amp;quot;monitor mode&amp;quot; debugging that I mentioned earlier:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/services/debugging/debugmon.html#cortex-m-debug-monitor"&gt;https://docs.zephyrproject.org/latest/services/debugging/debugmon.html#cortex-m-debug-monitor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you need to debug further than you&amp;#39;re currently doing, look into this. And if it ends up working for you, I recommend you to move over to the SoftDevice Controller.&lt;/p&gt;
&lt;p&gt;In the future I hope we can offer monitor mode debugging in some convenient way.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/445054?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 06:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e9551e4-9ef9-4764-9d5c-d7f91c48e64a</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;Hello Raoul,&lt;br /&gt;I&amp;#39;ll get back on this topic.&lt;/p&gt;
&lt;p&gt;In the last NCS versions 2.4.0 to 2.4.2 I change the following code in the lll.c file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#if !IS_ENABLED(CONFIG_DEBUG)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; LL_ASSERT_MSG(false, &amp;quot;%s: Actual EVENT_OVERHEAD_START_US = %u&amp;quot;, __func__,&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HAL_TICKER_TICKS_TO_US(diff));&lt;/code&gt;&lt;br /&gt;&lt;code&gt;#endif // CONFIG_DEBUG&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This has helped me well so far, but it is consuming to do this with every new NCS version. Especially not just on my computer but also with work colleagues.&lt;/p&gt;
&lt;p&gt;Maybe could create an own config define to disable the strict timing requirements during development?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/418150?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 14:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58bab5a8-eeca-4449-9af2-62b084c54911</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Marko,&lt;/p&gt;
&lt;p&gt;I just wanted to say that I&amp;#39;ve shared your feedback with our NCS team. I know that BLE can be tightly integrated with business logic and so being able to set breakpoints is a huge benefit.&lt;/p&gt;
&lt;p&gt;The strict timing requirements for BLE operation means that ordinary halting can never be expected to work. But I assume you are asking for something like the Monitor Mode debugging I mentioned earlier. I&amp;#39;ve asked the team about support for this, and if I hear anything useful I&amp;#39;ll share it with you.&lt;/p&gt;
&lt;p&gt;Meanwhile, for your very specific use case (continuing to do what you were able to do in v2.1.3 and v1.9.1), I want to reiterate that the only way this is possible at the moment is to use the Zephyr BLE controller and then commenting out the newly added asserts that I linked to in a previous reply.&lt;/p&gt;
&lt;p&gt;However, please note that the Nordic SoftDevice controller is the only BLE stack that we officially support, and the only stack that gets &lt;a href="https://support.bluetooth.com/hc/en-us/articles/360049491871-Qualified-Design-IDs-QDIDs-and-Declaration-IDs-DIDs-"&gt;QDID&lt;/a&gt;&amp;#39;s which helps with final certification. So it might be better to find a way around the issue for the moment, until hopefully Monitor Mode debugging support arrives.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/415879?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 07:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2356bdb5-7086-4782-ab12-1e1a419b1477</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;br /&gt;does this mean that with newer SDK&amp;#39;s it will never be possible to debug an application using BLE?&lt;br /&gt;&lt;br /&gt;This would mean the end of our projects related to Zephyr and Nordic MCU&amp;#39;s!&lt;br /&gt;It is impossible to develop complex BLE projects without a debugger or to localize reported errors.&lt;br /&gt;&lt;br /&gt;You can&amp;#39;t always remove BLE from the projects to be able to debug. This would be a high risk when creating a release candidate, as you might not re-enable what is commented out correctly.&lt;br /&gt;And I see another problem when you need the BLE communication to start your own processes that you want to debug.&lt;br /&gt;This is exactly what I need right now and it works with NCS 2.1.3 as long as I don&amp;#39;t set breakpoints in the BLE communication but in my own threads.&lt;br /&gt;With NCS 2.1.3, even breakpoints when receiving BLE packets work, but only once, since the connection then breaks down (this is acceptable). But that&amp;#39;s enough to be able to debug your own processing at least once.&lt;br /&gt;&lt;br /&gt;It is also interesting that the breakpoint in the sample project samples/bluetooth/peripheral already has problems, only when advertising is already activated (without a connection).&lt;br /&gt;&lt;br /&gt;Here the developers should create a way to also be able to debug with BLE. Either via CONFIG_DEBUG=y or a new explicit configuration parameter.&lt;br /&gt;&lt;br /&gt;It would be nice if the developers could find a way.&lt;br /&gt;Thanks :-)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Marko&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/415563?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 18:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aa37422-5df7-418c-aca9-c6d816917013</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I realised that the MPSL assert was only related to the case where you enabled the Nordic SoftDevice controller, but that wasn&amp;#39;t your original issue. Sorry for the confusion.&lt;/p&gt;
&lt;p&gt;Your original issue was related to the Zephyr BLE controller - you were able to set a breakpoint at the start of your BLE enabled app before, but now no longer. Regarding that, I&amp;#39;ve heard back from a developer:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Zephyr Controller has recently added strict assertion on delayed events. If he strictly for debugging, he can comment out the said assertion:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/ebf723626704aaffa95a2a22fb4415a4ae59bf00"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/ebf723626704aaffa95a2a22fb4415a4ae59bf00&lt;/a&gt; &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The Nordic SD Controller has never allowed breakpoints while it is enabled. Now the Zephyr controller doesn&amp;#39;t either. So please note that this newly added assert should be seen more as a bugfix than anything else; timing is critical in BLE.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/413393?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2023 23:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad4c83ae-73ed-4ad4-89c2-a7560a23c949</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Mark, thanks a lot for sharing these details.&lt;/p&gt;
&lt;p&gt;I now realise that we have received multiple cases recently related to MPSL ASSERT: 112, 2195 being triggered by a breakpoint. I&amp;#39;ve informed the developers and shared some of your findings.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll let you know when they find out what to do about it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/413288?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 14:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f340dbcd-238a-4752-a170-04b0b35f42f4</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;br /&gt;We are already using CONFIG_BT_LL_SW_SPLIT in the current projects because we had problems with BLE + UART that could be solved with it.&lt;br /&gt;&lt;br /&gt;For this troubleshooting I would only refer to the example project samples/bluetooth/peripheral (with nRF52 DK NRF52832).&lt;br /&gt;&lt;br /&gt;I added a breakpoint to the line&lt;br /&gt;&lt;br /&gt;error = bt_enable(NULL);&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;base_notify();&lt;br /&gt;&lt;br /&gt;I only use the first breakpoint (bt_enable) to determine a restart (only stops at main() the first time)&lt;br /&gt;I want to debug the second breakpoint (bas_notify).&lt;br /&gt;&lt;br /&gt;Result of the different (Pristine) builds:&lt;br /&gt;NCS 2.1.3 without CONFIG_BT_LL_SW_SPLIT: crash while debugging&lt;br /&gt;NCS 2.1.3 with CONFIG_BT_LL_SW_SPLIT=y: Debugging works fine&lt;br /&gt;&lt;br /&gt;NCS 2.2.0 without CONFIG_BT_LL_SW_SPLIT: crash while debugging&lt;br /&gt;NCS 2.2.0 with CONFIG_BT_LL_SW_SPLIT: crash while debugging&lt;br /&gt;&lt;br /&gt;I hope I can help with this information to fix the error.&lt;br /&gt;&lt;br /&gt;Best regards&lt;br /&gt;Mark&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/412117?ContentTypeID=1</link><pubDate>Sun, 26 Feb 2023 22:24:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49ed8b6e-3040-4fac-bf7d-8c240d302b77</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Marko,&lt;/p&gt;
&lt;p&gt;Could I ask you to try switching to the Zephyr BLE controller? This can be enabled through &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html"&gt;CONFIG_BT_LL_SW_SPLIT&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m curious if it works. Meanwhile, the original issue might be the result of a bug related to stack space, I&amp;#39;m not certain yet.&lt;/p&gt;
&lt;p&gt;If you are able to share your project with us, that would be helpful.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/410011?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 09:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62bca809-249f-4803-9dbc-7a8b8e4f1a16</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Marko, thanks for sharing details on this! So this sounds like there is a bug on our side. I&amp;#39;ll share your findings internally and get back to you when I know more.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/409569?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 12:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e18779ed-5d1e-4394-b0b1-399544b325b2</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;I tested my application code again with different SDK versions:&lt;br /&gt;&lt;br /&gt;2.0.2 Debug OK&lt;br /&gt;2.1.0 Debug OK&lt;br /&gt;2.1.2 Debug OK&lt;br /&gt;2.1.3 Debug OK&lt;br /&gt;2.2.0 Faulting instruction address (r15/pc): 0x00000fb6&lt;br /&gt;&lt;br /&gt;According to nRF Debug Memory Viewer, the symbol name of address 0x00000fb6 is &amp;quot;lll_preempt_calc&amp;quot;.&lt;br /&gt;&lt;br /&gt;In a test with the Bluetooth Peripheral example, however, it still crashes with 2.1.3:&lt;br /&gt;&lt;br /&gt;Faulting instruction address (r15/pc): 0x0001fb78&lt;br /&gt;&lt;br /&gt;According to nRF Debug Memory Viewer, the symbol name of address 0x0001fb78 is &amp;quot;m_assert_handler&amp;quot;.&lt;br /&gt;&lt;br /&gt;As another test, I have added the CONFIG_BT_LL_SW_SPLIT option, which I had to use in my project, to the example. The example can now also be debugged (however, only up to SDK 2.1.3).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/409361?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 13:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c6fa0e9-eb99-42cc-8964-0bb09fc23ceb</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;I ported one of my own projects back from NCS v2.2.0 to v.1.9.1 today.&lt;br /&gt;&lt;strong&gt;Now I can easily debug after bt_le_adv_start!!!&lt;/strong&gt;&lt;br /&gt;Pause and resume, display variables... no problem.&lt;br /&gt;&lt;br /&gt;The project has the same settings, only &amp;lt;zephyr/...&amp;quot; and &amp;lt;zephyr/kernel.h&amp;gt; have been ported back to the old syntax and %s have been removed from log output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/409273?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 07:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95dba79-ed16-46ae-b036-ef5e2fdc7f44</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m working with Sven and can add one more thing to the problem.&lt;br /&gt;&lt;br /&gt;The crash occurs as soon as advertisements are launched when there is no connection at all.&lt;br /&gt;&lt;br /&gt;I have earlier observed that a breakpoint in the processing of Bluetooth data (when connected) results in a disconnection at remote participant. However, I think that earlier (must have been NCS v1.9.x) I was able to debug at least one received packet to the end (without crashing).&lt;br /&gt;&lt;br /&gt;Turning off Bluetooth certainly helps when debugging application logic that has nothing to do with Bluetooth. However, our current development is receiving and sending data via Bluetooth.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve earlier had a crash (Instruction Address Error (r15/pc)) related to binding a UART after the advertising started. At that time I had found a hint on the web to use CONFIG_BT_LL_SW_SPLIT=y which fixed the crash (with &amp;quot;warning: Experimental symbol BT_LL_SW_SPLIT is enabled.&amp;quot;). We have already tested this setting here, unfortunately without success.&lt;br /&gt;&lt;br /&gt;Regarding monitor mode debugging, I haven&amp;#39;t been able to find anything for NCS/Zephyr so far.&lt;br /&gt;According to the Nordic recommendation: &amp;quot;SEGGER Embedded Studio Nordic Edition is no longer tested and recommended for new projects.&amp;quot; (Release Notes 2.0.0) we have used Visual Studio Code for all new projects and those still under development.&lt;br /&gt;&lt;br /&gt;The question now is whether that was a good decision and whether NCS is perhaps not yet suitable for productive use at all?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the support!&lt;/p&gt;
&lt;p&gt;Marko&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debuggen of BLE Applications based on Connect SDK 2.2.0 not possible -&gt; Faulting instruction address (r15/pc)</title><link>https://devzone.nordicsemi.com/thread/409266?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 06:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df4c36a7-0567-47a1-b550-66ecd3387214</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Sven,&lt;/p&gt;
&lt;p&gt;Are you setting a breakpoint somewhere? Unfortunately it is simply not possible to do halting debugging of BLE applications. The Bluetooth controller has strict timing requirements and will hardfault when these can&amp;#39;t be met. See this post for a more detailed explanation: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/13708/debugging-while-bt-is-working/52379"&gt;RE: Debugging while BT is working&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you need to debug your application, it&amp;#39;s best to disable BLE temporarily. If you really have to debug with BLE, there is another debugging mode called Monitor Mode Debugging: &lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/monitor-mode-debugging/"&gt;https://www.segger.com/products/debug-probes/j-link/technology/monitor-mode-debugging/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It kind of keeps the CPU running in a loop at the breakpoint, allowing other timing critical things to continue running in the background.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not familiar with Monitor Mode Debugging, and from what I can see, support for monitor mode debugging is still limited in NCS: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70769/problem-using-monitor-mode-debugging-with-the-nrf-connect-sdk"&gt;Problem using monitor mode debugging with the nrf connect sdk&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84514/debugging-with-monitor-mode-on-ncs"&gt;Debugging with Monitor Mode on NCS&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;So I hope that you are able to debug your application with BLE temporarily disabled.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>