<?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>Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114426/unable-to-print-using-printf-or-nrf_log_info</link><description>I am using nrf5 sdk 17.1.0, segger embedded studio v6.40 and nrf52832-dk, when running the spi example, i do able to see the log only after the build, and when i reset the device no log is shown on the Jlink-RTT viewer. When running the uart example provided</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Sep 2024 13:12:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114426/unable-to-print-using-printf-or-nrf_log_info" /><item><title>RE: Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/thread/501554?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 13:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05d370d2-8477-45b0-9d5e-c8fcd0ce0b59</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ah, yes.&lt;/p&gt;
&lt;p&gt;Sorry for not noticing, but it has been a while since I saw this issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you look in the &lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/index.html"&gt;release notes&lt;/a&gt;, you can see what SES version this SDK is tested with. It says 5.42a, which means we don&amp;#39;t maintain it for versions newer than this.&lt;/p&gt;
&lt;p&gt;I think it was SES v6.0 or something that introduced a breaking change regarding logging, meaning it will not work out of the box. So the easiest way to get this working without any hassle is to use v5.42a.&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: Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/thread/501020?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 15:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb49b63-6fed-4c59-a389-bd22b2ec0727</guid><dc:creator>fatimatayyab71</dc:creator><description>&lt;p&gt;I have tested the ble_app_uart, on ses version 6.40 but it was not printing anything, but when i tried on version 4.52 it prints on the terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/thread/501001?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 14:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f63f892-b5fb-4990-852e-f0f8d7b14288</guid><dc:creator>fatimatayyab71</dc:creator><description>&lt;p&gt;I have performed the factory reset and then able to print on the terminal using the above code on nordic connect sdk, but when again&amp;nbsp;implement this below example on nrf5 sdk nothing prints.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/114426/unable-to-print-using-printf-or-nrf_log_info/500984"]If you try the ble_app_uart example, in nRF5 SDK 17.1.0, you can see that printk() will print to the UART terminal (use something like Putty or Termite), but logging, which uses NRF_LOG_INFO(), will be printed to the RTT log.[/quote]
&lt;p&gt;Yes, I am using standard nrf52832-DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/thread/500997?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 14:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c2b5979-2393-4034-bb67-902cf612a629</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What application are you testing on? And what HW are you using? A standard Nordic nRF52832 DK?&amp;nbsp;&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: Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/thread/500990?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 13:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f58aa05-4426-462d-b459-5c823835d844</guid><dc:creator>fatimatayyab71</dc:creator><description>&lt;p&gt;I have used UART terminal of nrf connect for desktop and putty but nothing prints there, and for nrf_log_info() i have used RTT log of Jlink RTT viewr separately but nothing shows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/thread/500984?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 13:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df64926f-d1cf-4127-92c6-68d2a5403a4d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The printk() usually prints to the UART, and not the RTT log. If you want to print something to the RTT Log, make sure that RTT logging is enabled in your sdk_config.h.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you try the ble_app_uart example, in nRF5 SDK 17.1.0, you can see that printk() will print to the UART terminal (use something like Putty or Termite), but logging, which uses NRF_LOG_INFO(), will be printed to 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: Unable to print using printf or nrf_log_info</title><link>https://devzone.nordicsemi.com/thread/500841?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 17:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b9dd774-a2c9-4c35-9cac-441f55093102</guid><dc:creator>fatimatayyab71</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;

/* 1000 msec = 1 sec */
#define SLEEP_TIME_MS   1000

/* The devicetree node identifier for the &amp;quot;led0&amp;quot; alias. */
#define LED0_NODE DT_ALIAS(led0)

/*
 * A build error on this line means your board is unsupported.
 * See the sample documentation for information on how to fix this.
 */
static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);

int main(void)
{
	int ret;

	if (!gpio_is_ready_dt(&amp;amp;led)) {
		return 0;
	}

	ret = gpio_pin_configure_dt(&amp;amp;led, GPIO_OUTPUT_ACTIVE);
	if (ret &amp;lt; 0) {
		return 0;
	}

	while (1) {
		ret = gpio_pin_toggle_dt(&amp;amp;led);
		if (ret &amp;lt; 0) {
			return 0;
		}
		printk(&amp;quot;\nError: no device found.\n&amp;quot;);

		k_msleep(SLEEP_TIME_MS);
	}
	return 0;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have tried to print using printk in blinky sample of nordic connect sdk, it does show led blink, but it also not print anything on the terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>