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?