cancel
Showing results for 
Search instead for 
Did you mean: 

SPI+GPDMA Configuration

OrionJ
Associate II

 

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);

 

1 REPLY 1
KDJEM.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.