Arduino IDE Version: 2.2.1
CLI Version: 0.34.0
Windows 10
So I am using the Serial1 port to interface with an external device and need a SERIAL_8O1 configuration to communicate with said device.
I stripped the code to just be:
void setup() {
Serial1.begin(19200, SERIAL_8O1);
}
void loop() {
Serial1.write(1);
}
This successfully uploaded, but when it finishes uploading, the IDE pops up an error message saying unrecognizable device on the com port. Also it doesn't write anything to the Serial1 TX pin or do anything as the COM port disappears and is unable to be selected afterward.
But if I remove SERIAL_8O1 - then it uploads fine and I can see with my oscilloscope that the TX pin is writing 1 to the Serial1 port.
Oddly enough - if I change SERIAL_8O1 to SERIAL_8E1 - then it works just fine no problems.
Curious if anyone has experienced this or know what is causing this issue? Thanks.