I'm trying to 8192 bytes over SPI in a single transfer, but for some reason anything over 4096 bytes fails to send. How can I enable larger data transfers?
int ret;
uint8_t txn[] = { 0x00, ... };
struct spi_ioc_transfer tr = {
.tx_buf = (unsigned long)txn,
.len = (unsigned int)sizeof(txn),
.delay_usecs = 0,
.speed_hz = 10000000,
.bits_per_word = 8,
};
ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr);
if (ret < 1)
pabort("Can't send SPI message");
I'm working with the Raspberry Pi Zero W if it matters.