2020-11-02 05:33 AM
There is hal_pwr.c module, and hal_pwr_ex.c ("Extended") modules
These seem to have equivalent functions, such as
HAL_PWR_EnterSTOPMode
HAL_PWREx_EnterSTOPMode
HAL_PWR_EnterSTANDBYMode
HAL_PWREx_EnterSTANDBYMode
What are the difference between these? Why some pwr functions are separated/duplicated to Extended module?
It seems that Extended module adds Domain information. Can you use non-extended version if you don't beed Domain control?
Solved! Go to Solution.
2020-11-02 06:59 AM
I don't know the exact answer in your case, but generally, non-Ex functions ought to work towards compatibility between STM32 models/families, i.e. sticking to them is supposed to facilitate portability. The Ex-functions thus handle features which are specific to a given family or model.
JW
2020-11-02 06:04 AM
Which STM32/Cube?
JW
2020-11-02 06:13 AM
STM32H7, CubeMX 6.0.1
2020-11-02 06:59 AM
I don't know the exact answer in your case, but generally, non-Ex functions ought to work towards compatibility between STM32 models/families, i.e. sticking to them is supposed to facilitate portability. The Ex-functions thus handle features which are specific to a given family or model.
JW
2020-11-02 09:17 AM
Easy enough to inspect:
Looks like the PWREx function can specify the domain. The function notes explain the differences for dual core devices.