STM32F732 Wakeup Latency
Hi
Our custom board had some issues for STOP mode.
Firstly, please see the following STOP mode code:(using GPIO EXTI to wake up MCU)
HAL_PWREx_EnableFlashPowerDown();
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
HAL_PWREx_DisableFlashPowerDown();
SystemClock_Config();
// GPIO Set HighWe did an experiment to measure wake-up latency. Using GPIO to generate pulses and measure the pulse width as wakeup latency time. As you can see in the image below, "Resume" is line 5 of the above code.
We have 10 custom boards. 7 of them look normal and the remaining 3 look abnormal.
Each board is measured about 1000 times and the results are converted into a graph.
The following graph is normal case, the horizontal axis represents the number of tests, the vertical axis represents time (100 = 1mS). Regarding the normal case, we could focus on two things, the first one is baseline(around 1.2mS) and the second one is the wakeup time stabilization.
The following graph is abnormal case, you could observe that the baseline is around 1.4mS and the wakeup time is not stable.
We checked the datasheet, regarding the wakeup latency, it requires additional start up delay time:
- HSI RC startup time
- Regulator wakeup time from LP mode
- Flash wakeup time from power-down mode
- Re-configure the system clock
The above additional startup delay time seems to be related to MCU internal resources. We don't have any idea about this issue, do you have any suggestion for us?
Thanks.
BR
Trevor
