This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zephyr console configuration

Dear Nordic,

how to set UART/USB console output to be non-blocking? 
We use printk() to output some debug info to USB console. When the USB isn't connected, the program stalls. How to configure console output to be non-blocking?
Parents
  • When the USB isn't connected

    What USB port are you talking about?

    I assume it's number 1, since you're talking about printk (it sends the data to UART0->interface MCU->USB->Computer). However, if you disconnect that, the DK won't be powered anymore. Are you powering it in another way? Could you explain your setup in more detail, and how to reproduce it?

    Best regards,

    Simon

Reply
  • When the USB isn't connected

    What USB port are you talking about?

    I assume it's number 1, since you're talking about printk (it sends the data to UART0->interface MCU->USB->Computer). However, if you disconnect that, the DK won't be powered anymore. Are you powering it in another way? Could you explain your setup in more detail, and how to reproduce it?

    Best regards,

    Simon

Children
Related