i2s bit-errors
Posted: Tue Jan 21, 2025 7:30 pm
I'm writing tests for my i2s abstraction, and have some tests that try to send a few MB of data from one ESP32S3 to another. Somehow, I'm seeing bit-errors from time to time. For example:
I have had similar errors with two ESP32s (not S3).
This specific error happened after 40KB of streaming, but it can happen faster.
The sample-rate doesn't seem to have any impact. The error happened with ~1000 samples/s
I'm currently using ESP-IDF 5.3.1.
Any ideas what could be happening here?
Code: Select all
Sent: ... 0xcc, 0xcd, 0xce, 0xcf, 0x2a, 0x5a, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0x2a, 0x5b, 0xda, 0xdb, 0xde, 0xdd, 0xde, 0xdf ...
Received: ... 0xcc, 0xcd, 0xce, 0xcf, 0x2a, 0x5a, 0xd2, 0x53, 0xde, 0xd5, 0xd6, 0xd7, 0x2a, 0x5b, 0xda, 0x5b, 0xfe, 0xcd, 0xde, 0xdf ...
^ ^ ^
This specific error happened after 40KB of streaming, but it can happen faster.
The sample-rate doesn't seem to have any impact. The error happened with ~1000 samples/s
I'm currently using ESP-IDF 5.3.1.
Any ideas what could be happening here?