Open SergioGasquez opened 1 week ago
Ah yeah it is almost definitely this.
For the S2 the fix is trivial. You just need to change https://github.com/esp-rs/esp-hal/blob/492e35aa74d7b6dfc9d8b5cfc3e11ae6e637378f/esp-hal/src/spi/master.rs#L3459-L3479 to pass the correct lengths for the read and write side rather than the max of both.
It's also worth noting that this bug would've been swept under the rug (like it is for some of the other chips) if the pdma was being reset during construction like the Gdma currently is.
main
doesnt have any issue with this test in S2_Originally posted by @SergioGasquez in https://github.com/esp-rs/esp-hal/pull/2074#discussion_r1745182546_
See https://github.com/esp-rs/esp-hal/pull/2074#discussion_r1746719403 for more information