FXCoder wrote:The language in the RM is a little challenging to read WRT the FIFO packing in the SPI controller.
I thought perhaps using DMA removes the requirement for setting TSIZE.
However, the RM does say the following which seems to suggest that TSIZE must be set regardless of packing, etc.
yes, it should work with zero TSIZE, but I think the intended use is to set it. We may also need to set the fifo threshold however.
2.10.1 Spurious DMA Rx transaction after simplex Tx traffic
ahh, I'd forgotten that one!
Before enabling DMA Rx transfer following a completed Tx simplex transfer, perform hardware reset of the SPI/I2S peripheral."
perhaps a dumb question, but what exactly do they mean by "perform hardware reset" ? If its just unset and set SPE then we already do that (as the ArduPilot wrapper code does a spiStop after each transaction)
Is there something else thats needed for a "hardware reset" of SPI ?