nRF Connect SDK v1.7.0 printk()

Hi,

I'm working with a nRF9160 and nRF Connect SDK v1.7.0.

It looks like printk() is not outputting to UART, it previously was working when I was using nRF Connect SDK v1.6.1.

Could you let me know what I need to enable in my proj.conf file to allow for printk() to output to UART?

Thank you

Parents
  • Could you let me know what I need to enable in my proj.conf file to allow for printk() to output to UART?

    You don't need to add anything to the prj.conf in to make the printk output on UART, it should be set up by default. I just tested the hello_world sample (which has an empty prj.conf) with NCS v1.7.0 and the board nrf9160dk_nrf9160_ns, and I was able to see the printk log.

    Could you test the hello world sample with you 91 DK and check if you see the serial log in a terminal?

    Best regards,

    Simon

  • Hi Simon,

    I tried the hello_world sample found in zephyr>samples with NCS v1.7.0 and board nrf9160dk_nrf9160_ns on my development board nRF9160DK and that worked.

    I have an overlay file that I use to configure pins on a custom board. It looks like for NCS v1.6.1, the overlay file should be named "nrf9160dk_nrf9160ns.overlay" and in NCS v1.7.0 there's an extra underscore in the file name "nrf9160dk_nrf9160_ns.overlay".

     

    Once I renamed the overlay file and reassigned the pins for UART0 for the nRF9160 the DK so that it doesn't interfere with the nRF9160 on my custom board, printk() started to work.

    Thank you for your help.

  • Can youy say the procedure to print in nRF5340 board i want to see the flow and run AOA &AOD concept

Reply Children
Related