We need to disable wake up pin in some time, during stm32f0 run. we have used


but it doesn't work. Should we do something else?

Any help would be greatly appreciated

  • \$\begingroup\$ Wakeup pins need to be explicitely enabled. Did you? Can wakeup be from another source? Are you sure it's wakep and not reset? \$\endgroup\$ – Jeroen3 Jun 7 '19 at 7:12
  • \$\begingroup\$ @Jeroen3 thanks for the comment. Yes I've enable by this: HAL_PWR_DisableWakeUpPin function. We have to have one button as toggle button for wakeup and standby (I think the main challenge is this). \$\endgroup\$ – paradisal programmer Jun 9 '19 at 19:44
  • \$\begingroup\$ @Jeroen3 I've tried to enable/disable the wake up pin. If we can do this, the problem can be solved in another way. but it didn't work. I've used HAL_PWR_DisableWakeUpPin() but it doesn't disable wake up pin \$\endgroup\$ – paradisal programmer Jun 9 '19 at 19:52
  • \$\begingroup\$ Go to the bare metal registers (no HAL) and see if that works. \$\endgroup\$ – Jeroen3 Jun 9 '19 at 20:07
  • \$\begingroup\$ @Jeroen3 I'm reading and checking ... \$\endgroup\$ – paradisal programmer Jun 9 '19 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.