k_sleep() and printk() are not working on nrf54L15 dk

Hi there,

I am following  nRF Connect SDK Fundamentals and it looks like that both k_sleep() and printk() are not working.

GPIO is working but I am not sure why these two functions do not work.

Regarding printk(), I can see that CONFIG_SERIAL/CONFIG_CONSOL/CONFIG_UART_CONSO are all equal to y. So I assume nothing is needed to configurate.

Regarding k_sleep(), i have no idea what to be checked.

Could you give some hints to me so I could be able to make them work?

Thanks a lot!

Parents Reply
  • Hi,

    Maybe it's something wrong with your DK, but if you open the \zephyr\samples\hello_world example, and replace main.c with

    #include <stdio.h>
    #include <zephyr/kernel.h>
    
    static uint32_t counter;
    
    int main(void)
    {
    	printf("Hello World! %s\n", CONFIG_BOARD_TARGET);
    
    	while(1)
    	{
    		k_msleep(1000);
    		counter++;
    		printf("Hello World! %s %d\n", CONFIG_BOARD_TARGET, counter);
    		if(counter==10)
    			return 0;
    	}
    
    	return 0;
    }
    

    Don't you get simply something like this, with 1second delay between lines:

    Kenneth

Children
Related