Open jmwright opened 5 years ago
This ended up being a misunderstanding on my part on what uart-usb was meant for. This is a quote by @nkrkv from the forum:
The uart-usb node represents a USB serial on the boards having a dedicated CDC interface (like Leonardo or Micro). For Uno and Nano the interface is shared with UART #0. So, if you would use uart-0 instead of uart-usb, all should work fine for you.
I tried using uart-0 and everything worked as intended.
@nkrkv I see that you've already changed the tag from triage to s:stdlib, so I won't close this issue. Thanks for the help. I marked the forum thread as resolved.
Yes, thank you. I’m pretty sure others can be confused too. The uart-usb
node should fall back to UART #0 if required, or at least provide a clear error message. Let’s keep the issue open to fix it eventually.
This started as a discussion on the forum here.
Environment
What I'm Trying to Do
I'm trying to create a patch that passes string data over the USB port from an Arduino Uno to a PC via the USB-serial bridge.
Steps to reproduce
Expected behavior
I expect compilation to succeed.
Actual behavior
I get a compilation error.
Console output
A compilation error is shown in the Compiler pane. Compiler Pane Output:
Generated Arduino Code From Patch Above:
How to fix
I don't know.