<?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>MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95941/mpsl-assert-during-init</link><description>I have built an evaluation example to write a single character on a device. 
 My example was based on the ble_central_hrs template of the nrf connect sdk 
 After I switched from using the bt_gatt_write_without_response_cb function to using the bt_gatt_write_function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Mar 2023 03:51:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95941/mpsl-assert-during-init" /><item><title>RE: MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/thread/413689?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 03:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b270e63-166a-4fa9-b5c5-cf6e78dad222</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I would suggest creating new support as you did in &lt;a href="https://devzone.nordicsemi.com/support-private/support/303901"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/thread/413112?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 18:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3aa0b71-d002-4a5d-b6d6-134bdac5a634</guid><dc:creator>Aeneas</dc:creator><description>&lt;p&gt;Maybe 112, 2195 is spreading.&lt;/p&gt;
&lt;p&gt;I am experiencing it now regularly usually directly&lt;/p&gt;
&lt;p&gt;after servicing my first breakpoint after boot, then continuing.&lt;/p&gt;
&lt;p&gt;The next mouse-click of pause after 1st continue, and execution is looping in fatal.c .&lt;/p&gt;
&lt;p&gt;(arch_system_halt).&lt;/p&gt;
&lt;p&gt;What is causing 112, 2195 ?&lt;/p&gt;
&lt;p&gt;(VS-Code/Segger Base/custom pcb nrf52840) // nrf52840 DK BLE Standalone// nrf52840 DK Sniffer//&lt;/p&gt;
&lt;p&gt;======================================&lt;/p&gt;
&lt;p&gt;(VS-Code/Help/About)&lt;/p&gt;
&lt;p&gt;Version: 1.76.0 (user setup)&lt;br /&gt;Commit: 92da9481c0904c6adfe372c12da3b7748d74bdcb&lt;br /&gt;Date: 2023-03-01T10:22:44.506Z&lt;br /&gt;Electron: 19.1.11&lt;br /&gt;Chromium: 102.0.5005.196&lt;br /&gt;Node.js: 16.14.2&lt;br /&gt;V8: 10.2.154.26-electron.0&lt;br /&gt;OS: Windows_NT x64 10.0.22621&lt;br /&gt;Sandboxed: Yes&lt;/p&gt;
&lt;p&gt;=======================================&lt;/p&gt;
&lt;p&gt;[00:00:30.605,316] &amp;lt;err&amp;gt; mpsl_init: MPSL ASSERT: 112, 2195&lt;br /&gt;[00:00:30.605,346] &amp;lt;err&amp;gt; os: ***** HARD FAULT *****&lt;br /&gt;[00:00:30.605,346] &amp;lt;err&amp;gt; os: Fault escalation (see below)&lt;br /&gt;[00:00:30.605,377] &amp;lt;err&amp;gt; os: ARCH_EXCEPT with reason 3&lt;/p&gt;
&lt;p&gt;[00:00:30.605,407] &amp;lt;err&amp;gt; os: r0/a1: 0x00000003 r1/a2: 0x20002c68 r2/a3: 0x20002c68&lt;br /&gt;[00:00:30.605,407] &amp;lt;err&amp;gt; os: r3/a4: 0x00045a9f r12/ip: 0x00000000 r14/lr: 0x000409fd&lt;br /&gt;[00:00:30.605,438] &amp;lt;err&amp;gt; os: xpsr: 0x61000018&lt;br /&gt;[00:00:30.605,438] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0003a9f4&lt;br /&gt;[00:00:30.605,499] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0&lt;br /&gt;[00:00:30.605,499] &amp;lt;err&amp;gt; os: Fault during interrupt handling&lt;/p&gt;
&lt;p&gt;[00:00:30.605,560] &amp;lt;err&amp;gt; os: Current thread: 0x20002c68 (idle)&lt;br /&gt;[00:00:30.979,431] &amp;lt;err&amp;gt; os: Halting system&lt;/p&gt;
&lt;p&gt;==========================================&lt;/p&gt;
&lt;p&gt;arch_system_halt(unsigned int reason) (c:\nordicsemi\v2.2.0\zephyr\kernel\fatal.c:32)&lt;br /&gt;k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t * esf) (c:\nordicsemi\v2.2.0\zephyr\kernel\fatal.c:46)&lt;br /&gt;z_fatal_error(unsigned int reason, const z_arch_esf_t * esf) (c:\nordicsemi\v2.2.0\zephyr\kernel\fatal.c:131)&lt;br /&gt;z_arm_fatal_error(unsigned int reason, const z_arch_esf_t * esf) (c:\nordicsemi\v2.2.0\zephyr\arch\arm\core\aarch32\fatal.c:63)&lt;br /&gt;z_arm_fault(uint32_t msp, uint32_t psp, uint32_t exc_return, _callee_saved_t * callee_regs) (c:\nordicsemi\v2.2.0\zephyr\arch\arm\core\aarch32\cortex_m\fault.c:1097)&lt;br /&gt;z_arm_usage_fault() (c:\nordicsemi\v2.2.0\zephyr\arch\arm\core\aarch32\cortex_m\fault_s.S:102)&lt;br /&gt;&amp;lt;signal handler called&amp;gt; (Unknown Source:0)&lt;br /&gt;m_assert_handler(const char * const file, const uint32_t line) (c:\nordicsemi\v2.2.0\nrf\subsys\mpsl\init\mpsl_init.c:176)&lt;br /&gt;sym_S2UAPMFVIQXDUOA6CV7GJMB33TYHEUH5D6LHO5Q (Unknown Source:0)&lt;br /&gt;sym_J5F7QGRFPKMLWRNSXZXS5YI7BM4DUTISCOASCOA (Unknown Source:0)&lt;br /&gt;MPSL_IRQ_TIMER0_Handler (Unknown Source:0)&lt;br /&gt;mpsl_timer0_isr_wrapper_body() (c:\nordicsemi\v2.2.0\nrf\subsys\mpsl\init\mpsl_init.c:130)&lt;br /&gt;mpsl_timer0_isr_wrapper() (c:\nordicsemi\v2.2.0\nrf\subsys\mpsl\init\mpsl_init.c:128)&lt;br /&gt;&amp;lt;signal handler called&amp;gt; (Unknown Source:0)&lt;br /&gt;arch_cpu_idle() (c:\nordicsemi\v2.2.0\zephyr\arch\arm\core\aarch32\cpu_idle.S:108)&lt;br /&gt;k_cpu_idle() (c:\nordicsemi\v2.2.0\zephyr\include\zephyr\kernel.h:5627)&lt;br /&gt;idle(void * unused1, void * unused2, void * unused3) (c:\nordicsemi\v2.2.0\zephyr\kernel\idle.c:83)&lt;br /&gt;z_thread_entry(k_thread_entry_t entry, void * p1, void * p2, void * p3) (c:\nordicsemi\v2.2.0\zephyr\lib\os\thread_entry.c:36)&lt;/p&gt;
&lt;p&gt;==================================================================&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/thread/406527?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 16:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d884c743-bb43-43a4-8e86-63b44c1fb4da</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you call this function &lt;a title="https://github.com/nrfconnect/sdk-nrfxlib/blob/80c40fa5f58f5f645134a90385166b5772e460e5/mpsl/include/mpsl_clock.h#l176" href="https://github.com/nrfconnect/sdk-nrfxlib/blob/80c40fa5f58f5f645134a90385166b5772e460e5/mpsl/include/mpsl_clock.h#L176" rel="noopener noreferrer" target="_blank"&gt;mpsl_clock_hfclk_latency_set&lt;/a&gt; with &lt;span&gt;MPSL_CLOCK_HF_LATENCY_BEST?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is the application maybe doing something illegal, like disabling interrupts for too long.. or using an interrupt at prio 0?&lt;/p&gt;
&lt;p&gt;If not, is it possible to share the project to investigate the issue?&lt;/p&gt;
&lt;div&gt;-Amanda H.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/thread/406390?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 08:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63360ea8-316a-4833-b3d2-a8cde5ef0bd5</guid><dc:creator>SvenCalva</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;this is what I got from addr2line for 0x1d343:&lt;/p&gt;
&lt;p&gt;C:/ncs/v2.2.0/zephyr/drivers/timer/nrf_rtc_timer.c:327&lt;/p&gt;
&lt;p&gt;for 0c1e3e4:&lt;/p&gt;
&lt;p&gt;C:/ncs/v2.2.0/nrf/subsys/mpsl/init/mpsl_init.c:176&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/thread/406316?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 15:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c2dc514-b47f-4346-a12e-32678accec33</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you convert the decimal numbers to hex, specifically the contents of&amp;nbsp;LR and PC, you should be able to do a lookup of the addresses using arm-none-eabi-addr2line:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;arm-none-eabi-addr2line -e my-build-folder\zephyr\zephyr.elf &lt;span&gt;0x1d343&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;arm-none-eabi-addr2line -e my-build-folder\zephyr\zephyr.elf 0x1e3e4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you post the output of the above?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/thread/406148?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 06:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d83524-417e-40a7-9e71-7a5be1ed59e6</guid><dc:creator>SvenCalva</dc:creator><description>&lt;p&gt;I am using ncs v2.2.0&lt;/p&gt;
&lt;p&gt;Here is the code snippet:&lt;/p&gt;
&lt;p&gt;uint8_t sequence[] = {0x01,0x07,0x01,0x09,0x01, 0x08,0x01,0x06};&lt;br /&gt; struct bt_gatt_write_params par = {&lt;br /&gt; .handle = command_handle,&lt;br /&gt; .length = 2,&lt;br /&gt; .offset = 0,&lt;br /&gt; .data = &amp;amp;sequence,&lt;br /&gt; .func = write_callback&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;bt_gatt_write(default_conn,&amp;amp;par);&lt;/p&gt;
&lt;p&gt;and the error log:&lt;/p&gt;
&lt;p&gt;[00:00:19.636,413] &amp;lt;err&amp;gt; mpsl_init: m_assert_handler: MPSL ASSERT: 112, 2195&lt;br /&gt;[00:00:19.636,444] &amp;lt;err&amp;gt; os: hard_fault: ***** HARD FAULT *****&lt;br /&gt;[00:00:19.636,474] &amp;lt;err&amp;gt; os: hard_fault: Fault escalation (see below)&lt;br /&gt;[00:00:19.636,474] &amp;lt;err&amp;gt; os: hard_fault: ARCH_EXCEPT with reason 3&lt;/p&gt;
&lt;p&gt;[00:00:19.636,505] &amp;lt;err&amp;gt; os: esf_dump: r0/a1: 0x00000003 r1/a2: 0x00000000 r2/a3: 0x40011000&lt;br /&gt;[00:00:19.636,505] &amp;lt;err&amp;gt; os: esf_dump: r3/a4: 0x00000000 r12/ip: 0x00000001 r14/lr: 0x0001d343&lt;br /&gt;[00:00:19.636,535] &amp;lt;err&amp;gt; os: esf_dump: xpsr: 0x41000018&lt;br /&gt;[00:00:19.636,535] &amp;lt;err&amp;gt; os: esf_dump: Faulting instruction address (r15/pc): 0x0001e3e4&lt;br /&gt;[00:00:19.636,566] &amp;lt;err&amp;gt; os: z_fatal_error: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0&lt;br /&gt;[00:00:19.636,596] &amp;lt;err&amp;gt; os: z_fatal_error: Fault during interrupt handling&lt;/p&gt;
&lt;p&gt;[00:00:19.636,627] &amp;lt;err&amp;gt; os: z_fatal_error: Current thread: 0x200021c0 (unknown)&lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***fatal_error_handler: Resetting system&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL ASSERT during init</title><link>https://devzone.nordicsemi.com/thread/406065?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 14:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2daa3b24-c3cb-4dc4-a0f9-c2bceff21a6c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What NCS version are you using?&lt;/p&gt;
&lt;p&gt;Could you provide the completed error log?&lt;/p&gt;
[quote user=""]After I switched from using the bt_gatt_write_without_response_cb&amp;nbsp; function to using the bt_gatt_write_function i always run into[/quote]
&lt;p&gt;Is it possible to provide the snippet code? What is your&amp;nbsp;&lt;span&gt;bt_gatt_write_function?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>