<?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 enable NRF_LOG_DEBUG in the secure bootloader code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56891/how-to-enable-nrf_log_debug-in-the-secure-bootloader-code</link><description>Hi, 
 For nRF82540 dev board, the secure bootloader code has embedded many NRF_LOG_DEBUG(...). But they are not displayed or output to virtual COM port. Is there anyway to be enabled or simply how to show these debug messages? 
 Thank you, 
 David Zh</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2020 10:03:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56891/how-to-enable-nrf_log_debug-in-the-secure-bootloader-code" /><item><title>RE: How to enable NRF_LOG_DEBUG in the secure bootloader code?</title><link>https://devzone.nordicsemi.com/thread/230807?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 10:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53df2678-ce24-4a66-84b6-0ecdb554dac2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Have you set the NRF_LOG_ENABLED to 1 in your sdk_config.h in your bootloader project?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what log backend you use in your non-bootloader application. Is that UART or RTT? Because the bootloader_debug project uses the RTT backend. If you use Segger Embedded Studio(SES), try to set&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 in sdk_config.h. If you run a debug session in SES you should then see the log messages in the debug console in SES. If you don&amp;#39;t use SES, open JLink RTT Viewer to monitor the RTT Log.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable NRF_LOG_DEBUG in the secure bootloader code?</title><link>https://devzone.nordicsemi.com/thread/230691?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 15:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc4e3616-c44d-43c6-9056-92a63353770a</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;I compiled the secure_bootloader under pca10056_ble_debug, no messages displayed when I debug the project. (Messages are displayed on application project, -- separate debug run from bootloader ) &lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable NRF_LOG_DEBUG in the secure bootloader code?</title><link>https://devzone.nordicsemi.com/thread/230565?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 11:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45c2c012-56f5-47ce-9ced-ba11c67b6c89</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello David,&lt;/p&gt;
&lt;p&gt;By default, logging is not enabled in the bootloader projects. If you want to see the logging, you should check out the pca10056_xxx_debug projects, where xxx is the type of bootloader you are working on, ble, serial or usb.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The reason logging isn&amp;#39;t enabled in the &amp;quot;normal&amp;quot; bootloader projects is because the logging modules are quite big, and it requires more flash than what is set aside for the normal bootloader projects.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>