Skip to main content
gcaif
Associate II
September 9, 2019
Question

spi with dma can`t work in stm32H7

  • September 9, 2019
  • 3 replies
  • 1024 views

I use spi without dma can transmit and receive data. but I use spi with dma can`t transmit and receive data! my chip is stm32h743ii series!

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
September 9, 2019

Have you reviewed the examples given in CubeH7?

JW

gcaif
gcaifAuthor
Associate II
September 12, 2019

I can`t find the spi with dma examples.

Tesla DeLorean
Guru
September 9, 2019

Make sure you're using the right memory or the right buses. Check bus matrix diagrams.

Make sure the MPU is configured suitably, and you use Cache Clean/Invalidate appropriately to ensure coherency.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
gcaif
gcaifAuthor
Associate II
September 9, 2019

thank you for you respond.

the below is my configure! can you help me which sides is wrong!

0690X00000AQvN4QAL.png0690X00000AQvMzQAL.png

the ​above image is mpu set.

​and the below image is dma set.

0690X00000AQvMfQAL.png

and I use USART can tranmit and receive data is correct! so I think the cache is configure suitably.

the ram address is 0x24000000.