2018-06-11 09:29 AM
hi st
I have problem using spi slave with dma
i use stm32f746 as slave to transmit data to master pc
i send for test fixed frame start with check char ''$>'' to sync timing then slave should send 12 bytes ( 1-12)
problem many times i got error that frame sent upto middle correct then fixed byte to end and in next frame slave send other frame missing from previous frame and continue with fixed byte for ever as much as master send clock
2018-06-11 04:04 PM
are you using the DMA ?
the DMA buffer must be left alone until it completes.
then you can reset data within the buffer.
2018-06-12 02:25 AM
IMPORTANT NOTICE
the bad frame start with MISO high once start communication ( once nss set low by master) which mean that slave say to master I'm not ready and that good option to make sync
normal frames start with MISO low
why and how this happen ?? what does that mean really ?