2022-09-25 10:47 PM
Hi,
I am currently working in a project with TouchGFX. I am using STM32H757 evaluation board. I created a simple GUI to learn the basics of TouchGFX, when i debug the code after generating the code in TouchGFX designer there is no problem i can see the gui on the screen.
However, when i add a functionality (GPIO and USART) in the CubeMX screen and generate the code, debug process is slowed down (it takes around 2-3 minutes) and code enters hard fault at MX_TouchGFX_Init.
I stepped over each line and found that code enters hard fault at setLanguage function inside the Texts.cpp. Exactly the following line causes a hard fault. I didn't change any settings in the CubeMX screen (same settings for LTDC, TouchGFX and FreeRTOS), just added a GPIO function.
If anyone can help me how to solve this issue i would appreciate it. I am a beginner at TouchGFX, so any guideline would be really helpful to me.
currentLanguageTypedText = typedTextDatabaseArray[id];
2022-09-26 01:13 AM
Hello @Batuhan Yılmaz ,
Which version of TouchGFX are you using ?
Did you remember to generate code in both TouchGFXDesigner and CubeMX ?
What are you trying to do with GPIO and USART ?
Thanks for the info,
/Yoann
2022-09-26 02:33 AM
TouchGFX version is 4.20. I generated the code first in the TouchGFX designer. After adding GPIO pins to control some LEDs in the CubeMX and generating the code, then code enters hard fault. I tried to remove USART and GPIO pins, but the result is same.
2022-09-27 12:33 PM
Are you sure you didn't change the GUI and forget to flash the external asset (QSPI) memory? I only ask this because it happens frequently.
2022-09-27 09:39 PM
I checked it but i still get the same error. However, i solved the problem by using another computer. Weird thing is that it worked on a different computer with the same versions of both TouchGFX and CubeMX. I will check the differences between two computers and post an update if i find anything.
Thank you for your answers
2023-02-02 02:50 AM
Hello,
I have probably the same problem, I found some thread about it but any of them resolved it.
At the beginning everything works well until I had Uart and GPIO with Stm32CubeMx. I tried to remove them but not better. I also tried to start a new TouchGfx project with only TextAera but anything better. And I tried with the stm32f746-Disco and Demo 1 and I have the same problem.
I throwing a hard fault error after the, Texts::setLanguage(0); currentLanguageTypedText = typedTextDatabaseArray[id];
My setup :
IAR 8.50.1
stm32f746-Disco
TouchGfx 4.21.1
Cube MX version v6.7.0
Do you have a solution?
Thanks
2023-02-02 03:30 AM
Hello,
Can you share your project so we can try to see where the problem comes from ?
/Yoann
2023-02-02 04:28 AM
2023-02-15 06:34 AM
Hi, Do you have succeed to reproduce the problem?
Thanks
2023-02-15 11:41 AM
Hi, I think, I have the same problem. TouchGFX 4.21.1 and CubeMX IDE 1.11.2 - when I create GUI in TouchGFX, then Generate code and open project in CubeIDE, build all content, load to board (STM32H745i-DISCO) and it's working. But then, I open *.IOC from CubeIDE Project Explorer window, switch on some GPIO's and USART3 and affter pressing CTRL+S it starts to generate code. After a few seconds the CubeIDE was crashed without any message or error notice. On another computer it's working normaly (only I'm not able to use USART3 due "undefined reference to `HAL_UART_Init' " error, but this is another problem already..)
Edit: issue catched on video: https://k00.fr/vtvoil4d