cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL55 : Why PWR_STOP2_RTC is working every time well with MDK-ARM (Keil uVision) and not every time with CubeIDE ? (STM32WL)

LLr.1
Senior

Hi,

Without making any changes and making a "clean" every time, I try this example (PWR_STOP2_RTC in CubeWL latest version). Unfortunately, often this gets stuck in MX_RTC_Init(). Still, this example with this same board works very well with MDK-ARM. Why ? (I've already run other examples with Cube IDE)

Thank you by advance

1 REPLY 1
LLr.1
Senior

If you had the same issue :

Answer from ST employee : "this issue seems to be linked to the code optimization level.

Even with Keil/IAR, if I decreased the optimization level , I have a timeout on the LSI deactivation/activation.

But as previously stated, this example should not be used in debug mode."