RobertoBenjami / stm32_graphics_display_drivers

STM32 LCD drivers (currently: spi(dma), gpio, fsmc(dma), st7735, st7783, ili9325, ili9328, ili9341, ili9486, ili9488, hx8347g)
543 stars 109 forks source link

ILI9341 3.2inch TFT with XPT2046 Problem #28

Closed Ex1a closed 2 years ago

Ex1a commented 3 years ago

Hi Roberto! I use STM32F103C8T6 and ILI9341 display(SPI) with XPT2046, I tested that all functions can work except Display char function, I cannot display any char at the display, and the Char Test in appLcdSpeedTest is also doesn't work, it just display the black screen.

I tried to change the SPI Baud Rate but it just can control the LCD speed.

Can you tell me how to solve this problem?

Thank you!!

RobertoBenjami commented 3 years ago

Is there a font(s) in the project?

Ex1a commented 3 years ago

Yes, I checked it has font.c and font.h.

Here is my project link: https://drive.google.com/drive/folders/1hCQ0F3AZuFr-VJFC6rHmfvMMyHOMDWBu?usp=sharing

Thank you!!

RobertoBenjami commented 3 years ago

If you delete lines 530..534 (ili9341_DravBitmap) in the ili9341.c file, you will not be able to write characters to the screen (and a HardFault error will occur because the uninitialized pointer points to a non-existent address).

Ex1a commented 3 years ago

Oh no, I forgot to tell you, sorry... 564546546

If I run this code, it will give an error. Thank you!!

RobertoBenjami commented 2 years ago

"bmp.h" file is missing from the LCD folder. Put it in.

Ex1a commented 2 years ago

Thank you very much!!