<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91512/logging</link><description>nRF Connect SDK v2.0.0 
 VS Code 1.70.2 
 nRF9160 development kit 
 
 To view all possible log messages the fololwing logging configuration is set up in prj.conf: 
 CONFIG_LOG =y 
 CONFIG_LOG_MODE_IMMEDIATE =y 
 CONFIG_LOG_OVERRIDE_LEVEL =4 
 
 
 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Oct 2022 12:23:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91512/logging" /><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/389409?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 12:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3420978f-9832-4243-ab30-fb5025fdc641</guid><dc:creator>Elbert</dc:creator><description>&lt;p&gt;It does not break at application main(), but crashes before.&lt;/p&gt;
&lt;p&gt;Deferred/Minimal = same result.&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_PRINTK does not give information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/389403?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 12:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b0a053c-9f80-4e6d-9b85-375c8f1c41b1</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Is it always the same thread / file or function where it crashes?&lt;br /&gt;Perhaps it could be a log_dbg statement with invalid arguments?&lt;br /&gt;Is it crashing directly at start or lateron during running some time?&lt;br /&gt;&lt;br /&gt;Instead of CONFIG_LOG_MODE_IMMEDIATE=y&lt;br /&gt;you can try&amp;nbsp;&lt;br /&gt;CONFIG_LOG_MODE_DEFERRED=y&lt;br /&gt;or&amp;nbsp;&lt;br /&gt;CONFIG_LOG_MODE_MINIMAL=y&lt;br /&gt;&lt;br /&gt;both with additional&lt;br /&gt;CONFIG_LOG_PRINTK=y&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/389397?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 11:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e66f879-6c64-4cb6-af36-0d1dce069020</guid><dc:creator>Elbert</dc:creator><description>&lt;p&gt;Increased it a lot, but without any effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/389396?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 11:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b8d3f27-cf21-4cb5-8ecb-8ad5b7cf50a1</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Hi Elbert,&lt;br /&gt;&lt;br /&gt;Did you increase the stack size for the Ozone debugger (it consumes &amp;#39;some&amp;#39;extra resources)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; nRF5xFanBoy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/389393?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 11:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cef59ed-45f5-48eb-bd4a-02a141c65cc9</guid><dc:creator>Elbert</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;nRF5xFanBoy,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I understand that (tried by log level per application file), but that is not the problem I see.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_LOG_OVERRIDE_LEVEL=4 in the prj.conf should override log statements level in all files, including kernel. With&amp;nbsp;CONFIG_LOG_OVERRIDE_LEVEL=3 all corresponding log statements are shown, but with&amp;nbsp;CONFIG_LOG_OVERRIDE_LEVEL=4 a Cortex hard fault occurs in the oZone debugger.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That is the real problem and I do not understand why.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards, Elbert&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/389387?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 11:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3af40a22-6d21-4431-a6e2-2084bb59e61c</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Hi Elbert,&lt;br /&gt;&lt;br /&gt;I try to clarify.&lt;br /&gt;&lt;br /&gt;When you&amp;nbsp;use log debug statements in the code and compile with CONFIG_LOG_OVERRIDE_LEVEL = 4&amp;nbsp;the log debug statements are performed.&lt;br /&gt;&lt;br /&gt;When you compile with&amp;nbsp;&lt;span&gt;CONFIG_LOG_OVERRIDE_LEVEL =&amp;nbsp;3&amp;nbsp;&lt;/span&gt;&lt;span&gt;the log debug statements are not performed because they are removed from code during compilation.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.zephyrproject.org/1.14.0/reference/kconfig/CONFIG_LOG_OVERRIDE_LEVEL.html"&gt;LOG_OVERRIDE_LEVEL &amp;mdash; Zephyr Project Documentation&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;Hope it helps,&lt;br /&gt;&lt;br /&gt;best regards,&lt;br /&gt;&amp;nbsp; &amp;nbsp;nRF5xFanBoy&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/389227?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 13:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aa8adb9-6163-462d-9dc8-89cae4b00dbd</guid><dc:creator>Elbert</dc:creator><description>&lt;p&gt;Does the mean that it is not possible to use&amp;nbsp;&lt;span&gt;CONFIG_LOG_OVERRIDE_LEVEL&lt;/span&gt;&lt;span&gt;=4?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/384322?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 11:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7a9a0f-3d05-4ff1-bcef-ed04dd794b00</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Hi Elbert,&lt;br /&gt;&lt;br /&gt;This is correct if the log level is at runtime.&lt;br /&gt;But the zephyr logging is handled at compile time. This inactive parts are not in the runtime code.&lt;br /&gt;So is level3 is active , the logging debug (=level4) do not show.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; nRF5xFanBoy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/384286?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 09:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:354b2e99-fd0c-4a93-8500-3811c7da8e3a</guid><dc:creator>Elbert</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;nRF5xFanBoy,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your thought.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With CONFIG_LOG_OVERRIDE_LEVEL=3 the LOG_DBG statements in my application are shown correct, so I assume that when set to 4 these statements are still OK. Could it be possible that a LOG_DBG statement in other (nRF connect) sources is incorrect? How can I verify this?&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Elbert&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/384209?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 19:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0fb9534-458e-4ea8-a223-96566555c3cc</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Hi Elbert,&lt;br /&gt;&lt;br /&gt;just a though&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please check your LOG_DBG statements I think one of them may&amp;nbsp;cause this hard-fault due to wrong parameters of formatting.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&amp;nbsp; &amp;nbsp; nRF5xFanBoy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>