<?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 do I printf to keil&amp;#39;s debug (printf) viwer?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84573/how-do-i-printf-to-keil-s-debug-printf-viwer</link><description>I&amp;#39;ve did my homework and googling but got more confused than ever. 
 Basically I&amp;#39;m trying to printf to the debug (printf) viwer window to help me demonstrate certain information. 
 
 Thing is, online tutorials tend to be outdated and the config windows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Feb 2022 13:46:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84573/how-do-i-printf-to-keil-s-debug-printf-viwer" /><item><title>RE: How do I printf to keil's debug (printf) viwer?</title><link>https://devzone.nordicsemi.com/thread/352089?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 13:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dbefaf0-2e5a-4c5d-821a-ea694dd19732</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="HelmetWithHornInstalledInside"]Thank you for your reply Karl![/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="HelmetWithHornInstalledInside"]Oh absolutely, except I&amp;#39;m seemingly having problem with the logger function. If I enable it, a lot of logs will be enabled and some of them don&amp;#39;t seem to function all that well.[/quote]
&lt;p&gt;Could you elaborate on what you mean when you say that some of them do not function well?&lt;br /&gt;If you are seeing unrelevant logs you may change the&amp;nbsp;NRF_LOG_DEFAULT_LEVEL to increase/decrease the amount of logs displayed. Alternatively, you could disable the logging for each module/library that you are not interested in seeing, for example by disabling&amp;nbsp;UART_CONFIG_LOG_ENABLED for the UART peripheral&amp;#39;s logging.&lt;/p&gt;
[quote user="HelmetWithHornInstalledInside"]So... now the question becomes... how exactly do I do that?[/quote]
&lt;p&gt;The logger module&amp;#39;s configuration are made in the sdk_config.h file, you will need to define&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED to 1, and define to 0 or remove the NRF_LOG_BACKEND_UART_ENABLED define.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I printf to keil's debug (printf) viwer?</title><link>https://devzone.nordicsemi.com/thread/352061?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 12:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e71c96-284f-43ae-b801-7faf6c8ad4dd</guid><dc:creator>HelmetWithHornInstalledInside</dc:creator><description>&lt;p&gt;Thank you for your reply Karl!&lt;/p&gt;
&lt;p&gt;&amp;gt;Would it be an option for you to use the logger module instead of the printf function directly?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Oh absolutely, except I&amp;#39;m seemingly having problem with the logger function. If I enable it, a lot of logs will be enabled and some of them don&amp;#39;t seem to function all that well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;The nRF Logger module has an RTT backend available, and so you may use it to display loggings in the&amp;nbsp;&lt;em&gt;SES Debug terminal&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So... now the question becomes... how exactly do I do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I printf to keil's debug (printf) viwer?</title><link>https://devzone.nordicsemi.com/thread/352025?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 11:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3cf0058-b903-489d-886c-88c467a820a0</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Would it be an option for you to use the logger module instead of the printf function directly?&lt;br /&gt;It is the RETARGET library that forwards standard io functions like printf to the UART, but there are no options to make it retarget them to RTT unfortunately.&lt;br /&gt;The &lt;em&gt;SES Debug terminal&lt;/em&gt; is an RTT terminal, so you will need to output your messages to RTT in order to have them show up there. The nRF Logger module has an RTT backend available, and so you may use it to display loggings in the&amp;nbsp;&lt;em&gt;SES Debug terminal&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I printf to keil's debug (printf) viwer?</title><link>https://devzone.nordicsemi.com/thread/352000?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 10:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f51b968-62df-48a3-b3f3-fca63dee21c2</guid><dc:creator>HelmetWithHornInstalledInside</dc:creator><description>&lt;p&gt;Almost forgot: my chip is nrf52832. And I can&amp;#39;t use uart because none of them is available.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>