2025-08-12 2:38 AM
Hi,
I have a project derived from the demo6 from ST on the STM32U5G9J-DK1 devkit, where I want to display SVG images. The only difference is that the rounded display of the original kit has been substituted with another rounded display of the same resolution (480x480 pixels) but smaller. The PCB of the display is then different as well as the display driver chip which is driven through MIPI-DSI commands (and not using video mode of MIPI-DSI like the original demo is). I'm using latest version of TGFX 4.25.0.
All the subdemos of this demo6 project are working the same as on the original display, but not the SVG subdemo. All the .SVG images of this specific sub demo, which should animate and start bouncing on the screen, are simply not rendered at all. I only see the background image which is a .PNG file. And I can come back on the main screen as the touch display is working.
I tried to strip down this demo6 project and display a simple background .PNG image and on top of this last, some .SVG images. The background image is again displayed as it should, but none of the .SVG images.
As I've seen some other having difficulties with .SVG images I tried to change the portrait/landscape mode, without seeing any change. I tried to modify the canvas buffer size, and I didn't see any change. I checked the code inside MX_DCACHE2_Init() function and I have the two lines which were advised there.
I'm running out of ideas on the reasons why .SVG images cannot be rendered. So far, the only difference I can see is around these MIPI-DSI commands usage but since all the rest of subdemos are working as expected, I don't think that this can be related. There must be something not going well before this stage, when all the images should be rendered inside the framebuffer. But I don't understand why this is related to .SVG images rendering.
Any idea or hint are welcome.
2025-08-21 3:31 AM
@mathiasmarkussen
Thank you for these explanations and fixes. Unfortunately it doesn't solve this issue. The rendering results are the same: only the .PNG background and the circular shape are rendered.
I will send you the code privately, through the link I received.
Thank you.
2025-08-28 5:11 AM - edited 2025-08-28 5:12 AM
We have identified the issue, which is a bug in the precompiled library, and will also affect anyone using the "use larger framebuffer stride" option in TouchGFX with NeochromVG.
A fix will be included in TouchGFX 4.26, which should be available shortly.