AnsweredAssumed Answered

STM32F103C8T6 SPI DMA wrong bytes position

Question asked by nghiem.thu on Jan 27, 2015
Latest reply on Jan 29, 2015 by nghiem.thu
My STM32f103C8T6 works as a slave. The SPI DMA worked fine if I put the NSS pin of the slave to the ground or set the pins config to software. But if I put the NSS pin of the slave to the gpio pin of the master, the slave received bytes in wrong position. Those received bytes are correct but in wrong position.

fx Master transmits bytes 1, 2, 3, 4, 5 and slave received maybe 3, 1, 2, 4, 5.

Had anyone had been dealing with this problem? And how can I reset DMA when received wrong data? Thanks!

Outcomes