cancel
Showing results for 
Search instead for 
Did you mean: 

spi clk issue

Srinath_03
Associate III

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

 

1 REPLY 1
TDK
Guru

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".