Skip to main content
Visitor II
May 4, 2025
Question

SPI+GPDMA Configuration

  • May 4, 2025
  • 1 reply
  • 347 views

 

Besides, I don't know whether this configuration of MX is correct.

OrionJ_0-1746351004149.pngOrionJ_1-1746351030780.png

 /* Initialize all configured peripherals */
 MX_GPIO_Init();
 MX_GPDMA1_Init();
 MX_SPI2_Init();
 MX_ICACHE_Init();
 MX_I2C1_Init();
 MX_RTC_Init();
 /* USER CODE BEGIN 2 */
HAL_I2C_MspInit(&hi2c1);
HAL_SPI_MspInit(&hspi2);
HAL_RTC_MspInit(&hrtc);

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    May 5, 2025

    Hello @OrionJ;

     

    The configuration depends on your requirement.

    Could you give more detail about your project context and requirement?

    May SPI_FullDuplex_ComDMA_Master example can help you. This example explains how to handle an SPI as a Master to perform a data buffer transmission/reception between two boards, using DMA.

     

    Thank you.

    Kaouthar