2025-05-06 7:28 AM
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
2025-05-06 7:39 AM
Yes, it's due to circular mode. In circular mode, DMA will continuously send out new data.