2025-03-08 4:36 PM - edited 2025-03-08 4:57 PM
Hi,
first time using TouchGFX and I have been going through various tutorials but cannot find one that shows how to use TouchGFX Designer with a partial TouchGFX project set of files (first screenshot) generated by CubeMX (.touchgfx.part file extension and not a .touchgfx file).
But instead of generating the 800 x 800 resolution, it generates a 32 x 32 pixel screen in the .touchgfx.part file (and opens a 32 x 32 pinxel canvas/screen also when that file is opened in TouchGFX Designer). I don't want to edit it manually just in case there are other settings in the files generated in the other folders that might be affected by this manual change.
This is the CubeMX generated file:
{
"Application": {
"Name": "Display V1",
"TouchGfxPath": "../Middlewares/ST/touchgfx",
"AvailableColorDepths": [ 16 ],
"AvailableLCDs":
{
"16": "LCD16bpp"
},
"AvailableResolutions": [
{
"Width": 32,
"Height": 32
}
],
"PostGenerateTargetCommand": "touchgfx update_project",
"Family": "STM32U5",
"SubFamily": "STM32U5F9/5G9",
"Platform": "m33",
"Toolchain": "STM32CubeIDE",
"ProjectFile": "../Display V1.ioc",
"OptionalComponentsRoot": "../Middlewares/ST/touchgfx_components",
"OptionalComponents": [
],
"AdditionalFeatures": [
]
},
"Version": "4.25.0"
}
Everything is set to 800 x 800 in the .IOC file (attached if someone could kindly check I have set everything correctly) as per the display I am using display (datasheet also attached).
1. What do I need to do to have it open the correct screen size generated by CubeMX? Or where do I change the screen size in TouchGFX Desiner (in the settings the X and Y are greyed out - non editable - as per screenshot below)?
Thank you as always :)
Rick
Solved! Go to Solution.
2025-03-08 7:02 PM
For some reason it was not saving the display size. I rebooted it and it works.
2025-03-08 7:02 PM
For some reason it was not saving the display size. I rebooted it and it works.