STM32F7508 MCU freeze
Hello all,
I have an STM32F7508-Discovery board (STM32F750N8H6 MCU) with a custom UI application on top, using LTDC and DMA2D in interrupt mode, and continuously filling the full display with red/blue. The Stm32CubeF7 v1.16.0 is used as an SDK.
With this application, I have the following behavior:
- With IAR toolchain, no issues observed, application works smoothly with good performances
- With GCC toolchain (Stm32CubeIde 1.40.0), the application freezes at random points during execution
The worst part is that this is not an application freeze, but an MCU freeze, because:
- The debugger loses connectivity, trying to halt the CPU doesn't work during the freeze, neither does attaching the debugger without a system reset
- The SysTickHandler is no longer executed, meaning the IRQs stop firing
- The RTOS idle task is not entered anymore
- The WDT is the only thing that can reboot the MCU, with the WDT disabled, there's no other solution other than pressing the RST button
- After the WDT reset, I see all the CPU registers being reset, which is not normal and provides no debug purpose
Since I can't debug as the debugger stops during the freeze, I suspect an issue at hw level (AHB bus deadlock, power issue).
Did anyone encountered similar freezes on this MCU?
How can I get some traces out to help me with the investigation (ETM traces, SystemView traces)?
