- Edited
I am developing firmware on a Arduino Nano 33 on Windows 10. It is for an upcoming project with a custom board based on the nRF52840 powered ublox NINA-B306. Since this board will not have a UART interface but I would still like to use the Zephyr logging, I thought logging through USB serial port might be a good idea.
I watched “Zephyr 101 - Application Logging and Log Backends” which gave me hope to get tis to work but I continue to fail.
- I can printk() to UART using the “Hello World” example.
- I can extend the example by enabling logging and LOG_XXX() to UART.
- I can printk() to the USB serial port using the “Console over CDC ACM UART” example.
- Extending the example by enabling logging with “CONFIG_LOG=y” makes the serial port (and the device as a whole) not being recognised anymore by my computer. When trying around I have also been in the situation where the device was recognised but failed to install properly.
The video suggests this should be possible and makes it look very easy to redirect the console output to the USB serial port by changing the chosen node in the device tree. Am I missing some important concepts or configurations? Can it be a problem on the computer side of the setup? In case logging can be redirected to the USB serial port, what information can I supply to help figure out where I am stuck?