Board: STM32WB5MMG (Custom PCB)
Issue: If CSS is enabled, faulty clock startup is resulting in clock getting disabled by CSS and device not waking up from sleep.
This issue is observed with STM32CubeIDE as well as Arduino. Disabling CSS in the clocktree of cube MX and re-generating the code is solving the issue with CubeIDE.
How can we disable CSS in Arduino?
Note: Issue raised with STM team. Since STM32WB5MMG is a SIP module, we have no control on the load caps of the XTALS to do anything. This seems to be CSS disabling the clock due to faulty startup. Disabling CSS ensures that the clock signals continue and sleep works.