Question about wrong behavior at TouchGFX
- February 8, 2021
- 3 replies
- 7716 views
Hi st community members,
I'm having trouble when I'm porting DSI display and also integrating it into TouchGFX framework. Please let me know if you can point me out some clues about this.
1. First, I started to do porting the DSI display(24bit color), by just setting a framebuffer connected to a buffer in internal SRAM(global array). It was finally succeeded as below, the content is RGB pattern what I generated by couple of for loops to fill the framebuffers.
In this case, I didn't activated TouchGFX(MX_TouchGFX_Init).
2. As I saw successful porting of my DSI display, I started to activate TouchGFX framework
- activated MX_TouchGFX_Init and relevant codes.
- setup TouchGFX configuration in ioc file of STM32CubeIDE tool
- declared framebuffer as buffer allocation and set it also as LTDC framebuffer, by externing the array in main.c file
But what I see in this case is, something wrong.
- My display doesn't show the buffer correctly.
- It seems like it is something stretched than it's original size.
- It seems like one black(or empty) line is inserted every line after one red line.
Is there anyone who has this kind of experience before?
I don't really know where to start my debugging in this kind of situation.
For your information, let me add my relevant configuration as below.
<TouchGFX configuration in ioc file>
<MX_LTDC_INIT() function in main.c file>
<TouchGFXGeneratedHAL.cpp file - for buffer declaration point>
Thanks in advance.