Blocking printk #nrf52840 #usb


forum.contas@...
 

Hi to everyone:

First post.

I've a simple Zephyr RTOS program where I use USB CDC ACM to see the output of the console and also the printk output.

Everything works fine, if I connect a terminal program to see the output.

If I do not connect a terminal program at start up (power on) the thread that has the printk just blocks. All other threads continue to run fine.

If after a while I connect the terminal program I can see some buffered output, and work resumes ok.

If I wait to much the thread never recovers, by other words I get no output and it seems that the thread is hanged and non functional.

Any idea how to make the USB output non blockcable or just overrun any output buffer?