<?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>NRF Printk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123698/nrf-printk</link><description>I want to use the UART20 serial port to map to other pins for easier PCB layout, but when I use the NRF54L15， 
 overlay config 
 my main code but no printk or printf What should I do ? Or, in other words, only the default P1.04 can be used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Oct 2025 11:20:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123698/nrf-printk" /><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/552142?ContentTypeID=1</link><pubDate>Wed, 22 Oct 2025 11:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbe57178-e21b-47e2-b190-ea2c93b8d660</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;But I think maybe the issue was with your overlay configuration.&lt;/p&gt;
&lt;p&gt;The initial ay you tried was correct, but could you add the following to your overlay file?&lt;/p&gt;
&lt;p&gt;/ {&lt;br /&gt; chosen {&lt;br /&gt; zephyr,console = &amp;amp;uart20;&lt;br /&gt; zephyr,uart-mcumgr = &amp;amp;uart20; /* optional */&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;In your overlay file, you are just defining the pinctrl, etc, but I think maybe without the &lt;strong&gt;chosen { zephyr,console = &amp;amp;uart20; }&lt;/strong&gt; line, printk() may go to another backend (often RTT), which then looks like “no output.”&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547737?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 10:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f342028c-9240-40a9-a62f-046bcb78e72b</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;&lt;span&gt;Yes, my main function has nothing, only printk still hasn&amp;#39;t output, but commenting out the above 2.4g prj.conf is enough. I think this problem can be reproduced. I don&amp;#39;t understand why this happened&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547727?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 09:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55d45486-2ca6-406c-ba7b-d64afb6bc5fb</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i am a bit confused with what your issue is.&lt;/p&gt;
&lt;p&gt;Could you tell me a bit more clearly as to what your current problem is?&lt;/p&gt;
&lt;p&gt;Is it that you are not observing any output even though you are using printk statements?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547584?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 09:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edf18586-6829-496d-89c2-56ecd34d4ccd</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;I found the problem, it&amp;#39;s really strange. I just wanted to engineer code that can use 2.4G and BLE, but surprisingly&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# CONFIG_NCS_SAMPLES_DEFAULTS=y
# CONFIG_DK_LIBRARY=y

# CONFIG_LOG=y
# CONFIG_LOG_DEFAULT_LEVEL=3
# CONFIG_LOG_MODE_DEFERRED=y

# # ESB
# CONFIG_ESB=y

# # RADIO DEBUGGING/PERF MEASUREMENT
# CONFIG_PPI_TRACE=y

# # MULTI-ROLE
# CONFIG_MPSL=y
# CONFIG_BT_UNINIT_MPSL_ON_DISABLE=y

# # CONFIG_MPSL_TIMESLOT_SESSION_COUNT=2

# # CONFIG_SHARED_INTERRUPTS=y # this one seems no good
# CONFIG_DYNAMIC_INTERRUPTS=y
# CONFIG_DYNAMIC_DIRECT_INTERRUPTS=y

# CONFIG_ESB_DYNAMIC_INTERRUPTS=y
# CONFIG_MPSL_DYNAMIC_INTERRUPTS=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I just need to annotate here, why is this happening????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547580?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 08:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a2c6f57-ca12-47e1-8f5c-096903ef9b27</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;&lt;br /&gt;Hello, I have encountered a very strange problem now. My initialization has blocked all my code, only Printk but no printing. Is it possible that there is a problem with my project?? This is my overlay&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
// 根目录
/ {	
 	zephyr,user {
		
	// ADC 通道
	// io-channels 			= &amp;lt;&amp;amp;adc 1&amp;gt;;
	// 鼠标按键 : 	左 		右 		中 		FB(前进) 	BB(后退)
	mouse_key_left-gpios 		= &amp;lt;&amp;amp;gpio1 13 ( GPIO_ACTIVE_LOW )&amp;gt;;
	mouse_key_right-gpios 		= &amp;lt;&amp;amp;gpio1 9  ( GPIO_ACTIVE_LOW )&amp;gt;;
	mouse_key_center-gpios 		= &amp;lt;&amp;amp;gpio1 8  ( GPIO_ACTIVE_LOW )&amp;gt;;
	mouse_key_fb-gpios 			= &amp;lt;&amp;amp;gpio0 4  ( GPIO_ACTIVE_LOW )&amp;gt;;
	// // mouse_key_bb-gpios 	= &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_HIGH&amp;gt;;
	// // mouse_test_led-gpios 		= &amp;lt;&amp;amp;gpio2 9 GPIO_ACTIVE_HIGH &amp;gt;;
	board_led0-gpios = &amp;lt;&amp;amp;gpio2 9  	GPIO_ACTIVE_HIGH&amp;gt;;
	board_led1-gpios = &amp;lt;&amp;amp;gpio1 10  	GPIO_ACTIVE_HIGH&amp;gt;;
	board_led2-gpios = &amp;lt;&amp;amp;gpio2 7  	GPIO_ACTIVE_HIGH&amp;gt;;
	board_led3-gpios = &amp;lt;&amp;amp;gpio1 14  	GPIO_ACTIVE_HIGH&amp;gt;;

	// 编码器
	encoder_one_ea-gpios 		= &amp;lt;&amp;amp;gpio1 5 ( GPIO_ACTIVE_LOW )&amp;gt;;
	encoder_one_eb-gpios 		= &amp;lt;&amp;amp;gpio1 6  ( GPIO_ACTIVE_LOW )&amp;gt;;

	// 拨码开关 三段
	// mode_switch_24g-gpios = &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_LOW&amp;gt;;
	// mode_switch_ble-gpios = &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_LOW&amp;gt;;	
	// mode_usb_gpios 	  	  = &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_LOW&amp;gt;;	

 	};
	
};



&amp;amp;pinctrl {

	// SPI30
	paw3950_spi30_default: paw3950_spi30_default{
		group1{
			psels = &amp;lt;NRF_PSEL(SPIM_SCK,0,3)&amp;gt;,
			&amp;lt;NRF_PSEL(SPIM_MISO,0,1)&amp;gt;,
			&amp;lt;NRF_PSEL(SPIM_MOSI,0,2)&amp;gt;;
		};
	};

	paw3950_spi30_sleep:paw3950_spi30_sleep{
		group1{
			psels = &amp;lt;NRF_PSEL(SPIM_SCK,0,3)&amp;gt;,
			&amp;lt;NRF_PSEL(SPIM_MISO,0,1)&amp;gt;,
			&amp;lt;NRF_PSEL(SPIM_MOSI,0,2)&amp;gt;;
			low-power-enable;
		};
	};

	// uart
	debug_uart20_default: debug_uart20_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 1, 4)&amp;gt;;
        };
    };
	debug_uart20_sleep: debug_uart20_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 1, 4)&amp;gt;;
			low-power-enable;
        };
    };
};

