Electronics > Microcontrollers

GD32F303 - interrupts do not work when Stop low power mode is entered

(1/1)

vlado.valk:
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

thm_w:
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/

vlado.valk:
I use the standard firmware library and exit stop mode by external interrupt(Falling edge) on PA0, but MCU does not exit sleep

Psi:
are you sure you are entering sleep/stop mode with both the GPIO interrupt and global interrupts enabled?

thm_w:

--- Quote from: vlado.valk on June 21, 2023, 12:29:47 pm ---I use the standard firmware library and exit stop mode by external interrupt(Falling edge) on PA0, but MCU does not exit sleep

--- End quote ---

Post the actual code you are using to do that.

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod