cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f103 SPI DMA both master and slave implementation

838445810
Associate II
Posted on July 01, 2014 at 19:03

 

 

The original post was too long to process during our migration. Please click on the attachment to read the original post.
1 REPLY 1
838445810
Associate II
Posted on July 03, 2014 at 03:23

hi,

The configuration is fine.

The point is enable both dma rx and tx.And the master needs to do the PTX(primary transition) providing the clk meanwhile the slave have data avalible in buffer.

Now I have another issue.

The length of message on both side is dynamic. If the length of PTX is different. The receive data would be cut or having a tail like the following case:

master PTX: ABCDEFG

slave PTX: 123

result: 

master receive:1233333

slave receive: ABCDEFG

Any input would be help. Many thanks.