mouse_debug:&amp;amp;uart20 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;debug_uart20_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;debug_uart20_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;,&amp;quot;sleep&amp;quot;;
};


// ADC
mouse_vbat_adc:&amp;amp;adc{
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;
	channel@5 {
		reg = &amp;lt;5&amp;gt;;
		zephyr,gain = &amp;quot;ADC_GAIN_1&amp;quot;;
		zephyr,reference = &amp;quot;ADC_REF_INTERNAL&amp;quot;;
		zephyr,acquisition-time = &amp;lt;ADC_ACQ_TIME_DEFAULT&amp;gt;;
		zephyr,input-positive = &amp;lt;NRF_SAADC_AIN5&amp;gt;; /* P1.12 */
		zephyr,resolution = &amp;lt;12&amp;gt;;
	};
};




/** SPI 描述 */
mouse_paw3950:&amp;amp;spi30 {
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;paw3950_spi30_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;paw3950_spi30_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)&amp;gt;;
    paw3950: mspi-device@0 {
        compatible = &amp;quot;bosch,bme280&amp;quot;;
        reg = &amp;lt;0&amp;gt;;
        spi-max-frequency = &amp;lt;1000000&amp;gt;;
		label = &amp;quot;paw3950&amp;quot;;
    };
};










&amp;amp;temp {
 status = &amp;quot;okay&amp;quot;;
};

&amp;amp;power {
 status = &amp;quot;okay&amp;quot;;
};


// 关闭

&amp;amp;button1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;button0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;button2 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;button3 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;led0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;led1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;led2 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;led3 {
    status = &amp;quot;disabled&amp;quot;;
};

// &amp;amp;spi00 {
// 	status = &amp;quot;disable&amp;quot;;
// };

// &amp;amp;nfct {
// 	status = &amp;quot;disable&amp;quot;;
// };


&amp;amp;timer20 {
 status = &amp;quot;disabled&amp;quot;;
};


// 删除
/delete-node/ &amp;amp;mx25r64;

/delete-node/ &amp;amp;{/pin-controller/pwm20_default/group1/};

// /delete-node/ &amp;amp;{/soc/peripheral@40000000/uart@c6000/a01nyub/};

/delete-node/ &amp;amp;{/pin-controller/uart20_default/group2/};


