Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial Information is incomplete and misleading #964

Open
KurtE opened this issue Jan 31, 2024 · 1 comment
Open

Serial Information is incomplete and misleading #964

KurtE opened this issue Jan 31, 2024 · 1 comment
Labels

Comments

@KurtE
Copy link

KurtE commented Jan 31, 2024

https://www.arduino.cc/reference/en/language/functions/communication/serial/

image

Particularly the Arduino GIGA. As for example you say Serial1 19(RX1) 18(TX1)
When actually the RX1, and TX1 pins are used on the Serial2 object... And you don't mention anything about Serial4.
From your cheat sheet you see:
https://docs.arduino.cc/tutorials/giga-r1-wifi/cheat-sheet/#serialuart-pins

Serial.begin(9600); //initialize serial communication over USB
Serial1.begin(9600); //initialize serial communication on RX0/TX0
Serial2.begin(9600); //initialize serial communication on RX1/TX1
Serial3.begin(9600); //initialize serial communication on RX2/TX2
Serial4.begin(9600); //initialize serial communication on RX3/TX3

Not sure if you have same issue with DUE?

Also there are issues with other boards that have native USB:

Leonardo, The Serial object is native USB, and Serial1 object is pins 0, 1.

UNO R4
Serial is USB
Serial1 is on Pins (0, 1)

WIFI: 2 other Serial objects talk to ESP32 (one for USB to Serial, the other for WIFI and BT)

On both of them you can create another Serial object on pins 18, 19)
On Wifi: Serial3 is logically defined as UART4 which is not implemented, but you sketch can
define the object:

UART _UART4_(18, 19)

Likewise MINIMA you can define Serial2 with the UART2 object.

There are probably other issues.

@karlsoderby
Copy link
Collaborator

Hey @KurtE , there are definitely some inaccuracies to be updated in the table inside on the page you linked. Legacy boards such as the UNO R3 (AVR) share the 0 & 1 pins with the USB serial port, but for most new boards with native USB this is not the case.

We will try update this in the near future, thanks a lot for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants