<?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_log_process() causes mcu crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80119/nrf_log_process-causes-mcu-crash</link><description>I recently encountered a MCU crash problem. I think it is related to NRF_ LOG_ Process (). I used the simulation to catch the following scenarios. MCU crashes at this time. 
 
 
 
 
 
 Please help me analyze the possible problem. Thank you. 
 NOTE ： </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jul 2022 09:16:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80119/nrf_log_process-causes-mcu-crash" /><item><title>RE: nrf_log_process() causes mcu crash</title><link>https://devzone.nordicsemi.com/thread/376737?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 09:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a7181d3-e499-418b-abed-0fb73e82565c</guid><dc:creator>Rafalino</dc:creator><description>&lt;p&gt;I have exactly the same issue:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="108467" url="~/f/nordic-q-a/80119/nrf_log_process-causes-mcu-crash/333155"]it seem likes crash in &amp;quot;strlen()&amp;quot;function, and seem like &amp;quot;acess to illegal memory&amp;quot;,do you have any suggestion to solve this problem?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nRF52840,&amp;nbsp; SDK 17.0.2, SEGGER 6.20a.&lt;/p&gt;
&lt;p&gt;Is there any fix/workaround ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_log_process() causes mcu crash</title><link>https://devzone.nordicsemi.com/thread/333253?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 12:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ce8d57-7ec5-42f7-a600-b82eafb572ac</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The hardfault library will print out more info about what that is causing this to fault. You have to enable the hardfault library first by:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Enabling&amp;nbsp;HARDFAULT_HANDLER_ENABLED&amp;nbsp; in sdk_config.h by setting it to 1.&lt;/li&gt;
&lt;li&gt;Add&amp;nbsp;&lt;span&gt;&amp;nbsp;hardfault_implementation.c and&amp;nbsp;hardfault_handler_gcc.c from&amp;nbsp;\components\libraries\hardfault to your project.&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Do you see a more verbose log being printed now?&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;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_log_process() causes mcu crash</title><link>https://devzone.nordicsemi.com/thread/333155?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 03:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da55d817-ad03-4559-9b70-0186d2e74ecc</guid><dc:creator>Liny</dc:creator><description>&lt;p&gt;&amp;quot;Can you follow the instructions in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71299/getting-hardfault-error-when-using-ble-lesc-pairing/292979#292979"&gt;this thread&lt;/a&gt; to activate the Hardfault handling library&amp;quot;&lt;/p&gt;
&lt;p&gt;sorry,i can&amp;#39;t understand it,can you describe it in more detail?&lt;/p&gt;
&lt;p&gt;it seem likes crash in &amp;quot;strlen()&amp;quot;function, and seem like &amp;quot;acess to illegal memory&amp;quot;,do you have any suggestion to solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_log_process() causes mcu crash</title><link>https://devzone.nordicsemi.com/thread/331921?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 12:17:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0758deaf-1819-474d-879b-390785478938</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you follow the instructions in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71299/getting-hardfault-error-when-using-ble-lesc-pairing/292979#292979"&gt;this thread&lt;/a&gt; to activate the Hardfault handling library. Next, can you rerun the application and see if a more detailed log is printed when the application stops?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>