Skip to main content
Visitor II
November 24, 2023
Question

STM32U585 - Problem with more than one wake up pin in Stop3 mode

  • November 24, 2023
  • 4 replies
  • 1485 views

Dear all,

I am using STM32U585CIT6Q in Stop3 mode. When one wakeup pin is active, everything works fine, and I can wake up my microcontroller.

But when I want to use two wakeup pins (Two wakeup pins are selected in .ioc file and enabled in code), I can't wake up the microcontroller.

What could be a problem?

Best regards,

Ana

    This topic has been closed for replies.

    4 replies

    Visitor II
    November 24, 2023

    Please check if the pins are configured with the appropriate triggering sensitivity (e.g., rising edge, falling edge, etc.).

    ASavi.3Author
    Visitor II
    November 24, 2023

    I don't think that is the problem. The wakeup pins are enabled with functions:

    HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN4_LOW_0);

    HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN6_LOW_0);

    That means that wakeup pins have a low polarity.

    When I use one or the other of these wakeup pins, everything works as it should.

    Best regards,

    Ana

    ST Employee
    November 24, 2023

    Hello @ASavi.3

    What pins are you using as wakeup pins?

     

    ASavi.3Author
    Visitor II
    November 24, 2023

    Hello @Sarra.S ,

    I'm using PA2 and PB5