Skip to main content
Visitor II
February 5, 2025
Question

SPI DMA on STM32L562

  • February 5, 2025
  • 1 reply
  • 511 views

Hi everyone,

I'm working with the STM32L562 microcontroller and need to set up communication with the ADS8684 using SPI DMA. I am using SPI2, with the following pin configuration:

  • PC1 for MOSI
  • PC2 for MISO
  • PA9 for SCLK
  • PB12 for NSS

Could anyone guide me on how to implement SPI DMA to communicate with the ADS8684 efficiently? Any example code or advice would be greatly appreciated!

Thanks in advance!

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    February 5, 2025

    Hello @NithinD and welcome to the community;

     

    To start with SPI, I recommend you to look to some SPI_DMA examples may help you:

    SPI_FullDuplex_ComDMA_Master

    SPI_FullDuplex_ComDMA_Slave

    Getting started with SPI

     

    I hope these resources help you.

    Thank you.

    Kaouthar