2021-02-18 10:55 PM
Hi Touch GFX team,
Throwing a hard fault error after the,
Texts::setLanguage(0);
Cube ide version 1.5.0
Cube MX version v6.1.1
Please suggest a solution
Solved! Go to Solution.
2021-02-18 11:57 PM
Hi,
Where is that line of code ? Did you start a project from scratch or from one of the application templates for ST dev kits available from TouchhGFX Designer ?
The setLanguage function expects a Language ID, not sure if the 0 makes sense.
I would advise looking at the UI template "Custom Trigger Action Example" or the "Demo 1" to understand how the setLanguage function is set and used. You can use the generated code as inspiration for your project.
/Romain
2021-02-18 11:44 PM
hi, i have no idea about GFX but, maybe setLanguaje expects a pointer as an argument?
Texts::setLanguaje(nullptr);
2021-02-18 11:52 PM
Look at the instructions that are faulting, and the registers at the fault.
All memories initialized?
2021-02-18 11:57 PM
Hi,
Where is that line of code ? Did you start a project from scratch or from one of the application templates for ST dev kits available from TouchhGFX Designer ?
The setLanguage function expects a Language ID, not sure if the 0 makes sense.
I would advise looking at the UI template "Custom Trigger Action Example" or the "Demo 1" to understand how the setLanguage function is set and used. You can use the generated code as inspiration for your project.
/Romain
2021-02-24 10:40 AM
thanks,
I went through demo1, which helped me.
/megh
2021-02-25 12:25 AM
Perfect :thumbs_up:. Some of those demos are getting old but they give a lot of good practice and can help you understand how to work with TouchGFX and some "advanced" widgets and annimations through user code.
Could you select my answer as "Best Answer" if this helped you solve your problem, or write another message with what you did to fix it.
/Romain