AnsweredAssumed Answered

STM32F091 UART1 Wake-UP from stop mode

Question asked by martens.benjamin on Jun 17, 2016
Latest reply on Jun 23, 2016 by martens.benjamin
I've been trying to get this beast to wake up from stop mode when it received data on UART1.

This is my approach in code
int main()
   //Init other stuff
      //Do some stuff
void initStopMode(){
    DBGMCU_Config(DBGMCU_STOP, ENABLE); //Enable debugger in stop mode
    USART_StopModeWakeUpSourceConfig(USART1, USART_WakeUpSource_StartBit);
    RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE); //Enable clock for PWR peripheral
void enterStopMode() {
    PWR_EnterSTOPMode(PWR_Regulator_ON, PWR_STOPEntry_WFI);         //Enter stop mode

While it does enter stop mode, I can't get it to wake-up at all. 
In normal mode, I'm using HSE to provide clock for the system.

I just can't figure out what I'm doing wrong, could any of you help me with this ?