<?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>Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30514/softdevice-assert-4097-190958-256-by-trying-to-adapt-sdk-for-mesh-v1-0-1-light-switch-demo-to-mtconnect05</link><description>Hi, 
 I know that MtConnect05 is not a Nordic product but it contains a nRF52832 
 and these questions are about SDK for mesh usage. 
 
 The questions: 
 1. What does this assert log mean? 
 It happens at the first or second time I write &amp;#39;0&amp;#39; to RTT in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Feb 2018 14:45:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30514/softdevice-assert-4097-190958-256-by-trying-to-adapt-sdk-for-mesh-v1-0-1-light-switch-demo-to-mtconnect05" /><item><title>RE: Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/thread/121977?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 14:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3716e354-bdad-4b47-a4fd-11eb63ea1de3</guid><dc:creator>PopradiArpad</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I answer my question.&lt;/p&gt;
&lt;p&gt;With the help of an MtM Engineer here is the solution:&lt;/p&gt;
&lt;p&gt;But first what is the problem?&lt;/p&gt;
&lt;p&gt;The problem is that the&amp;nbsp;low frequency accuracy of the MtConnect05 is other as of the chip built into the nRF52DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; change &lt;span&gt;mesh_core_setup&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Add&amp;nbsp;the&amp;nbsp;&lt;strong&gt;bold&lt;/strong&gt; code in nrf_mesh_sdk.c - mesh_core_setup &lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Initializing softdevice\n&amp;quot;);&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;span&gt;#if &amp;nbsp;SD_BLE_API_VERSION &amp;gt;= 5&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; nrf_clock_lf_cfg_t lfc_cfg = {NRF_CLOCK_LF_SRC_XTAL, 0, 0, NRF_CLOCK_LF_ACCURACY_20_PPM};&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;strong&gt;#elif SD_BLE_API_VERSION &amp;gt;= 3 &lt;br /&gt;&amp;nbsp; &amp;nbsp; nrf_clock_lf_cfg_t lfc_cfg = {NRF_CLOCK_LF_SRC_XTAL, 0, 0, NRF_CLOCK_LF_XTAL_ACCURACY_75_PPM}; &lt;br /&gt;&lt;/strong&gt;&lt;span&gt;#elif SD_BLE_API_VERSION &amp;gt;= 2&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; nrf_clock_lf_cfg_t lfc_cfg = {NRF_CLOCK_LF_SRC_XTAL, 0, 0, NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM};&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;span&gt;#elif defined(S110)&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; nrf_clock_lfclksrc_t lfc_cfg = NRF_CLOCK_LFCLKSRC_XTAL_20_PPM;&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;span&gt;#endif&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. change main in the server project:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Add&amp;nbsp;the&amp;nbsp;&lt;strong&gt;bold&lt;/strong&gt; code in main.c - main of the server&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;#if defined(S110)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_params.lf_clk_cfg = NRF_CLOCK_LFCLKSRC_XTAL_20_PPM;&lt;br /&gt;#elif SD_BLE_API_VERSION &amp;gt;= 5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_XTAL;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_params.lf_clk_cfg.accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM;&lt;br /&gt;&lt;strong&gt;#elif SD_BLE_API_VERSION &amp;gt;= 3&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_XTAL;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_params.lf_clk_cfg.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_75_PPM;&lt;/strong&gt;&lt;br /&gt;#else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_XTAL;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_params.lf_clk_cfg.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM;&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR_CHECK(nrf_mesh_node_config(&amp;amp;config_params));&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After this the MtConnect05s run like a dream :)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;Aacute;rp&amp;aacute;d&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/thread/121813?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 15:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ace03e17-6567-4633-aebd-1892f5a83216</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Sorry, I did not realize it was all visible in the second screenshot.&lt;/p&gt;
&lt;p&gt;ID of 4097 (0x1001) is &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v3.0.0%2Fgroup___n_r_f___f_a_u_l_t___i_d_s.html&amp;amp;anchor=ga234338bb9d7e0f116a6e7112819cce6d"&gt;NRF_FAULT_ID_APP_MEMACC&lt;/a&gt;, which means there is an access violation. The pc points to the place in the application which is at fault. In hexadecimal it is 0x2E9EE, and you should be able to find it in the disassembly which would then give you the file and line number.&lt;/p&gt;
&lt;p&gt;See the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.sds%2Fdita%2Fsoftdevices%2Fs130%2Fsd_resource_reqs%2Fhw_block_interrupt_vector.html"&gt;Hardware peripherals&lt;/a&gt; section of the SoftDevice Specification for a list of what hardware peripherals are protected.&lt;/p&gt;
&lt;p&gt;Unfortunately I do not know why mouse over and printout gives separate values. Actually the printout seems to be the correct one...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/thread/121468?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 07:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1166d582-43ee-401e-8946-39b740ab9048</guid><dc:creator>PopradiArpad</dc:creator><description>&lt;p&gt;Hi tesc,&lt;/p&gt;
&lt;p&gt;you are right the logged values are not the same as the ones detected by the debugger:&lt;/p&gt;
&lt;p&gt;Here are the decimal values by mouse over:&lt;/p&gt;
&lt;p&gt;id: 0&lt;/p&gt;
&lt;p&gt;pc 190958&lt;/p&gt;
&lt;p&gt;info: 2&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;Aacute;rp&amp;aacute;d&lt;/p&gt;
&lt;p&gt;P.S What causes the difference?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/thread/121464?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 06:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063ccc54-b672-415c-8cb9-36b70cd3fd4d</guid><dc:creator>PopradiArpad</dc:creator><description>&lt;p&gt;Hi tesc,&lt;/p&gt;
&lt;p&gt;it asserts with the same values reproducibly. You can read them from the second&amp;nbsp;image I sent. (last line in the debug terminal).&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;Aacute;rp&amp;aacute;d&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/thread/121271?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 14:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51152f76-4d49-45f7-931a-57faa049afe7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What are the values for &amp;quot;id&amp;quot;, &amp;quot;pc&amp;quot; and &amp;quot;info&amp;quot; passed to softdevice_assert_handler(), and does it consistently assert with the same values? (You can figure out the values by mouse over, or read from the &amp;quot;locals&amp;quot; debug window which you can enable from the &amp;quot;view&amp;quot; menu or by Ctrl+Alt+L.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/thread/121054?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 09:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36476612-0280-4f0c-a1a3-a1b6580819d4</guid><dc:creator>PopradiArpad</dc:creator><description>&lt;p&gt;Hi leonwj,&lt;/p&gt;
&lt;p&gt;thank you for the info about Monitor Mode Debugging, I didn&amp;#39;t know it.&lt;br /&gt;I will use that but in this case that is not problem.&lt;/p&gt;
&lt;p&gt;The issue even happens without any breakpoint set.&lt;/p&gt;
&lt;p&gt;I set up the breakpoint only to get more information about what it causes.&lt;br /&gt;Step 3 and 4 have only that purpose.&lt;br /&gt;Without Step 3 the breakpoint set to the assert handler (Step 4) doesn&amp;#39;t come.&lt;/p&gt;
&lt;p&gt;So the breakpoint is set within the softdevice_assert_handler and comes&lt;br /&gt;only when the software already crashed.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice assert: 4097:190958:256 by trying to adapt SDK for Mesh v1.0.1 light-switch demo to MtConnect05</title><link>https://devzone.nordicsemi.com/thread/121031?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 01:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c08319-7086-4061-a803-07f3db8c872d</guid><dc:creator>leonwj</dc:creator><description>&lt;p&gt;hello&amp;nbsp;PopradiArpad,&lt;/p&gt;
&lt;p&gt;I believe that you are running into the general debugging issue with Bluetooth and&amp;nbsp;&lt;span&gt;halt mode debugging. Of the RF protocols, Bluetooth in particular, has extremely sensitive timing requirements which means that it is very difficult to single step debug through various sections of application code&amp;nbsp;without affecting radio operations. The softdevice has most likely asserted due to this. Most people run to breakpoints whilst in halt mode debug to ensure that timing issues are minimized.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In order to entirely overcome the issue, you will have to enable monitor mode debugging (MMD) which is a feature of the Cortex-M3/M4 (and therefore will not be available if you are debugging an nrf51 chip). From the screenshots that you provided, it looks like you are using the nrf52832 so it&amp;#39;s supported on that. The following &lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/monitor-mode-debugging/"&gt;link&lt;/a&gt; provides some basic details on MMD functionaility.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The Nordic Blog also has some practical guidance on setting up MMD with SES, see &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/segger-embedded-studio-part-2-monitor-mode-debuggi"&gt;here&lt;/a&gt;...as well as &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15602/segger-embedded-studio-and-monitor-mode-debugging/59518#59518"&gt;here&lt;/a&gt;... (there are a couple of blog entries that are unavailable/404 since the migration to this new devzone branding so i haven&amp;#39;t been able to link to those)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally, from your screenshots, you appear to be using ubuntu/linux as your development platform and there are licensing issues which you would need to be aware of (since the on-board nrf52x jlink MMD evaluation only covers Windows I believe). Please review the following &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27363/monitor-mode-debug-w-nrf52840-ses-3-3-sdk14-1-0-ble-s140/108073#108073"&gt;link&lt;/a&gt; to determine your requirements on that front. (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27363/monitor-mode-debug-w-nrf52840-ses-3-3-sdk14-1-0-ble-s140/108073#108073"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/27363/monitor-mode-debug-w-nrf52840-ses-3-3-sdk14-1-0-ble-s140/108073#108073&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/811x240/__key/communityserver-discussions-components-files/4/mmd_2D00_linux_2D00_licensing.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Post back if you need any additional details on the MMD front or clarification of the above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&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></channel></rss>