cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX designer 4.24.0 cannot create a new project by any samples

Chand446209
Associate II

TouchGFX designer 4.24.0 is new installed in my laptop which is Win11. I used the Clock Example to create a project, and reported an error. The log is attached.

Chand446209_0-1727140779804.png

I also created a new project by simulator. I put a button and run the simulator. It was fail. The log is attached too.

Did I miss something to install?

 

 

10 REPLIES 10
GaetanGodart
ST Employee

Hello @Chand446209 and welcome to the community! :smiling_face_with_smiling_eyes:

 

I checked the logs but did not see anything obvious.

Did you also download STM32CubeIDE and STM32CubeProgrammer?

I advise you to follow this tutorial to properly install TouchGFX : How to TouchGFX: Installing TouchGFX Designer for STM32 GUI applications 

 

I hope this helps!

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)
GaetanGodart
ST Employee

Hello @Chand446209 ,

 

Were you able to move forward on your issue?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Sorry for late response.

I uninstalled my cubeide and touchgfx and removed all the related folder in C drive. After that, install cubeide 1.16.1, touchgfx designer 4.24.0 and touchgfx generator 4.24.0 in cubeide by following your suggestion.

Finished all the steps, I created a new project in designer, put a button and run simulator. The same errors were shown.

Do you have any idea if there were any step I missed?

Thanks for you help.

Hello @Chand446209 ,

 

I have found 2 forum post regarding the same error message.
Can you try their solution and then come to back to.

https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/object-reference-not-set-to-an-instance-of-an-object-error-when/td-p/604208

https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/touchgfx-designer-crush-object-reference-not-set-to-an-instance/td-p/594423

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @GaetanGodart 

 

Thanks for you help.

I think I found the root cause. My work computer is provided by company. So my windows account does not have the administrator access. TouchGFX needs the administrator access to generate code or run simulator in Win11. But it works well in my colleague's Win10 computer which also does not have the administrator access.

Hope this information helps.

 

GaetanGodart
ST Employee

Hello @Chand446209 ,

 

I am not sure it is affecting all windows11 computer without admin rights, I think it is something deeper.

Can you try to delete the folder C:\Users\<USERNAME>\AppData\Roaming\TouchGFX-<TOUCHGFX-VERSION>  (don't forget the replace with the right values) and tell me if that changed anything?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Another thing you could try is to get the latest VC++ redistributable.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @GaetanGodart ,

 

I have tried times to uninstall and install TouchGFX. I also deleted the folder you mentioned. But there was nothing changed.

Hello @Chand446209 ,

 

Have you tried the solutions provided in the other similar threads with the same error message?

Fixed by using UTF8 in the system's settings : https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/object-reference-not-set-to-an-instance-of-an-object-error-when/td-p/604208

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)