2025-08-29 3:43 AM
Hi,
I recently started working on a custom board using the STM32U5G9ZJT6Q microcontroller. I'm planning on using TouchGFX with LTDC, DMA2D and GPU2D to implement a graphical user interface and AzureRTOS as rtos.
I am encountering a problem when, in the main function, the microcontroller hard faults during the MX_TouchGFX_PreOSInit function, in particular at the FrontendHeap& heap = FrontendHeap::getInstance() call.
I am using STM32CubeIde 1.19.0 with STM32CubeMX 6.15.0 and TouchGFX 4.25.0. I also tried with TouchGFX 4.24.2 with no luck unfortunately.
Here are the screenshots of the hard fault info, stacktrace, and disassembly as shown by STM32CubeIde:
I also attached a minimal project in which I only configured the relevant intefaces and middlewares and in which the problem still occurs.
I already made sure that the CRC peripheral is enabled as suggested in other posts I found.
Sorry if I made some mistakes as it is my first time posting, and thank you for any help you can provide.