2015-01-27 01:25 AM
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! #stm32f1 #nss-spi-dma2015-01-27 05:03 PM
I guess you'd look very carefully at the code, and review and trap the condition on a logic analyzer. If you know what the signals are doing it might be more apparent what the real issue is.
2015-01-27 10:55 PM
My bad it was the cable. After replacing it with another, it's now working fine. Thank you for your help!
2015-01-28 11:12 PM