Closed Sandvoxel closed 7 months ago
Check with a better terminal emulator. When I run your sketch and print it to HTerm I get the characters exactly as you describe
My mistake this was caused by the ftdi chip being in Xon Xoff mode causing the missing bytes
Title: Bytes Skipped During Serial Transmission with ATtiny3227 on Custom Board
Environment:
Description: I've encountered an issue where
Serial.write()
appears to skip some bytes during transmission on a custom board utilizing an ATtiny3227 microcontroller. This issue was observed when transmitting a specific set of bytes via serial communication at a baud rate of 115200. Despite the expectation that all bytes are sent sequentially without omission, some bytes seem to be missing from the output.Steps to Reproduce:
Serial.begin(115200);
.Serial.write()
inside thesetup()
function without any loop.Expected Result: All bytes in the array are transmitted correctly and can be seen on the receiving end in their entirety.
Actual Result: Some bytes appear to be skipped in the transmitted sequence. The expected output was
[1, 1, 17, 77, 83, 53, 54, 49, 49, 32, 102, 111, 117, 110, 100, 46, 10, 211, 91, 0]
but the observed output was[1, 1, 77, 83, 53, 54, 49, 49, 32, 102, 111, 117, 110, 100, 46, 10, 211, 91, 0]
indicating that the byte17 (0x11)
is missing from the sequence. This seems to always be the case and 17 (0x11) is always left out no matter where it is in the array.Example Code:
Additional Information: