Skip to main content
Visitor II
December 4, 2024
Question

STM32H562RIT6 _SPI DMA

  • December 4, 2024
  • 1 reply
  • 626 views

Hi

I wrote an LCD program with the ST7789 driver using the STM32G0B0CET6 microcontroller under the SPI + DMA protocol, and the LCD worked perfectly. However, when I rewrote this program using the STM32H562RIT6 microcontroller with the same SPI + DMA protocol, the LCD did not initialize.

What could be causing this issue? Could the GPDMA settings be incorrect?

I have attached the codes in the document, including both the STM32G0 and the STM32H562 versions. Note that the backlight of the LCD is hardware-connected and does not need to be controlled by the microcontroller.

However, the STM32H562 version is not working properly. Where could the issue be?

 

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    December 12, 2024

    Hello @Farhad13651,

     

    Could you please double check the SPI configuration. Ensure that the SPI settings is correctly set to match the requirements of the ST7789 driver and the LCD.

    Maybe this discussion can help you to check some configuration.

     

    Thank you.

    Kaouthar