SERIAL_8O1 causing issues with the Nano 33 BLE

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.

One works with 1, the other option with 0. If the other station does not expect a parity bit, and the transmitted parity bit has not the stop bit level, then the transmission is aborted with an error.

Simple solution: use 8N1 (for NO parity).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.