2026-03-31 7:39 PM
I'm working on a project using the STM32U385 and I'm trying to find a way to detect a specific condition and save data while the device stays in a low-power Stop mode — without waking up the CPU to do the saving.
Is there any peripheral combination or hardware feature on the STM32U385 that allows:
1. Detecting a condition (e.g., via Comparator, ADF, or LPTIM) while in Stop mode
2. Saving/writing data to memory autonomously — still in Stop mode, without waking up the CPU
If this is not possible natively, is there a recommended approach or workaround for this use case on the STM32U3 series?
Thanks in advance!
2026-03-31 9:16 PM
Yes, autonomous peripherals can be active in some stop modes without waking up the CPU. There are several to choose from. LPTIMx will work.
Per the reference manual:
2026-04-01 12:31 AM
> ... I'm trying to find a way to detect a specific condition and save data ...
And what does "saving data" entail ?
2026-04-01 1:30 AM - edited 2026-04-01 1:31 AM
Hello @taebee00
Based on the product Datasheet , and if I understood your request correctly, it should be feasible.
You can use GPDMA1 because it can operate in stop mode and supports autonomous data transfers during low-power modes.
Consider using LPTIM or LPUART to detect your specific condition.
BR
Gyessine
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-04-02 11:27 PM
Thanks for the responses.
I'm trying to save pin state changes (LOW <-> HIGH) while the MCU is in low-power mode, not after waking up in Run mode.
Is there any feasible approach among the solutions mentioned here?
2026-04-02 11:39 PM
Timers can capture pin state changes. Look up input capture mode.