Digital output of the STM32L152RE: toggling between +/- V?
You could reference your output with a voltage divider like this...



simulate this circuit &ndash; Schematic created using CircuitLab
You could add a circuit to the output like this...



simulate this circuit