This seems like a silly issue, but I cannot get the UART output from the nRF9151 DK. Attached is a project that outputs via both LOG and printk() to a Segger RTT viewer without issue, but does not from UART (USB virtual via the DK). I normally use J-Link RTT but recently opened a DevZone ticket where part of the follow-up was to eliminate RTT from the project and try to reproduce the firmware fault.
The attached zip contains the whole project, I am using SDK v3.0.2. If the CONFIG_RTT_CONSOLE is set to "y" works perfectly. Change RTT to "n", CONFIG_UART_CONSOLE=y and no output. I have tried build for both with/without TFM.
# to use Segger RTT in any capacity CONFIG_USE_SEGGER_RTT=y # setup CONSOLE behavior CONFIG_CONSOLE=y CONFIG_RTT_CONSOLE=n CONFIG_UART_CONSOLE=y # setup LOG facility behavior CONFIG_LOG=y CONFIG_LOG_PRINTK=y CONFIG_LOG_MODE_IMMEDIATE=y
*** Booting nRF Connect SDK v3.0.2-89ba1294ac9b *** *** Using Zephyr OS v4.0.99-f791c49f492c *** Hello World! nrf9151dk/nrf9151/ns [00:00:00.409,759] <inf> main: LOG can say Hello World too. It is also possible to use printk... Hello world! . , Hello World! nrf9151dk/nrf9151/ns [00:00:02.410,644] <inf> main: LOG can say Hello World too. It is also possible to use printk... Hello world! *** Booting nRF Connect SDK v3.0.2-89ba1294ac9b *** *** Using Zephyr OS v4.0.99-f791c49f492c *** Hello World! nrf9151dk/nrf9151/ns [00:00:22.811,248] <inf> main: LOG can say Hello World too. It is also possible to use printk... Hello world! . , Hello World! nrf9151dk/nrf9151/ns [00:00:24.812,133] <inf> main: LOG can say Hello World too. It is also possible to use printk... Hello world! . , Hello World! nrf9151dk/nrf9151/ns [00:00:26.813,018] <inf> main: LOG can say Hello World too. It is also possible to use printk... Hello world! . , Hello World! nrf9151dk/nrf9151/ns [. , Hello World! nrf9151dk/nrf9151/ns [00:00:34.835,510] <inf> main: LOG can say Hello World too. It is also possible to use printk... Hello world!
