Skip to main content
NPatr.1
Visitor II
August 2, 2022
Question

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

  • August 2, 2022
  • 1 reply
  • 1442 views

0693W00000QMgfnQAD.png0693W00000QMgU9QAL.png0693W00000QMgceQAD.png0693W00000QMgcKQAT.png 

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

This topic has been closed for replies.

1 reply

Technical Moderator
August 3, 2022

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks