<?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>Add RTT Logs to mcuboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84936/add-rtt-logs-to-mcuboot</link><description>I am using vscode with NCS 1.9. I am trying to add RTT logs to MCUBoot as the product I am developing won&amp;#39;t have an exposed Serial port. I started with the hello_world example and added 
 
 # Enable mcumgr. 
 CONFIG_MCUMGR =y 
 
 # Enable most core commands</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Feb 2022 11:25:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84936/add-rtt-logs-to-mcuboot" /><item><title>RE: Add RTT Logs to mcuboot</title><link>https://devzone.nordicsemi.com/thread/354782?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 11:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb38f13-9598-4b64-b574-95b3146b4f72</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try to add&amp;nbsp;&lt;span&gt;CONFIG_LOG=y in the&amp;nbsp;prj.conf file. Connecting the RTT viewer to DK again before programming the new image, then it would get the new log.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add RTT Logs to mcuboot</title><link>https://devzone.nordicsemi.com/thread/354676?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 17:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48dadc04-3254-4537-b7e6-5f4e2506381d</guid><dc:creator>Zada</dc:creator><description>&lt;p&gt;I am still not getting any logs from MCUBoot.&lt;br /&gt;&lt;br /&gt;I changed CONFIG_LOG_MINIMAL=y -&amp;gt; CONFIG_LOG_MINIMAL=n in&amp;nbsp;ncs\v1.9.0\bootloader\mcuboot\boot\zephyr\prj.conf&lt;br /&gt;&lt;br /&gt;I added the child_image\mcuboot.conf file and did a Pristine build.&lt;br /&gt;&lt;br /&gt;I also commented out the RTT and logging from the prj.conf file.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Disable UART Console and enable the RTT console&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_UART_CONSOLE=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_RTT_CONSOLE=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_USE_SEGGER_RTT=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# Some command handlers require a large stack.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE&lt;/span&gt;&lt;span&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# Config logger&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_LOG=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_LOG_BACKEND_RTT=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_LOG_BACKEND_UART=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Which should mean only mcuboot is placing the RTT control block into RAM. However, when I connect RTT I get no logs from it. The Firmware logs show up over UART now but no logs appear anywhere from MCUBoot. Am I missing a detail?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add RTT Logs to mcuboot</title><link>https://devzone.nordicsemi.com/thread/354618?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 14:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f37ce420-8b2b-4b1d-ba70-917c44dd1da9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can get the RTT mcuboot log by modifing&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/prj.conf#L32" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/prj.conf#L32&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG_MODE_MINIMAL=n # former CONFIG_MODE_MINIMAL&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And use these config for&amp;nbsp;child_image\mcuboot.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000

# Disable UART Console and enable the RTT console
CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y

# Config logger
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n

CONFIG_MULTITHREADING=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;RTT viewer:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6013.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The RTT bootload log only shows after programing the image, and RTT viewer needs to connect the DK again to get the app log. This is the normal scenario. If you have two RTT blocks in RAM, RTTViewer will only pick up one. That means it will be a bit random if it picks up MCUboot or the application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Test file:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5417.hello_5F00_world_5F00_284513.7z"&gt;devzone.nordicsemi.com/.../5417.hello_5F00_world_5F00_284513.7z&lt;/a&gt;&amp;nbsp;for NCS v1.9.0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add RTT Logs to mcuboot</title><link>https://devzone.nordicsemi.com/thread/354321?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 11:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:332fa87d-7fc2-4edb-a9de-d537bf1c3a95</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I am working on your case and will reply later.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>