I am trying to use the Raspberry Pi 4 model B to program the Lattice ICE40 FPGA chip via SPI. It requires continuous clock signal throughout the whole transmission of the bitfile, which is easily bigger than 1Mb.
I am using the spidev library and thanks to the following posts:
SPI transfer fails with buffer size greater than 4096
How to transfer large amount of data (100Kbytes) over SPI?
I was able to configure the buffer size to a bigger number. However even after this, the transmission is still split after 65536 bytes no matter the buffer size setting in /boot/cmdline.txt
Where does this limitation come from? Can it be bypassed?