Skip to main content
Associate III
May 6, 2025
Solved

spi clk issue

  • May 6, 2025
  • 1 reply
  • 308 views

hi im using stm32g474vet6 mcu , im using spi in dma mode of both tx and rx and made dma in circular mode.

what happens means when i start a first tx or rx itself spi clk is coming continuously. what to do , it is due to circular mode.

if (send_spi_cmd == 1)

{

send_spi_cmd = 0;

HAL_SPI_TransmitReceive_DMA(&hspi3, ADS_TX_NULL, ads_rx_buff, 1);

}

 

if u see this code im just enabling in debug mode one time onlym the spi clk starts generating continuously.

 

what to do for this this spi clk should generate during bus activity only right.

 

can someone suggest it is due to circular mode or what

 

Best answer by TDK

Yes, it's due to circular mode. In circular mode, DMA will continuously send out new data.

1 reply

TDK
TDKBest answer
Super User
May 6, 2025

Yes, it's due to circular mode. In circular mode, DMA will continuously send out new data.

"If you feel a post has answered your question, please click ""Accept as Solution""."