2024-12-04 04:52 AM - last edited on 2024-12-09 07:12 AM by SofLit
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?
2024-12-12 05:23 AM
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
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.