Differences between HAL_PWR_EnterSTOPMode and HAL_PWREx_EnterSTOPMode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 5: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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 6:04 AM
Which STM32/Cube?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 6:13 AM
STM32H7, CubeMX 6.0.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 9: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.
