Skip to main content
Tuoman
Senior II
November 2, 2020
Solved

Differences between HAL_PWR_EnterSTOPMode and HAL_PWREx_EnterSTOPMode

  • November 2, 2020
  • 3 replies
  • 2744 views

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.
Best answer by waclawek.jan

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

3 replies

waclawek.jan
Super User
November 2, 2020

Which STM32/Cube?

JW

Tuoman
TuomanAuthor
Senior II
November 2, 2020

STM32H7, CubeMX 6.0.1

waclawek.jan
Super User
November 2, 2020

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
Super User
November 2, 2020
"If you feel a post has answered your question, please click ""Accept as Solution""."