cancel
Showing results for 
Search instead for 
Did you mean: 

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?

RPowe.9.306
Associate III
2 REPLIES 2
Remy ISSALYS
ST Employee

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

Hi Remy,

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