cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L45 CubeIDE: SPI DMA not transmitting/receiving data, while the regular SPI is working perfect.

KewlKoder
Associate

I am trying to read IMU sensor data using SPI. I have generated the code and I could verify that I am able to read SPI data while using the function HAL_SPI_TransmitReceive. Later, when I tried using the HAL_SPI_TransmitReceive_DMA function with the same Rx and Tx buffers, I am unable to see any signals on the SCK, MISO, MOSI lines. I have configured the DMA for TX and RX with high priority, Normal Mode, Data width as byte. Can you please give me hints on what to check for?

0 REPLIES 0