<?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>Debug Log not shown in RTT either Uart in custom pcb of 9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118760/debug-log-not-shown-in-rtt-either-uart-in-custom-pcb-of-9160</link><description>Hello Nordic Team, 
 My application is cellular asset tracker type and we have design custom pcb using nRF9160 device. 
 I am using ncs SDK version: v2.8.0 and toolchain version: v2.8.0 and I have flased latest modem firmware nrf9160dk_mfw-1.3.7_sdk-2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Feb 2025 09:37:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118760/debug-log-not-shown-in-rtt-either-uart-in-custom-pcb-of-9160" /><item><title>RE: Debug Log not shown in RTT either Uart in custom pcb of 9160</title><link>https://devzone.nordicsemi.com/thread/522377?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 09:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f925dedd-76c0-4cce-8ca0-52a76650d28d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for sharing the .dts file.&lt;/p&gt;
&lt;p&gt;You are trying to redefine the pinctrl entires, but you are reusing the same name. However, this is only possible if you follow the exact same setup as the original definition.&lt;/p&gt;
&lt;p&gt;I would rather recommend that you rename your uart0_default and uart1_default to for instance &amp;quot;my_uart0_default&amp;quot; / &amp;quot;my_uart1_default&amp;quot;.&lt;/p&gt;
&lt;p&gt;Something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;...


&amp;amp;uart0 {
    compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
    current-speed = &amp;lt;115200&amp;gt;;
    status = &amp;quot;okay&amp;quot;;
    hw-flow-control;

    pinctrl-0 = &amp;lt;&amp;amp;my_uart0_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;my_uart0_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;uart1 {
    compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
    current-speed = &amp;lt;115200&amp;gt;;
    status = &amp;quot;okay&amp;quot;;
    hw-flow-control;

    pinctrl-0 = &amp;lt;&amp;amp;my_uart1_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;my_uart1_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


&amp;amp;pinctrl {

    // Communication uart0
	my_uart0_default: my_uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 29)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 28)&amp;gt;;
		};
	};

	my_uart0_sleep: my_uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 29)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 28)&amp;gt;;
			low-power-enable;
		};
	};
    my_uart1_default: my_uart1_default
    {
        group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 0, 1)&amp;gt;,
                &amp;lt;NRF_PSEL(UART_RX, 0, 0)&amp;gt;;
        };
    };

    my_uart1_sleep: my_uart1_sleep
    {
        group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 0, 1)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_RX, 0, 0)&amp;gt;;
            low-power-enable;
        };
    };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it works as expected now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log not shown in RTT either Uart in custom pcb of 9160</title><link>https://devzone.nordicsemi.com/thread/522294?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 18:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c18a4f9d-8980-4e33-b416-9bfe187d50c0</guid><dc:creator>Rathod Anil</dc:creator><description>&lt;p&gt;Thanks for the Reply Hakon,&lt;/p&gt;
&lt;p&gt;1) I want to see NRF log into RTT in my cutom pcb? So, I have added config macros for RTT log in prj.conf file which I have mention earlier. I have alredy tried but I can&amp;#39;t able to see the log over RTT viewer. So, How I can&amp;nbsp;see RTT log on my PCB?&lt;/p&gt;
&lt;p&gt;2) Another option to saw&amp;nbsp;log using printk, printk default used Uart0 pin ( Tx-&amp;gt;29 &amp;amp; Rx-&amp;gt;28 ). So, If I add my custom &lt;span&gt;cellular_telemetric_devise.overlay file for change&amp;nbsp;&lt;/span&gt;Uart0 default pin to my custom pcb debug log pin(Tx-&amp;gt; 1 &amp;amp; Rx-&amp;gt; 0). Is it possible to saw printk log on that&amp;nbsp; Pin number 1 and 0?.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Find attached below,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7120.zephyr.dts"&gt;devzone.nordicsemi.com/.../7120.zephyr.dts&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3010_2E00_pm_2E00_config"&gt;devzone.nordicsemi.com/.../3010_2E00_pm_2E00_config&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log not shown in RTT either Uart in custom pcb of 9160</title><link>https://devzone.nordicsemi.com/thread/522266?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 15:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360de1e8-81aa-48cc-91de-c288aebdc2b6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;In GNSS example :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All pins have been configured as non-secure&lt;br /&gt;[1;34mBooting TF-M v2.1.1-ncs1[0m&lt;br /&gt;[1;34m[Sec Thread] Secure image initializing![0m&lt;br /&gt;TF-M Float ABI: Hard&lt;br /&gt;Lazy stacking enabled&lt;/p&gt;
&lt;p&gt;In at_monitor&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;All pins have been configured as non-secure&lt;br /&gt;[1;34mBooting TF-M v2.1.1-ncs1[0m&lt;br /&gt;[1;34m[Sec Thread] Secure image initializing![0m&lt;br /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;These are not the&amp;nbsp;application log output, but rather the&amp;nbsp;TFM log.&lt;/p&gt;
&lt;p&gt;Are you certain that you have checked the correct output?&lt;/p&gt;
&lt;p&gt;To disable TFM logging, you can set &amp;quot;CONFIG_TFM_LOG_LEVEL_SILENCE=y&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you share your build/app-name/zephyr/zephyr.dts and .config file?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>