<?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>Logging to file - device freezes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92535/logging-to-file---device-freezes</link><description>I&amp;#39;m in the project in which we are trying to implement logging to file functionality to NRF5340 chip. 
 
 Following lines were added to config.proj file: 
 
 # experimental logging functionality to file 
 CONFIG_LOG = y 
 CONFIG_LOG_BACKEND_FS = y 
 CONFIG_LOG_DEFAULT_LEVEL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Oct 2022 09:20:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92535/logging-to-file---device-freezes" /><item><title>RE: Logging to file - device freezes</title><link>https://devzone.nordicsemi.com/thread/389350?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 09:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d9717ce-c934-4293-97c8-05b329820482</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Some related thread I can find are:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84493/log-and-shell-through-rtt-backend-don-t-play-nicely"&gt;Log and shell through RTT backend don&amp;#39;t play nicely&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/36909"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/36909&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are able to provide a project I can run on an nRF5340 that show the symptoms by for instance simply commenting out&amp;nbsp;&lt;span&gt;CONFIG_SHELL_BACKEND_RTT&amp;nbsp;then I can run in by the developers to see if I can get their feedback.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If possible trying this on a newer ncs release can also be something to try. The current latest is v2.1.0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging to file - device freezes</title><link>https://devzone.nordicsemi.com/thread/389330?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 08:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dfc8461-9d38-4201-b6b0-5cc16f55e95b</guid><dc:creator>herbata</dc:creator><description>&lt;p&gt;This is just a temporary walkaround, as the cause of the problem is still unknown&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using nRF Connect SDK 1.9.1&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging to file - device freezes</title><link>https://devzone.nordicsemi.com/thread/389328?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 08:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2377b651-ba56-4be4-ad7f-478b982e83e3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not in specific, but googling for&amp;nbsp;&lt;span&gt;CONFIG_SHELL_BACKEND_RTT and logging I could find some issues that could be related. Those do however look to be fixed in zephyr, so I guess it may depend a bit on what nRF Connect SDK release you are working on whether they have made it into the release for NCS. But good to hear you have found a workaround.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging to file - device freezes</title><link>https://devzone.nordicsemi.com/thread/389320?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 07:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cf5a337-bd83-42d9-a029-082a8d89d77a</guid><dc:creator>herbata</dc:creator><description>&lt;p&gt;Hi, thank you for your answer. Unfortunately at the current stage I&amp;#39;m unable to share full project as it is a proprietary code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But during debugging, I was able to made it to work only when RTT is disabled&amp;nbsp; (&lt;span&gt;CONFIG_SHELL_BACKEND_RTT&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;So, maybe you know how can RTT and Logging to file be enabled at the same time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging to file - device freezes</title><link>https://devzone.nordicsemi.com/thread/388999?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 13:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66416d82-cf5c-4318-a281-9ead3fe72a7d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you have a project you can share (that I can run on an nRF5340-DK)? What ncs version are you using?&lt;/p&gt;
&lt;p&gt;Are you able to get more debug information by:&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&lt;br /&gt;CONFIG_THREAD_NAME=y&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>