cancel
Showing results for 
Search instead for 
Did you mean: 

Topic: - DMA in SPI using stm32l452re nucleo board. 1. currently i am using spi to transfer data from a sensor to the mcu. for enabling dma in it do i have to just enable the dma request in ".ioc file", or what changes do i need to make in the main.c?

NPatr.1
Associate

0693W00000QMgfnQAD.png0693W00000QMgU9QAL.png0693W00000QMgceQAD.png0693W00000QMgcKQAT.png 

Also we have tried DMA with SDIO using FATFS file system and we are not successful.

1 REPLY 1
Imen.D
ST Employee

Hello @NPatr.1​ and welcome to the Community :)

When DMA is used, the MX_DMA_Init shall always be called before any other HAL_***_Init (where *** is any peripheral with a HW dependency on DMA init code).

Please refer to this post for more details : MX_DMA_Init order in the main.c file generated by STM32CubeMX, How to fix?

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen