2024-12-04 04:52 AM
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?