STM32L1 HardFault after wakeup from sleep mode + fix
I would like to share a bug I encountered and how to fix it:I am using an STM32L151, the goal is to set it into SLEEP mode and wake it up using a UART receive interrupt while debugging. All configurations to pins, registers and interrupts are made co...