&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;my code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;

#include &amp;quot;app_task.h&amp;quot;



int main()
{
    // app_driver_init();
    // bsp_24g_init();
    while(1)
    {
        printk(&amp;quot;dasdsadsa&amp;quot;);
        // k_msleep(1000);
        // k_sleep(K_MSEC(0xFFFFFFFF));
        // app_task_schedule();
        
    }
}


&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547577?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 08:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5dc1924-cb2d-4799-8e0f-6a8f5887349a</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;No, the build folder will as usual be placed in your project folder itself, but the overlays need to be placed in a separate &amp;quot;boards&amp;quot; file in your project folder. Similar to this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1756887460025v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="LinJunXuan"] Assuming I am currently in NS&lt;br /&gt;nrf54l15dk_nrf54l15_cpuapp_ns.overlay?[/quote]
&lt;p&gt;Yes that&amp;#39;s right.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547515?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 13:59:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dbe21d4-fa10-4364-97d9-de4171884e40</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;nrf54l15dk_nrf54l15_cpuapp.overlay&amp;nbsp; &amp;nbsp;?&lt;br /&gt;&lt;br /&gt;Will the overlay built directly in the future be placed in the boards folder according to the boards we configured? Assuming I am currently in NS&lt;br /&gt;nrf54l15dk_nrf54l15_cpuapp_ns.overlay?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547505?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 13:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4bff25c-eb75-4944-b8c0-06b711214a4b</guid><dc:creator>Priyanka</dc:creator><description>[quote user="LinJunXuan"]what are the requirements for the TX setting of UART20, and whether it only needs to be the P1 port that is not used. ？[/quote]
&lt;p&gt;Yes,&amp;nbsp;UART20 TX must be mapped to an unused P1 pin.&lt;/p&gt;
[quote user="LinJunXuan"] If I encounter the problem of not being able to create an overlay and need to manually create it, what should be the naming convention?[/quote]
&lt;p&gt;You need to name it&amp;nbsp;&lt;strong&gt;nrf54l15dk\nrf54l15\cpuapp.overlay&lt;/strong&gt; and place it in a folder called &lt;strong&gt;boards&lt;/strong&gt; in you project file.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547055?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 10:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73575049-b7d5-4517-b8a9-673f183faf73</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/b8eedf90_2D00_5f6b_2D00_4f97_2D00_94ed_2D00_fe2ab75cc811.png" /&gt;Can the TX pin of this UART be set arbitrarily? Last time, I randomly set the CLK pin of SPI and found that there was no clock, but MOSI, MISO, and CS. Later, I discovered that CLK must be set on a pin with the CLK suffix to have a clock.&lt;br /&gt;So the main issue is what are the requirements for the TX setting of UART20, and whether it only needs to be the P1 port that is not used. ？&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/c3f24a6f_2D00_03e5_2D00_4f2e_2D00_9ba2_2D00_e60c80f78bbc.png" /&gt;&lt;/p&gt;
&lt;p&gt;Sometimes I want to create an Overlay, but I don&amp;#39;t know why VSCode doesn&amp;#39;t pop up the overlay file. I just copy the overlay that I successfully created before. If I encounter the problem of not being able to create an overlay and need to manually create it, what should be the naming convention?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/855f6f4f_2D00_2380_2D00_42a9_2D00_8903_2D00_7c7fe0d513cc.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/547043?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 09:00:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e56bb82d-33f2-44a3-967c-02e0edf5cf79</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delay. I was held up with an internal case.&lt;/p&gt;
&lt;p&gt;Could you tell me which sample you are trying so that I can try to reproduce the issue here at my end?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/545618?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 07:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df16a607-79af-4791-8a8b-c91e169e8281</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ee767c6a01b8d985ddbe519be1b66410.png" /&gt;&lt;br /&gt;&lt;span&gt;There is another issue, which is that when I am using the Bluetooth routine (which is a routine for Bluetooth practice one), the board selected &amp;#39;compact&amp;#39; without any error, but when I selected &amp;#39;Nordic Soc&amp;#39;, it reported an error, and the error that kept happening was&amp;#39; Clock &amp;#39;. I have been following Nordic&amp;#39;s AI to solve this problem, but it has not been resolved&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/545613?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 06:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaa1c521-a52c-4ddc-939d-ca7782ada3c1</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Printk</title><link>https://devzone.nordicsemi.com/thread/545607?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 06:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6865516-ec4a-4b57-b645-30525f7354bc</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you mean to say that the P1.05 that you are using the code doesn&amp;#39;t seem to get the output, but only when you use P1.04, it works?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>