<?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>How to debug configuration issues?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115670/how-to-debug-configuration-issues</link><description>Hi, 
 I have a concrete example, where I have no clue, as to why a given configuration is not working. In general, I wonder, how one is supposed to debug / investigate such, quite time consuming issues. 
 I want to add RTT logging to a MCUBoot bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Oct 2024 14:12:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115670/how-to-debug-configuration-issues" /><item><title>RE: How to debug configuration issues?</title><link>https://devzone.nordicsemi.com/thread/507402?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 14:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10dc88a4-2174-4b20-8ac7-271f9c0bfe5b</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug configuration issues?</title><link>https://devzone.nordicsemi.com/thread/507399?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 14:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2664bd5-8854-4747-8ed3-885d527de972</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I see there are three modes in&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/2.7.5/reference/kconfig/choice_18.html#choice-18"&gt;&lt;span&gt;&amp;lt;choice LOG_MODE: Mode&amp;gt;&lt;/span&gt;&lt;/a&gt;, and&amp;nbsp;&amp;nbsp;&lt;span&gt;`CONFIG_LOG_MODE_IMMEDIATE=y` is used in my colleague&amp;#39;s example. so it&amp;#39;s worth to try.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug configuration issues?</title><link>https://devzone.nordicsemi.com/thread/507384?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 13:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49b0e66f-e407-415c-a5cb-6c0b3eb777c7</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;So, you were just guessing? :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug configuration issues?</title><link>https://devzone.nordicsemi.com/thread/507377?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 13:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76ad2fb3-96b1-47c5-b978-4f01f545bb66</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can check the .config under build/mcuboot/zephyr to confirm the value of&amp;nbsp;&lt;span&gt;CONFIG_LOG_MODE_MINIMAL. I found&amp;nbsp;CONFIG_LOG_MODE_MINIMAL=n doesn&amp;#39;t take effect in the .config, and then try&amp;nbsp;CONFIG_LOG_MODE_IMMEDIATE.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug configuration issues?</title><link>https://devzone.nordicsemi.com/thread/507300?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 09:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed539010-37dc-46b9-88d4-c07f12a31ef0</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hu Amanda,&lt;/p&gt;
&lt;p&gt;thank you very much for your answer. According to the cited documentation, this should then work &amp;nbsp;(LOG_BACKEND_RTT get the value y), right? :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_FRONTEND_ONLY=n
CONFIG_LOG_MODE_MINIMAL=n
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But it still does not accept the value `y` (same message, as above). Adding `&lt;span&gt;CONFIG_LOG_MODE_IMMEDIATE=y` does the trick, but where would I be able to pick up that information? How did you managed to find that adding `CONFIG_LOG_MODE_IMMEDIATE=y` would solve this configuration problem?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug configuration issues?</title><link>https://devzone.nordicsemi.com/thread/507214?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 18:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f9c996e-214f-4ff3-9ba5-93736d988876</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See the description of&amp;nbsp;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://docs.nordicsemi.com/bundle/ncs-2.7.99-cs2/page/kconfig/index.html#CONFIG_LOG_BACKEND_RTT"&gt;&lt;code&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729536936445v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can set&amp;nbsp;CONFIG_LOG_MODE_IMMEDIATE=y and it would also disable&amp;nbsp;CONFIG_LOG_MODE_MINIMAL.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check out my colleague&amp;#39;s unofficial sample&amp;nbsp;&lt;a title="mcuboot_smp_uart_feat_rtt" href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/e9457f657621815239167745dc47109291d3f57d/bootloader_samples/smp/mcuboot_smp_uart_feat_rtt"&gt;mcuboot_smp_uart_feat_rtt&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>