Skip to main content
GGowi.1
Associate II
July 4, 2020
Question

Two problems porting TouchGFX to CoreH743I - missing LTDC_IRQHander() and a HardFault during HAL_Init().

  • July 4, 2020
  • 8 replies
  • 1836 views

Hi,

I'm trying to port TouchGFX to the CoreH743I board and I'm following the instructions on how to do that. In part 3 on bringing up the framebuffer I'm running into two problems:

The internal CubeMX in CubeIDE is not generating the LTDC_IRQHander() function in stm32h7xx_It.c, so I can't really time my frame rate.

The other problem is a hard fault being generated when HAL_Init() tries to call NVIC_SetPriorityGrouping(PriorityGroup) by calling NVIC_SetPriorityGrouping(PriorityGroup);

The debugger makes it past the assert but then hard faults on the call to NVIC_SetPriorityGrouping(). It does not allow me to step into that function - it immediately goes to the HardFault_IRQ handler.

EDIT: it would help if I attached the .ioc file... so here it is.

Any ideas?

Thanks

This topic has been closed for replies.

8 replies

Romain DIELEMAN
ST Employee
July 7, 2020

Hi,

LTDC_IRQHandler is not generated because the LTDC global interrupt is not enabled in CubeMX. Go to NVIC settings in the LTDC Mode and Configuration section in your cubeMX project to solve this.

/Romain

GGowi.1
GGowi.1Author
Associate II
July 8, 2020

Thanks! I'll try that and see if it fixes the other problem, too.