2022-02-11 03:24 AM
Hello,
i am developing a low power application with STM32H7B0VBT6, there is also a 480 * 272 display operated by Touchgfx.
My problem is that after waking up from STOP MODE the LTDC peripheral does not restart and the screen stays still.
I enclose the part of the code:
HAL_SuspendTick();
__HAL_LTDC_DISABLE(&hltdc);
__HAL_PWR_CLEAR_FLAG(PWR_CPU_FLAGS);
if(__HAL_PWR_GET_FLAG(PWR_FLAG_STOP) == RESET)
{
HAL_PWREx_EnableFlashPowerDown();
HAL_PWREx_EnterSTOP2Mode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFI);
// exit from stop
HAL_PWREx_DisableFlashPowerDown();
}
SystemClock_Config();
HAL_ResumeTick();
__HAL_LTDC_ENABLE(&hltdc);