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 Reply
  • I'm not able to reproduce your problem. I modified the sample zephyr/samples/subsys/usb/console by adding a blinking LED. I got the USB log output in a terminal on my computer while the LED was blinking. Then I disconnected the USB, but the program didn't stall, the LED continued blinking. However, for some reason the delay between the LED toggling increased after disconnecting the USB.

    Can you test the sample and see if you get the same result:

    usb_console.zip

    Best regards,

    Simon

Children
Related