2021-11-10 02:39 AM
Hello everyone,
I encountered a problem while modifiying the STM32F746G-Discovery board.
I modified it like this:
Everytime I touch the display, I get some noises, but the touchscreen itself works completely fine. After lifting my finger off the display, the screen looks like it should.
See the video I added.
Has anyone a hint for me, what could be wrong?
Thank you very much!
2021-11-10 07:04 AM
Hi,
Something to check would be the content of the framebuffers. Are working from the TBS for the STM32F746G-Discovery available in TouchGFX Designer or did you start your project from scratch ? Are you using the single framebuffer strategy or the double framebuffer strategy ? In the TBS it is set to double buffer, with the start address for the first framebuffer set to 0xC0000000 and the start adress for the second set to 0xC003FC00. This correspond to the size of one framebuffer: Height * Width * bpp/8 = 480 * 272 * 16/8 = 3FC00. In your case it would be 800 * 480 *24/8 = 11 9400 (which is quite big 😅, so make sure you actually have space for 2 buffers).
I remember something about Write Through cached memory and the function SCB_CleanInvalidateDCache () in STM32TouchGFXGeneratedHAL.cpp causing issues. Is it your case ? If yes, either change the memory to Write Back instead, or use SCB_CleanDCache() (by over writing the functions in STM32TouchGFXHAL.cpp).
/Romain
2021-11-10 07:23 AM
Hi,
at first thank you for the quick response.
I started the project from scratch. At the moment I am using the single buffer strategy.
I'll check your tips about the the function SCB_CleanInvalidateDCache () tomorrow. I'll let you know if that worked.
2021-11-15 07:22 AM
I checked the function "SCB_CleanInvalidateDCache", it's no issue, I think. I noticed that the flickering is only happening, if the screen changes/reloads (If I touch the screen without any buttons etc, the screen looks fine). What could it be? I think the external SRAM works fine too...
2023-02-23 09:17 AM
would you be able to share the modifed driver files you used for the FT5446? I'm using the same chip on a design for the STM32H743 and having problems.
Thanks!!