Skip to main content
KewlKoder
Visitor II
May 24, 2022
Question

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

  • May 24, 2022
  • 0 replies
  • 515 views

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?

This topic has been closed for replies.