<?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>NRF connect debugger stuck on arm reset.s</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125219/nrf-connect-debugger-stuck-on-arm-reset-s</link><description>Hello, 
 I am new to embedded programming and I&amp;#39;m trying to create a small application that uses BT advertisements. I&amp;#39;ve tested my code on an NRF52840 dongle, and a board with an NRF52810 chip. 
 In a few cases, when trying to debug my code on either</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Oct 2025 09:54:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125219/nrf-connect-debugger-stuck-on-arm-reset-s" /><item><title>RE: NRF connect debugger stuck on arm reset.s</title><link>https://devzone.nordicsemi.com/thread/552724?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2025 09:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68261fda-9d7b-4f96-9a85-8c106d4a9f69</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. Can you share more about the board you are running on (perhaps share the schematics)? Also, which SDK version are you using? And lastly, does your firmware run on a DK (if you have that available)?&lt;/p&gt;
&lt;p&gt;A few common pitfalls when running on custom HW is if that does not have the 32.768 kHz oscillator or DCDC inductors, and either of those are enabled. So I would start by disabling those by adding this to prj.conf or similar:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y

CONFIG_BOARD_ENABLE_DCDC=n&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF connect debugger stuck on arm reset.s</title><link>https://devzone.nordicsemi.com/thread/552558?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 21:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc51da17-49c9-4cc0-9259-0f6c7de3ac79</guid><dc:creator>DanZ</dc:creator><description>&lt;p&gt;Adding extra info:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Registers:&lt;br /&gt;&lt;br /&gt;-exec info registers&lt;br /&gt;r0 0x0 0&lt;br /&gt;r1 0x0 0&lt;br /&gt;r2 0x0 0&lt;br /&gt;r3 0x0 0&lt;br /&gt;r4 0x0 0&lt;br /&gt;r5 0x0 0&lt;br /&gt;r6 0x0 0&lt;br /&gt;r7 0x0 0&lt;br /&gt;r8 0x0 0&lt;br /&gt;r9 0x0 0&lt;br /&gt;r10 0x0 0&lt;br /&gt;r11 0x0 0&lt;br /&gt;r12 0x0 0&lt;br /&gt;sp 0x20003aa0 0x20003aa0 &amp;lt;z_main_stack+1024&amp;gt;&lt;br /&gt;lr 0xffffffff -1&lt;br /&gt;pc 0xe6ac 0xe6ac &amp;lt;z_arm_reset&amp;gt;&lt;br /&gt;xpsr 0x1000000 16777216&lt;br /&gt;fpscr 0x0 0&lt;br /&gt;msp 0x20003aa0 0x20003aa0 &amp;lt;z_main_stack+1024&amp;gt;&lt;br /&gt;psp 0x0 0x0 &amp;lt;internal_rand&amp;gt;&lt;br /&gt;primask 0x0 0&lt;br /&gt;basepri 0x0 0&lt;br /&gt;faultmask 0x0 0&lt;br /&gt;control 0x0 0&lt;br /&gt;apsr 0x0 0&lt;br /&gt;epsr 0x1000000 16777216&lt;br /&gt;ipsr 0x0 0&lt;br /&gt;iapsr 0x0 0&lt;br /&gt;eapsr 0x1000000 16777216&lt;br /&gt;iepsr 0x1000000 16777216&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Threads:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div id="list_id_48_34" class="monaco-list-row" data-index="34" data-last-element="false" data-parity="even"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents"&gt;
&lt;div class="expression"&gt;&lt;span class="monaco-highlighted-label"&gt;-exec info threads&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="list_id_48_35" class="monaco-list-row" data-index="35" data-last-element="true" data-parity="odd"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents"&gt;
&lt;div class="evaluation-result expression"&gt;&lt;span class="value"&gt;&lt;span&gt; Id Target Id Frame * 1 Thread 57005 (Unknown thread) z_arm_reset () at C:/ncs/v2.0.0/zephyr/arch/arm/core/aarch32/cortex_m\reset.S:68&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="evaluation-result expression"&gt;
&lt;div id="list_id_48_36" class="monaco-list-row" data-index="36" data-last-element="false" data-parity="even"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents"&gt;
&lt;div class="expression"&gt;&lt;span class="monaco-highlighted-label"&gt;-exec info fun main&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="list_id_48_37" class="monaco-list-row" data-index="37" data-last-element="true" data-parity="odd"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents"&gt;
&lt;div class="evaluation-result expression"&gt;&lt;span class="value"&gt;&lt;span&gt;All functions matching regular expression &amp;quot;main&amp;quot;: File ../src/main.c: 43: void main(void); File C:/ncs/v2.0.0/zephyr/arch/arm/core/aarch32/thread.c: 519: void arch_switch_to_main_thread(struct k_thread *, char *, k_thread_entry_t); File C:/ncs/v2.0.0/zephyr/kernel/init.c: 197: static void bg_thread_main(void *, void *, void *); 348: static void switch_to_main_thread(char *); File C:/ncs/v2.0.0/zephyr/kernel/timeout.c: 183: k_ticks_t z_timeout_remaining(const struct _timeout *); File C:/ncs/v2.0.0/zephyr/kernel/work.c: 580: static void work_queue_main(void *, void *, void *);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF connect debugger stuck on arm reset.s</title><link>https://devzone.nordicsemi.com/thread/552555?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 20:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:066f74d5-7e36-466c-ac03-6102a1a0fe72</guid><dc:creator>DanZ</dc:creator><description>&lt;p&gt;Hey,&lt;br /&gt;&lt;br /&gt;Thanks for the reply.&lt;br /&gt;The call stack is empty, just z_arm_reset().&lt;br /&gt;I am expecting it to break on the enterance to main, before BT is enabled.&lt;/p&gt;
&lt;p&gt;The code breaks in the same place, even when&amp;nbsp;compiling with:&amp;nbsp;&lt;span&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1761597330657v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF connect debugger stuck on arm reset.s</title><link>https://devzone.nordicsemi.com/thread/552482?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 13:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9244f0fa-aada-4ac5-b9ed-a8df0b93bc31</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It could be interesting to see the call stack, but could this be that the device restes due to an error as the default error handler triggers a reset? Can you test with&amp;nbsp;&lt;code&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/code&gt;? Also, as you mention stepping and Bluetooth, please note that the Bluetooth stack will most often trigger an assert if you step in the code or contine from a breakpoint when Bluetooth is enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF connect debugger stuck on arm reset.s</title><link>https://devzone.nordicsemi.com/thread/552400?ContentTypeID=1</link><pubDate>Sat, 25 Oct 2025 22:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14528562-fe64-48cd-aabd-552c16d40b9e</guid><dc:creator>DanZ</dc:creator><description>&lt;p&gt;I&amp;#39;ll add that&amp;nbsp;I&amp;#39;m debugging via a NRF52 DK using P20. I think the setup and the wiring itself is ok, since this does seem to work against some of the boards that I have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>