2020-02-10 09:43 PM
Hi,
i used stmcubemx to configure spi in dma mode for stm32h743zi. I used spi 1 as master and spi2 as slave in dma receive mode i am not able to receive data.the same dma initialization is working fine for stm32f767.
Any suggestions to be made in initialization in stmcubemx is highly appreciated.
Regards,
krishna.
2020-02-10 11:09 PM
1. Ensure that the dma buffers end up in a memory area which is accessible to DMA (i.e. not in DTCM).
Check the memory layout of your project, review chapters 2.1 System architecture and 2.3 Memory organization in the reference manual, and the user manual of your toolchain.
2. Disable caching in the MPU. See here
2020-02-12 04:32 PM
Hello,
I do not know if your problem comes from there, but I also had DMA problems which came from the fact that initialization MX_DMA_Init () was done after the initialization of the device (Cube 5.5.0)
After moving the initialization just after that of the GPIO (MX_GPIO_Init()), everything was normal.
Regards,
Jean-Louis