Skip to main content
Tuoman
Senior II
Nov 2, 2020 1:33 PM UTC
Solved

Differences between HAL_PWR_EnterSTOPMode and HAL_PWREx_EnterSTOPMode

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?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Nov 2, 2020 2:59 PM UTC

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

4 replies

waclawek.jan
Super User
Nov 2, 2020 2:04 PM UTC

Which STM32/Cube?

JW

Tuoman
TuomanAuthor
Senior II
Nov 2, 2020 2:13 PM UTC

STM32H7, CubeMX 6.0.1

waclawek.jan
waclawek.janBest answer
Super User
Nov 2, 2020 2:59 PM UTC

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

TDK
Nov 2, 2020 5:17 PM UTC
"If you feel a post has answered your question, please click ""Accept as Solution""."