Author Topic: GD32F303 - interrupts do not work when Stop low power mode is entered  (Read 1393 times)

0 Members and 1 Guest are viewing this topic.

Offline vlado.valkTopic starter

  • Newbie
  • Posts: 2
  • Country: bg
When GD32F303 enters STOP low power mode, external interrupt on pin PA0 or any other interrupt(SPI, Uart etc) do not work and
do not wake up the MCU
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 8002
  • Country: ca
  • Non-expert
What is the code you used to enter STOP mode?

SPI or UART won't be an option as a wake source, PA0 should work though.

https://controllerstech.com/low-power-modes-in-stm32/
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline vlado.valkTopic starter

  • Newbie
  • Posts: 2
  • Country: bg
I use the standard firmware library and exit stop mode by external interrupt(Falling edge) on PA0, but MCU does not exit sleep
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10450
  • Country: nz
are you sure you are entering sleep/stop mode with both the GPIO interrupt and global interrupts enabled?
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 8002
  • Country: ca
  • Non-expert
I use the standard firmware library and exit stop mode by external interrupt(Falling edge) on PA0, but MCU does not exit sleep

Post the actual code you are using to do that.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf