I am using TouchGFX 4.20.0 library and sometime getting garbled text on screen while transitioned to different screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-25 11:48 PM
I am using TouchGFX 4.20.0 library. We are storing all the Fonts and images to the external memory. During the initialization as per the selected language we are caching the respected Fonts and successfully load the fonts and able to see correct text. We also cache all the images upfront. But while our display module is receiving large number of CAN messages on the CAN task sometimes we observed the few texts on the screen becomes garbled. The issue comes only for text we did not see any issue while drawing the images. As we cache both the fonts and images upfront during the initialization though we are seeing the issue with text(fonts).
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-26 12:50 AM
To address the issue of garbled text in your TouchGFX application:
- Check for memory corruption or overflows in font and text buffers.
- Review your CAN message handling code for memory leaks or overflows.
- Ensure robust resource caching and concurrent access handling.
- Verify synchronization between tasks if your application is multi-threaded.
- Monitor memory fragmentation in external memory usage.
- Implement error logging and debugging mechanisms.
- Consider updating to the latest TouchGFX version.
- Use memory profiling tools to analyze memory usage.
- Be aware of hardware limitations that may affect text rendering.
- Test and simulate the issue in a controlled environment.
- Seek assistance from the TouchGFX community or support resources if needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-13 5:57 AM
Hello @Community member​,
Could you provide a picture/screenshot of this problem please ?
Thanks,
/Yoann
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-21 3:21 AM
Hi, we have found the root cause of this issue. It was regarding the common memory operation used by both firmware upgrade process and Touchgfx process. As we are using unmapped fonts storing it in external memory the data reader used by touchgfx task perform memory read operation to get font data at the same time firmware upgrade task use memory write operation. To resolved this issue we implement Mutex to avoid multiple task using same utility.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-29 3:55 AM
Hi Ashah
Nice. Do you think we should add something in the documentation?
Regs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-26 12:50 AM
To address the issue of garbled text in your TouchGFX application:
- Check for memory corruption or overflows in font and text buffers.
- Review your CAN message handling code for memory leaks or overflows.
- Ensure robust resource caching and concurrent access handling.
- Verify synchronization between tasks if your application is multi-threaded.
- Monitor memory fragmentation in external memory usage.
- Implement error logging and debugging mechanisms.
- Consider updating to the latest TouchGFX version.
- Use memory profiling tools to analyze memory usage.
- Be aware of hardware limitations that may affect text rendering.
- Test and simulate the issue in a controlled environment.
- Seek assistance from the TouchGFX community or support resources if needed.
