Solved
Debug Mode & Voltage Scaling
I'm using a STM32L151RBT6 and trying to debug with a STLink V3.
The debugger loses connection when I encounter the line:
PWR_VoltageScalingConfig(PWR_VoltageScaling_Range3);
Specifically, when it changes the PWR-CR Bits 12:11 (VOS). I have no issue changing it to Range 1 or 2, but 3 results in this message:
"ST-LINK device status: Failed to get status, Target not responding, retrying... 19"
Any help would be greatly appreciated!
