2020-08-31 06:49 AM
main.cpp from 5.4
//turned off wait on
while (1)
{
HAL_Delay(1);
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
if (HAL_GPIO_ReadPin(SW_PWR_GPIO_Port, SW_PWR_Pin) == GPIO_PIN_RESET ||
HAL_GPIO_ReadPin(TRIGER_IN_GPIO_Port, TRIGER_IN_Pin) == GPIO_PIN_RESET)
{
break;
}
....
}
main.c same code from 5.6 dont wake with same exti.
MX_GPIO_Init(void) is identical.
Solved! Go to Solution.
2020-09-02 06:54 AM
Finaly solved moving MX_TouchGFX_Init(); to place after stop mode as in 5.4 code. This is strange seems this init disables irqs or?
And in CubeMX config cannot by disabled generating call to this init before user code part. When i disable it checkbox is ignored and cleared when generating code.
2020-09-01 09:20 AM
Nobody?
I see only two diference first is C vs C++ second when i read list file assembler generated by compilers have big difference.
Next one diff is in 5.6 code is called MX_TouchGFX_Init();
before this while stop mode , but i mean this isnt problem source.
2020-09-02 06:54 AM
Finaly solved moving MX_TouchGFX_Init(); to place after stop mode as in 5.4 code. This is strange seems this init disables irqs or?
And in CubeMX config cannot by disabled generating call to this init before user code part. When i disable it checkbox is ignored and cleared when generating code.