Skip to main content
Mk.31
Associate II
February 19, 2021
Solved

Hard Fault error while debugging

  • February 19, 2021
  • 3 replies
  • 2876 views

Hi Touch GFX team,

Throwing a hard fault error after the,

Texts::setLanguage(0);

0693W000008GdW5QAK.jpgCube ide version 1.5.0

Cube MX version v6.1.1

Please suggest a solution

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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

3 replies

Javier1
Principal
February 19, 2021

hi, i have no idea about GFX but, maybe setLanguaje expects a pointer as an argument?

Texts::setLanguaje(nullptr);

hit me up in https://www.linkedin.com/in/javiermuñoz/
Tesla DeLorean
Guru
February 19, 2021

Look at the instructions that are faulting, and the registers at the fault.

All memories initialized?​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
February 19, 2021

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

Mk.31
Mk.31Author
Associate II
February 24, 2021

thanks,

I went through demo1, which helped me.

/megh

Romain DIELEMAN
ST Employee
February 25, 2021

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