Skip to main content
SAnve
Associate II
Jun 27, 2019 6:28 AM UTC
Solved

Hi , I am integrating TouchGFX to STM32F746NE custom board with external SDRAM and I am getting Hardfault as 'Invalid State' while executing MVPApplication(). What could be root cause ?Please let me know. Thank you

I am using TouchGFX 4.10 library with IAR version 7.80.1

This topic has been closed for replies.
SAnve
SAnveBest answer
Associate II
Jul 1, 2019 7:07 AM UTC

Hi,

Issue is resolved, I was using old version of ST HAL drivers which didn't have '__HAL_RCC_CRC_CLK_ENABLE()' statement.

Thank you

4 replies

hansd56
Senior
Jun 27, 2019 6:50 AM UTC

Hi, what is the resolution of the display? I tried the same using the STM32746IG processor with external ram and a 800x480 4.3" display. As I see it is the code in the libraries relies on exact timing. Each example with STM32 boards only runs on that hardware. I have tried the same hardware with STemWin and other libraries and had no problems. Without the source code and only inadequate documentation it will be hard to find the root cause. Please post if you make any progress.

SAnve
SAnveAuthor
Associate II
Jun 27, 2019 7:49 AM UTC

Hi,

Thanks for your quick answer. I am using 800x480 7" display. Now we are in the process of removing our old graphics stack and replacing with TouchGFX. Compilation went fine , but execution failed. I integrated generated code from ToucGFX designer and necessary changes for DMA and LTDC .Posting entire code will be difficult, I can post some of integration code, please let me know. Did I miss any specific integration step ?

SAnve
SAnveAuthorBest answer
Associate II
Jul 1, 2019 7:07 AM UTC

Hi,

Issue is resolved, I was using old version of ST HAL drivers which didn't have '__HAL_RCC_CRC_CLK_ENABLE()' statement.

Thank you

Martin KJELDSEN
Principal III
Jul 1, 2019 1:08 PM UTC

Hi @SAnve​,

Glad you solved it. I guess we should add this to some sort of check list :) Possible cause of HardFault = CRC not initialized.

/Martin