<?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>Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114455/need-help-getting-an-nrf52810-to-broadcast-a-ble-signal</link><description>I&amp;#39;m working on a personal project and have designed and printed a small prototype board containing an nrf52810, external antenna, couple of crystals, and a ws2812b onboard, along with a handful of helpful breakout headers for programming and debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Sep 2024 21:41:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114455/need-help-getting-an-nrf52810-to-broadcast-a-ble-signal" /><item><title>RE: Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/thread/501808?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 21:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f24e9bf-3947-4c64-a582-6c33dd91895b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The debug configs seems to help little here. If you observe on the fault log&lt;/p&gt;
&lt;p&gt;&lt;span&gt;00:00:00.252,166] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x000040a0&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:00:00.252,227] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2:&lt;span style="color:rgba(255, 153, 0, 1);"&gt; Stack overflow&lt;/span&gt; on CPU 0&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:00:00.252,288] &amp;lt;err&amp;gt; os: Current thread: 0x20000a10 (&lt;span style="background-color:rgba(255, 153, 0, 1);"&gt;logging&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So the logger module&amp;#39;s thread is causing a stack overflow. This is very similar to the issue mentioned in this thread -&amp;gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92283/logging-thread-stack-overflow"&gt;Logging thread stack overflow&lt;/a&gt;&amp;nbsp;. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try the things that seems to have worked for thiago as mentioned in his reply -&amp;gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92283/logging-thread-stack-overflow/389289"&gt;RE: Logging thread stack overflow&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/thread/501803?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 20:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4c7698f-54da-4884-9e7c-cf7f020c4e3e</guid><dc:creator>danielhunt</dc:creator><description>&lt;p&gt;Are you or your colleague able to confirm if there&amp;#39;s anything fatally wrong with the circuit? As far as I understand it should at least _work_, even if it&amp;#39;s not ideal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/thread/501422?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 17:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0debf8b9-dab5-48e7-bd82-cb3c60ec559a</guid><dc:creator>danielhunt</dc:creator><description>&lt;p&gt;Thanks Susheel - this isn&amp;#39;t straightforward I&amp;#39;m afraid because of the nrf52810&amp;#39;s low amount of memory (just 24KB)&lt;/p&gt;
&lt;p&gt;Whenever I enable&amp;nbsp;&lt;code&gt;CONFIG_ASSERT&lt;/code&gt; I end up with the same infinite&amp;nbsp;loop of mutex_unlock messages I mentioned above.&lt;/p&gt;
&lt;p&gt;Without that, and with this set of flags enabled:&lt;/p&gt;
&lt;pre&gt;# Debugging configuration&lt;br /&gt;CONFIG_THREAD_NAME=y&lt;br /&gt;CONFIG_THREAD_ANALYZER=y&lt;br /&gt;CONFIG_THREAD_ANALYZER_AUTO=y&lt;br /&gt;CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y&lt;br /&gt;CONFIG_THREAD_ANALYZER_USE_PRINTK=y&lt;br /&gt;&lt;br /&gt;# Add asserts&lt;br /&gt;CONFIG_ASSERT=y&lt;br /&gt;CONFIG_ASSERT_VERBOSE=y&lt;br /&gt;CONFIG_ASSERT_NO_COND_INFO=n&lt;br /&gt;CONFIG_ASSERT_NO_MSG_INFO=n&lt;br /&gt;# CONFIG_RESET_ON_FATAL_ERROR=n # not available on my chip&lt;br /&gt;CONFIG_THREAD_NAME=y&lt;br /&gt;CONFIG_STACK_SENTINEL=y&lt;/pre&gt;
&lt;p&gt;... I have the following output:&lt;/p&gt;
&lt;pre&gt;[00:00:00.250,39[00:00:00.250,946] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;[00:00:00.250,976] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20004f80 0x150b000a&lt;br /&gt;--- 11 messages dropped ---&lt;br /&gt;[00:00:00.251,037] &amp;lt;dbg&amp;gt; os: setup_thread_stack: stack 0x20003800 for thread 0x20000f18: obj_size=1368 buf_start=0x20003840 buf_size 1304 s&lt;br /&gt;tack_ptr=0x20003d58&lt;br /&gt;[00:00:00.251,342] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_driver_register: Registered Controller&lt;br /&gt;[00:00:00.251,373] &amp;lt;dbg&amp;gt; os: setup_thread_stack: stack 0x20003080 for thread 0x20000948: obj_size=1088 buf_start=0x200030c0 buf_size 1024 stack_ptr=0x200034c0&lt;br /&gt;[00:00:00.251,617] &amp;lt;dbg&amp;gt; os: k_sched_unlock: scheduler unlocked (0x20001668:0)&lt;br /&gt;[00:00:00.251,617] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.251,647] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;[00:00:00.251,678] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20004f80 0x150b000a&lt;br /&gt;[00:00:00.251,678] &amp;lt;inf&amp;gt; main: App boot&lt;br /&gt;[00:00:00.251,708] &amp;lt;dbg&amp;gt; os: z_tick_sleep: thread 0x20001668 for 500 ticks&lt;br /&gt;[00:00:00.251,770] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.251,800] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;[00:00:00.251,800] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20003800 0x150b000a&lt;br /&gt;[00:00:00.251,861] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.251,861] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;[00:00:00.251,892] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x200034c0 0x150b000a&lt;br /&gt;[00:00:00.250,396] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.252,044] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****&lt;br /&gt;[00:00:00.252,044] &amp;lt;err&amp;gt; os: Stacking error (context area might be not valid)&lt;br /&gt;[00:00:00.252,075] &amp;lt;err&amp;gt; os: Data Access Violation&lt;br /&gt;[00:00:00.252,075] &amp;lt;err&amp;gt; os: MMFAR Address: 0x200034f8&lt;br /&gt;[00:00:00.252,105] &amp;lt;err&amp;gt; os: r0/a1: 0x00000000 r1/a2: 0xe000ed00 r2/a3: 0x20001788&lt;br /&gt;[00:00:00.252,136] &amp;lt;err&amp;gt; os: r3/a4: 0x00000000 r12/ip: 0x200016d8 r14/lr: 0x0001f16b&lt;br /&gt;[00:00:00.252,136] &amp;lt;err&amp;gt; os: xpsr: 0x61000000&lt;br /&gt;[00:00:00.252,166] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x000040a0&lt;br /&gt;[00:00:00.252,227] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0&lt;br /&gt;[00:00:00.252,288] &amp;lt;err&amp;gt; os: Current thread: 0x20000a10 (logging)&lt;br /&gt;[00:00:03.561,248] &amp;lt;err&amp;gt; os: Halting system&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And this is the output from GDB digging after the halt:&lt;/p&gt;
&lt;pre&gt;(gdb) target remote localhost:3333&lt;br /&gt;Remote debugging using localhost:3333&lt;br /&gt;arch_system_halt (reason=reason@entry=2) at /opt/nordic/ncs/v2.6.1/zephyr/kernel/fatal.c:32&lt;br /&gt;32 for (;;) {&lt;br /&gt;(gdb)&lt;br /&gt;(gdb) bt full&lt;br /&gt;#0 arch_system_halt (reason=reason@entry=2) at /opt/nordic/ncs/v2.6.1/zephyr/kernel/fatal.c:32&lt;br /&gt;No locals.&lt;br /&gt;#1 0x00019b8c in k_sys_fatal_error_handler (reason=reason@entry=2, esf=esf@entry=0x20004e00 &amp;lt;z_interrupt_stacks+2048&amp;gt;)&lt;br /&gt; at /opt/nordic/ncs/v2.6.1/zephyr/kernel/fatal.c:46&lt;br /&gt;No locals.&lt;br /&gt;#2 0x00019c40 in z_fatal_error (reason=reason@entry=2, esf=esf@entry=0x20004e00 &amp;lt;z_interrupt_stacks+2048&amp;gt;)&lt;br /&gt; at /opt/nordic/ncs/v2.6.1/zephyr/kernel/fatal.c:122&lt;br /&gt; key = &amp;lt;optimized out&amp;gt;&lt;br /&gt; thread = 0x20000a10 &amp;lt;logging_thread&amp;gt;&lt;br /&gt;#3 0x00002aa8 in z_arm_fatal_error (reason=2, esf=0x20004e00 &amp;lt;z_interrupt_stacks+2048&amp;gt;,&lt;br /&gt; esf@entry=0x20004e10 &amp;lt;z_interrupt_stacks+2064&amp;gt;) at /opt/nordic/ncs/v2.6.1/zephyr/arch/arm/core/fatal.c:73&lt;br /&gt;No locals.&lt;br /&gt;#4 0x00002eb0 in z_arm_fault (msp=&amp;lt;optimized out&amp;gt;, psp=&amp;lt;optimized out&amp;gt;, exc_return=&amp;lt;optimized out&amp;gt;, callee_regs=&amp;lt;optimized out&amp;gt;)&lt;br /&gt; at /opt/nordic/ncs/v2.6.1/zephyr/arch/arm/core/cortex_m/fault.c:1157&lt;br /&gt; reason = &amp;lt;optimized out&amp;gt;&lt;br /&gt; fault = &amp;lt;optimized out&amp;gt;&lt;br /&gt; recoverable = false&lt;br /&gt; nested_exc = false&lt;br /&gt; esf = &amp;lt;optimized out&amp;gt;&lt;br /&gt; esf_copy = {basic = {{a1 = 0, r0 = 0}, {a2 = 3758157056, r1 = 3758157056}, {a3 = 536876936, r2 = 536876936}, {a4 = 0,&lt;br /&gt; r3 = 0}, {ip = 536876760, r12 = 536876760}, {lr = 127339, r14 = 127339}, {pc = 16544, r15 = 16544},&lt;br /&gt; xpsr = 1627389952}}&lt;br /&gt;#5 0x00002f80 in z_arm_usage_fault () at /opt/nordic/ncs/v2.6.1/zephyr/arch/arm/core/cortex_m/fault_s.S:102&lt;br /&gt;No locals.&lt;br /&gt;#6 &amp;lt;signal handler called&amp;gt;&lt;br /&gt;No symbol table info available.&lt;br /&gt;#7 0x2000354c in logging_stack ()&lt;br /&gt;No symbol table info available.&lt;br /&gt;warning: (Internal error: pc 0x2 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x2 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x0 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;#8 0x00000002 in cbprintf_package (packaged=&amp;lt;optimized out&amp;gt;, len=&amp;lt;optimized out&amp;gt;, flags=&amp;lt;optimized out&amp;gt;, warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x0 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;format=warning: (Internal error: pc 0x1a in read in CU, but not in symtab.)&lt;br /&gt;&lt;br /&gt;0x1a &amp;lt;cbprintf_package+26&amp;gt; &amp;quot;&amp;quot;)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt; ap = warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;{__ap = 0x2000074c &amp;lt;log_buffer&amp;gt;}&lt;br /&gt; ret = &amp;lt;optimized out&amp;gt;&lt;br /&gt;warning: (Internal error: pc 0x1 in read in CU, but not in symtab.)&lt;br /&gt;Backtrace stopped: previous frame identical to this frame (corrupt stack?)&lt;br /&gt;(gdb) x/32x 0x200034f8&lt;br /&gt;0x200034f8 &amp;lt;logging_stack+56&amp;gt;: 0x000040a0 0x61000000 0x00000002 0x2000074c&lt;br /&gt;0x20003508 &amp;lt;logging_stack+72&amp;gt;: 0x00000008 0x0001c515 0x2000074c 0x00000002&lt;br /&gt;0x20003518 &amp;lt;logging_stack+88&amp;gt;: 0x2000354c 0x2000074c 0x0000001a 0x0000000c&lt;br /&gt;0x20003528 &amp;lt;logging_stack+104&amp;gt;: 0x00000000 0x00000020 0x00000000 0x00000000&lt;br /&gt;0x20003538 &amp;lt;logging_stack+120&amp;gt;: 0x00000020 0x0001c717 0x00000000 0xaaaaaaaa&lt;br /&gt;0x20003548 &amp;lt;logging_stack+136&amp;gt;: 0xaaaaaaaa 0x00000000 0x00000002 0x00000000&lt;br /&gt;0x20003558 &amp;lt;logging_stack+152&amp;gt;: 0xaaaaaaaa 0x00000000 0x00003900 0x00000000&lt;br /&gt;0x20003568 &amp;lt;logging_stack+168&amp;gt;: 0x20003590 0x0000001c 0x200035f8 0x0000000a&lt;br /&gt;(gdb) x/i 0x000040a0&lt;br /&gt; 0x40a0 &amp;lt;hci_num_completed_packets+372&amp;gt;: b.n 0x408a &amp;lt;hci_num_completed_packets+350&amp;gt;&lt;br /&gt;(gdb) quit&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/thread/501264?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 04:46:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce6db4bb-366b-4d23-b165-92d6953da2f9</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="danielhunt"][00:00:00.251,220] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x7e0ceb76&lt;br /&gt;[00:00:00.251,281] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0&lt;br /&gt;[00:00:00.251,312] &amp;lt;err&amp;gt; os: Current thread: 0x20000948 (unknown)&lt;br /&gt;[00:00:03.506,042] &amp;lt;err&amp;gt; os: Halting system[/quote]
&lt;p&gt;I think it is key that we find out this context that caused the fault.&lt;/p&gt;
&lt;p&gt;As I mentioned in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/114252/how-to-generate-full-thread-stack-trace-to-log-on-crash/500174"&gt;this&lt;/a&gt; thread, enable those configs and prestine build your app and get the logs again. This time we should get the Thread name that caused this error atleast. If you increase the thread stack size and test again, then maybe that will solve this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/thread/501245?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 22:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d50b787-9ffd-4e49-841e-6879eab6abf3</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Using &amp;quot;&lt;em&gt;return -1;&lt;/em&gt;&amp;quot; in main() on error is generally going to fail, unlike (say) code on a Mac, which will defeat attempts to get logs; so perhaps replace those lines with&amp;nbsp;a recognisable LED colour or sequence for each error in an infinite sleep loop. Doesn&amp;#39;t help much perhaps, given that at the reduced log level it seems advertising does actually start.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (err) {
    LOG_ERR(&amp;quot;Bluetooth init failed (err %d)&amp;quot;, err);
    while(1) {
        k_sleep(K_MSEC(500));
        flash_leds(0, 1, 500); // &amp;lt;&amp;lt;== choose a recognisable colour or sequence for each error
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/thread/501237?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 21:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0794da2-8fc0-40d0-8b72-ee595a8cf055</guid><dc:creator>danielhunt</dc:creator><description>&lt;p&gt;Thanks for the response - I presume your colleague confirmed that while the routing may not be correct, it would still function (just not very well), yes? I hope so :)&lt;/p&gt;
&lt;p&gt;As for your ask - if I enable&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;CONFIG_LOG_DEFAULT_LEVEL=4&lt;/code&gt;&amp;nbsp;I can reliably force a&amp;nbsp;halt when using (or trying to use) BLE. Here&amp;#39;s the output using the main.c I pasted in the original post:&lt;/p&gt;
&lt;pre&gt;[00:00:00.250,21[00:00:00.250,488] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.250,488] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;--- 10 messages dropped ---&lt;br /&gt;[00:00:00.250,518] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20004a00 0x150b000a&lt;br /&gt;[00:00:00.250,579] &amp;lt;dbg&amp;gt; os: setup_thread_stack: stack 0x200030c0 for thread 0x20000e08: obj_size=1368 buf_start=0x20003100 buf_size 1304 stack_ptr=0x20003618&lt;br /&gt;[00:00:00.250,640] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_driver_register: Registered Controller&lt;br /&gt;[00:00:00.250,671] &amp;lt;dbg&amp;gt; os: k_sched_unlock: scheduler unlocked (0x200013f0:0)&lt;br /&gt;[00:00:00.250,671] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.250,701] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;[00:00:00.250,732] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20004a00 0x150b000a&lt;br /&gt;[00:00:00.250,732] &amp;lt;inf&amp;gt; main: App boot&lt;br /&gt;[00:00:00.250,762] &amp;lt;dbg&amp;gt; os: z_tick_sleep: thread 0x200013f0 for 500 ticks&lt;br /&gt;[00:00:00.250,823] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.250,823] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;[00:00:00.250,854] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x200030c0 0x150b000a&lt;br /&gt;[00:00:00.250,885] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.250,915] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;[00:00:00.250,946] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20002d80 0x150b000a&lt;br /&gt;[00:00:00.251,068] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****&lt;br /&gt;[00:00:00.250,213] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;[00:00:00.251,098] &amp;lt;err&amp;gt; os: Stacking error (context area might be not valid)&lt;br /&gt;[00:00:00.251,098] &amp;lt;err&amp;gt; os: Data Access Violation&lt;br /&gt;[00:00:00.251,129] &amp;lt;err&amp;gt; os: MMFAR Address: 0x20002db8&lt;br /&gt;[00:00:00.251,159] &amp;lt;err&amp;gt; os: r0/a1: 0xfdbe3fbf r1/a2: 0x5304038a r2/a3: 0xf95fff77&lt;br /&gt;[00:00:00.251,159] &amp;lt;err&amp;gt; os: r3/a4: 0x66115c20 r12/ip: 0xe9e337b7 r14/lr: 0x7a1daa09&lt;br /&gt;[00:00:00.251,190] &amp;lt;err&amp;gt; os: xpsr: 0xcd181000&lt;br /&gt;[00:00:00.251,220] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x7e0ceb76&lt;br /&gt;[00:00:00.251,281] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0&lt;br /&gt;[00:00:00.251,312] &amp;lt;err&amp;gt; os: Current thread: 0x20000948 (unknown)&lt;br /&gt;[00:00:03.506,042] &amp;lt;err&amp;gt; os: Halting system&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I leave log level at 4, but disable&amp;nbsp;CONFIG_ARM_MPU and CONFIG_HW_STACK_PROTECTION, I get this repeating forever:&lt;/p&gt;
&lt;pre&gt;&amp;lt;dbg&amp;gt; os: setup_thread_stack: stack 0x20004818 for thread 0x200013c0: obj_size=1024 buf_start=0x20004818 buf_size 1024 stack_ptr=0x20004c18&lt;br /&gt;[00:00:00.251,098] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x200007e4: 0 (prio: -1000)&lt;br /&gt;--- 40 messages dropped ---&lt;br /&gt;[00:00:00.252,441] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x20000948 took mutex 0x200007e4, count: 1, orig prio: 14&lt;br /&gt;--- 32 messages dropped ---&lt;br /&gt;[00:00:00.253,875] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x200007e4: 0 (prio: -1000)&lt;br /&gt;--- 28 messages dropped ---&lt;br /&gt;[00:00:00.255,096] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x20000948 took mutex 0x200007e4, count: 1, orig prio: 14&lt;br /&gt;--- 33 messages dropped ---&lt;br /&gt;[00:00:00.256,530] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x200007e4: 0 (prio: -1000)&lt;br /&gt;--- 29 messages dropped ---&lt;br /&gt;[00:00:00.257,751] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x200007e4 lock_count: 1���-7 messages dropped ---&lt;br /&gt;[00:00:00.331,298] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x20000948 took mutex 0x200007e4, count: 1, orig prio: 14&lt;br /&gt;--- 32 messages dropped ---&lt;br /&gt;[00:00:00.332,733] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x200007e4: 0 (prio: -1000)&lt;br /&gt;--- 28 messages dropped ---&lt;br /&gt;[00:00:00.333,923] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x20000948 took mutex 0x200007e4, count: 1, orig prio: 14&lt;br /&gt;--- 33 messages dropped ---&lt;br /&gt;[00:00:00.335,357] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x200007e4: 0 (prio: -1000)&lt;br /&gt;--- 29 messages dropped ---&lt;br /&gt;[00:00:00.336,608] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x200007e4 lock_count: 1&lt;br /&gt;--- 25 messages dropped ---&lt;br /&gt;[00:00:00.337,738] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x200007e4 lock_count: 1&lt;br /&gt;--- 27 messages dropped ---&lt;br /&gt;[00:00:00.338,836] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x20000948 took mutex 0x200007e4, count: 1, orig prio: 14���-&lt;br /&gt;--- 31 messages dropped ---&lt;br /&gt;[00:00:00.433,746] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x200007e4: 0 (prio: -1000)&lt;br /&gt;--- 28 messages dropped ---&lt;br /&gt;[00:00:00.434,936] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x20000948 took mutex 0x200007e4, count: 1, orig prio: 14&lt;br /&gt;--- 34 messages dropped ---&lt;br /&gt;[00:00:00.436,462] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x20000948 took mutex 0x200007e4, count: 1, orig prio: 14&lt;br /&gt;--- 31 messages dropped ---&lt;br /&gt;[00:00:00.437,774] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x200007e4: 0 (prio: -1000)&lt;br /&gt;..... repeats forever&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I then drop log level to 3:&lt;/p&gt;
&lt;pre&gt;[00:00:00.250,274] &amp;lt;inf&amp;gt; main: App boot&lt;br /&gt;[00:00:00.987,670] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&lt;br /&gt;[00:00:00.987,731] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF52x (0x0002)&lt;br /&gt;[00:00:00.987,762] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 3.5 Build 99&lt;br /&gt;[00:00:00.988,433] &amp;lt;inf&amp;gt; bt_hci_core: Identity: FE:50:E7:18:3F:1A (random)&lt;br /&gt;[00:00:00.988,464] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.4 (0x0d) revision 0x0000, manufacturer 0x0059&lt;br /&gt;[00:00:00.988,494] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.4 (0x0d) subver 0xffff&lt;br /&gt;[00:00:00.988,494] &amp;lt;inf&amp;gt; main: Bluetooth initialized&lt;br /&gt;[00:00:01.724,243] &amp;lt;inf&amp;gt; main: Advertising successfully started&lt;br /&gt;... no output after this point&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I leave things at level 3 it really looks like it should be working (and the blue LED is flashing as expected too, thanks to the while loop) ... but I can see no broadcasted signal at all. It&amp;#39;s baffling me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help getting an nrf52810 to broadcast a ble signal</title><link>https://devzone.nordicsemi.com/thread/501147?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 12:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4685ad9c-9db0-4e48-9d85-9272e6402688</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
[quote user=""]Sometimes the device is stack-overflowing, sometimes it&amp;#39;s just erroring out, and sometimes it just ... doesn&amp;#39;t say why it&amp;#39;s not broadcasting[/quote]
&lt;p&gt;I am not a hardware engineer, so I would leave out the review part of the hardware for now (Even though a colleague of mine did a quick review and saw that your antenna is not routed correctly as you already mentioned in the original post)&lt;/p&gt;
&lt;p&gt;Stack overflows should not get influence from the hardware layout and schematics issues. I would like to get more details on these errors. What stack overflow are you getting? How often? Can we get some log trace? What is the context of the stack overflow? Is it causing hardfault exception? What does just erroring out mean? Please give more details for us to be able move into proper debugging direction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>