cancel
Showing results for 
Search instead for 
Did you mean: 

touchgfx HardFault with STM32H743II

AMerc.4
Senior

Hello,

this is not the first time i set touchgfx in a custom board (with STM32F767 MCU). I always followed the method described in the touchfgx documentation, which can be summarized in this video guide.

Now i'm trying to get it to work with STM32H743 MCU. I tested first the framebuffer in the internal and external ram respectively, following the official documentation. Once working, i enabled touchgfx 4.16 (i'm using CUBEIDE 1.5.1), i enabled CRC and FreeRTOS v2 and i inserted MX_TouchGFX_Process() inside the GUI Task.

When i debug it returns HardFault, but if i remove the MX_TouchGFX_Process() function it debugs without problems, but obviously nothing happens.

I tried to use __HAL_RCC_CRC_CLK_ENABLE(); before initializing Touchgfx, but nothing.

I also noticed that the "Generate Under Root" checkbox is checked and i can't uncheck it, while the official documentation says to uncheck it.

Cane someone help me?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
4 REPLIES 4
MM..1
Chief III

How can i enable Dcache from CubeMX?

First menu SystemCore ... CORTEX M7

Ok, it works! Thanks!