Skip to main content
RPowe.9.306
Associate III
Nov 9, 2022 1:22 PM UTC
Question

Bug in EnterLowPower? if(LL_PWR_IsActiveFlag_C2DS() || LL_PWR_IsActiveFlag_C2SB()) semaphore is released however there is no else, so can the semaphore remain locked?

..

This topic has been closed for replies.

2 replies

Remy ISSALYS
ST Technical Moderator
Nov 10, 2022 5:14 PM UTC

Hello,

The semaphore 4 (CFG_HW_ENTRY_STOP_MODE_SEMID) is released in ExitLowPower function in every case and in some circumstances the semaphore is released earlier in EnterLowPower. The algorithm to enter and exit stop mode on CPU1 are describes in AN5289 (see figure 6 and 7).

Best Regards

RPowe.9.306
Associate III
Nov 11, 2022 5:16 PM UTC

Hi Remy,

Thanks for answering that. It would be good if that was documented in the code to prevent me asking :)