2019-04-10 02:26 AM
I have inherited a wadge of working SPI DMA code for a product. I want to send bytes rather than 16 bit words. In order to change the length of the SPI packets from 16 clock cycles to 8, I changed the DMA_CCR1_MSIZE & PSIZE fields in DMA1_Channel3->CCR
from 16 bits to 8bits .
Is there more to it than that?
2019-04-10 04:02 AM
The SPI block has to be set to be 8 bits too, via the DFF bit (Data format). Set to 1 for 16 bit, 0 for 8. Doh!