RTT loging

Hi, I got my nrf54L15 DK, but i can't start RTT logging. I set this configs:

CONFIG_PRINTK=y
CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_USE_SEGGER_RTT=y

CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_LOG_BACKEND_RTT=y

And this is my main:

#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>

LOG_MODULE_REGISTER(main, LOG_LEVEL_INF);

int main(void)
{
        LOG_INF("Hello World!\n");
}

I can flash my board, but when i opens RTT console (set to automaticly search for memory region and set nrf54L15 M33Cortex as device) and reset my board I can't see my mesage.
Any guidance is greatly appreciated.
Best regards, Sebastian.

Parents
  • I haven't messed with my 54l devkit yet so I just tried the below code with your config and was able to see the logging messages on the "Debug In / Trace" header on the DK. Make sure you aren't using "Debug Out".

    #include <zephyr/kernel.h>
    #include <zephyr/logging/log.h>
    
    LOG_MODULE_REGISTER(main, LOG_LEVEL_INF);
    
    int main(void)
    {
            for (;;)
            {
                    LOG_INF("Hello World! %s", CONFIG_BOARD);
                    k_sleep(K_SECONDS(1));
            }
            return 0;
    }

    Also, I usually have to connect on RTT again after each programming. It didn't used to be that way but it is now on my system.

Reply
  • I haven't messed with my 54l devkit yet so I just tried the below code with your config and was able to see the logging messages on the "Debug In / Trace" header on the DK. Make sure you aren't using "Debug Out".

    #include <zephyr/kernel.h>
    #include <zephyr/logging/log.h>
    
    LOG_MODULE_REGISTER(main, LOG_LEVEL_INF);
    
    int main(void)
    {
            for (;;)
            {
                    LOG_INF("Hello World! %s", CONFIG_BOARD);
                    k_sleep(K_SECONDS(1));
            }
            return 0;
    }

    Also, I usually have to connect on RTT again after each programming. It didn't used to be that way but it is now on my system.

Children
No Data
Related