No texts appear on the LCD with TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-14 02:12 AM
I am new to TouchGFX interface. I am trying to create GUI for the custom LCD hardware of size 240x320 communicating with ILI9341 LCD drivers. The touchgfx builds the code and runs appropriately in the simulator., but the same is not working with the hardware. screen switching with the images in it works absolutely fine but without the text.
- The MCU in use is STM32U575V.
- Touchgfx version is 4.24.1
- The images and font is placed in the internal flash as there is no space constraint for my application. ( Most of the demos or examples use external Flash for images and fonts).
- Using a custom Font for my application (default font Verdana didnt work as well)
so the settings considered are as follows
- The *.icf file image
2. the settings in Touchgfx
- With the setting to unmapped storage format in Config, the images are getting displayed on the screen and switching of the screen also works fine. (No text is displayed on the screen)
- Since the texts are not working for me. I changed the setting to mapped storage format. After this change, Usage fault is triggered. From the CPU registers., the fault is triggered as soon as the font information is being fetched to display on the screen.
If anyone would guide through resolving this. would be helpful.
Thanks,
Sneha
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
-
TouchGFX
-
TouchGFX Designer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-01 10:07 PM
Hi All.,
In my application, the usage fault trap is enabled that is triggered at divide by zero and also when the memory alignment fault is observed.
By disabling the memory fault trigger that is enabled at the usage fault. I was able to get the fonts being displayed on the screen.
This solution helped me come at a conclusion saying that memory alignment at the Font data level is not correctly working at the touchgfx library level.
The core is M33 of STM32U575V is unable to handle it accordingly. Still working on it., as disabling the fault enablers at the handler is not the right way to handle the issue.
Regards and Thanks
Sneha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-14 02:16 AM
Hello @Sneha and welcome to the community,
The first step to do is to validate the LCD driver and if you already displayed something on the LCD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-14 02:18 AM
Hi @SofLit, The LCD driver works fine... As i was able to display the images and switch the screens as designed in the touchgfx designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-14 02:28 AM
Need to explain what do you mean by " but without the text"
Show screen shot/image of the issue. Did you set it visible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-14 05:46 AM - edited ‎2024-11-14 05:51 AM
So the current setting in the project under Config tab in text is SET to unmapped storage format.
Yes., the text boxes are all set to visible.
From the touchGFX simulator i get the below image as response (considering no build issues when compiling the text/font)
The same generated code by the designer is flashed to the hardware and the result is as below
If observed., the simulated image has texts but the same is not seen on the display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-15 07:15 PM
It looks like the font glyphs are not being generated in the IntFlashSection. Please change back to Mapped Storage Format, build your project and attach your Map file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-17 11:55 PM
Hi @Michael K I have now changed the touchGFX setting to MAPPED STORAGE FORMAT and it gives a usage fault. Adding the snapshot of CPU register window and the map file in the zip.
Let me know., if any other suggestions/ settings have to be considered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-01 10:07 PM
Hi All.,
In my application, the usage fault trap is enabled that is triggered at divide by zero and also when the memory alignment fault is observed.
By disabling the memory fault trigger that is enabled at the usage fault. I was able to get the fonts being displayed on the screen.
This solution helped me come at a conclusion saying that memory alignment at the Font data level is not correctly working at the touchgfx library level.
The core is M33 of STM32U575V is unable to handle it accordingly. Still working on it., as disabling the fault enablers at the handler is not the right way to handle the issue.
Regards and Thanks
Sneha