Serial Port device names

Hi @wx4cb

I spent some more time this afternoon, and here are my observations:

  1. You are correct, and I can’t explain it, but now I am in fact getting output from the Serial object on the serial monitor! All I can think of to explain that I didn’t see this before (but do see it now), is that I’ve tried so many things that I just didn’t try the Serial object after I installed the new library. But here’s a n image of the code I was running…and the output I got.

  1. I did install Cutecom and was able to see the output there as well–so I was likely just doing it wrong the other day when I tried to look at the /dev/ttyACM0 file from Linux. We’ll chalk that one up to an error on my part.

  2. I am still getting framing errors on Serial1 though, running the code I posted above. As you can see I did flush the serial buffer(s) each time through the loop, just to be sure. There were no framing errors seen on Serial2, but there still were errors on Serial1. Also, for whatever reason, the Saleae UART decoder seems to give me incorrect ASCII characters for the output on both the Serial1 Tx and the Serial Tx pins. And I connected the LA probes to very short jumpers attached directly to the Tx pins themselves. The Serial1 framing errors are seen on virtually every data packet too by the way, just as I saw it before.

  1. Speaking of incorrect UART character decoding, I’m getting that on the Serial2 port as well…and I can’t explain that either. I’m using the same Saleae LA and software that I have been using this whole time, and I’ve gotten it to produce “normal” character output on several other occasions–besides the previously reported framing errors of course. I’m seeing two decoded values on Serial2, as seen in the two images that follow. Very strange. You’ll note that the one value reported here (‘24’) seems to be the same as that decoded on the Serial1 port (sans framing errors).

To @ansonhe97: Can you reproduce any of the errors I’m still seeing here? Are you testing the individual UART ports on the SAMD21 chip, and if so, are you using a logic analyzer?

TB

1 Like