SPI slave design flaw
Posted: Sun Dec 30, 2018 10:09 am
In the online documentation of the ESP32 I found a warning concerning the use of the SPI interface as slave:
Is there any way to circumvent this problem? e.g. by reading byte by byte?
I am trying to use the SPI in slave mode because I need to connect to another device which is operating as master. This device is sending data of arbitrary lenght. So probably I will have a problem with the above mentioned flaw.Warning: Due to a design peculiarity in the ESP32, if the amount of bytes sent by the master or the length of the transmission queues in the slave driver, in bytes, is not both larger than eight and dividable by four, the SPI hardware can fail to write the last one to seven bytes to the receive buffer.
Is there any way to circumvent this problem? e.g. by reading byte by byte?