Skip to main content
Senior
July 25, 2021
Solved

After updating touchgfx 4.16.1 to 4.17, and cubemx 6.3 .... touchgfx_init produce hard fault .....

Hello,

I worked with TouchGFX 4.16.1 fine, because of graph issue in 4.16, i've migrated to TouchGFX 4.17 and also CubeMX 6.3 ... after this updating touchgfx_init() function produce hardfault .... Please help me how can I solve this issue ....

I work with STM32H743 ... D-cache enable ... dual buffer , External SDRAM...

This topic has been closed for replies.
MHaji.1Best answer
Senior
October 3, 2021

Check two extra things.

1- do you initiate your external flash before touchgfx init?

2- Make some delay with Hal_Delay function about 500 ms before peripherals initializing, It helps if some device need more time after resetting to be functional.

I hope it will help..

8 replies

MHaji.1Author
Senior
July 25, 2021

Hello,

I also create a new project with touchGFX4.17 from scratch without any success ....

MHaji.1Author
Senior
July 25, 2021

When reached to this line ... hard fault accured ....

Bitmap::registerBitmapDatabase(BitmapDatabase::getInstance(), BitmapDatabase::getInstanceSize());

Please help

Romain DIELEMAN
ST Employee
August 30, 2021

digging this up and linking this post to the other post your created on the same issue

https://community.st.com/s/question/0D53W00000zHSikSAG/touchgfxinit-make-hardfault-on-frontendheap-function-on-stm32h743

MDani
Associate
September 23, 2021

Hello, i had the same problem with my disco board (f746g) yesterday. I don't know why, but in the debugger settings there was no external loader set anymore. After set it it worked fine.

Romain DIELEMAN
ST Employee
September 23, 2021

Hi,

​

Was it the same scenario where you migrated a project from TouchGFX 4.16.1 to 4.17 ? What version of STM32CubeMX are you using ? Did you start a proejct from scratch or from the TBS for the STM32F746G-DISCO board available in TouchGFX Designer ?

Could you confirm that disabling the external flash loader causes your project to hard fault ? That seems strange :thinking_face:.

​

/Romain

MHaji.1Author
Senior
September 30, 2021

Hi MDani,

All of my problem after updating is solved when I decided to migrate from KEIL to STM32CubeIDE, It seems Keil has some bugs in this case

I suggest if you are using keil, probably your problem will solve after migrating to STM ide....

BR,