-
-
Notifications
You must be signed in to change notification settings - Fork 729
Open
Description
Hi there
I have a similar issue to #597, but not at the start of my program.
In my code, there is a function which looks like this:
void SlaveWaterCOM::send() {
digitalWrite(2, HIGH);
Serial1.write(outbuffer.dataarray, 28);
Serial1.flush();
digitalWrite(2, LOW);
}
The function communicates via the Serial1 over a MAX3075, and therefore it needs an enablepin for the driver.
In my program, this is the only point I use the Serial1.write or the Serial1.flush command.
Sadly, the program sometimes hangs at the Serial. Flush() command.
I tracked the issue down to the Sercom->USART.INTFLAG.bit.TXC flag, which seems to never be written.
Has anyone a clue why this could be?
Metadata
Metadata
Assignees
Labels
No labels