TouchFX Zephyr Integration Font Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-11 10:24 AM - edited ‎2024-10-12 12:25 PM
Hi,
I am working on integrating TouchGFX into Zephyr and have made some progress. However, I am currently facing an issue where the text appears scattered and displayed strangely.
I have enabled DMA2D, and the font data is stored in external QSPI flash and loaded into external internal SRAM. My board is the STM32H750B-DK.
Any help or tips would be greatly appreciated. Could you possibly guess the reason by looking at the image? The texts are displayed better after I press the reset button following the initial flash
Solved! Go to Solution.
- Labels:
-
DMA2D (ChromArt)
-
LCD-LTDC
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-15 9:54 AM
Try disable DCACHE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-11 10:53 AM
Based on your font size place it into internal RAM not ext SDRAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-11 11:04 AM - edited ‎2024-10-11 11:07 AM
Hi MM..1. Thanks for the answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-11 11:10 AM
RAM AT FLASH is waste of ... if FLASH is internal FLASH.
How size is this section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-11 11:20 AM
_VMA_FontFlashSection_End - _VMA_FontFlashSection_Start = 1504 Bytes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-11 11:26 AM
Ok small font then for testing store it in normal internal flash. As described in other thread memory for fonts must be byte addressable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-11 1:44 PM
Thank you again for your response.
The FLASH in question is the QSPI flash. For clarification, the location where the FontFlashSection is flashed is not related to the solution for the problem I am experiencing, correct? Ultimately, it will be loaded into internal RAM. I load it into SRAM1, which is byte-addressable.
Another question: What are TouchGFX_ScratchbufferA and TouchGFX_ScratchbufferB, and where should they be placed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-12 1:52 AM
I see this scratch first time , but maybe for special for example QRcode require it...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 6:57 AM
Hello @karsparskambala ,
It seems @MM..1 already helped you quite a bit.
Indeed, the ScratchBuffer are used for QR code : support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_q_r_code#setbuffers
Can you share your font configuration from within TouchGFX Designer :
Can you try other font size.
This previous post seems to have had a similar issue.
Regards,
Software engineer at ST (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 7:27 AM
Thank you very much for the answers
Hi Gaetan,
This is the text config:
I have tried different font sizes (and a different font from Verdana: Times New Roman). Still the same.
