2026-01-14 12:04 AM - edited 2026-01-14 12:05 AM
Greetings,
I know how to solve it , but I do want to reseach on this issue. I use a nucleo's stlink (nucleo F070RB) to program a stm32g030k8tx.
However, the target is only detected and, therefore programmed, when the external mcu is not on standby mode.
Could it be becasue I do not use the NRST on the SWD? I just use Software Reset, instead.
Thanks.
Solved! Go to Solution.
2026-01-14 7:59 AM - edited 2026-01-14 7:59 AM
As @Peter BENSCH said, the debug (including programming) is not accessible when the CPU is asleep.
See this recent post (for a different STM32, but the principle is the same).
via: https://www.st.com/en/microcontrollers-microprocessors/stm32g030k8.html#documentation
This is what the 'Debug in low power modes' CubeIDE setting does:
2026-01-14 12:19 AM - edited 2026-01-14 12:20 AM
If the target is in sleep mode, it can only be brought out of this state by resetting it. Therefore, NRST must be connected and the debugger must be set to ‘Connect under Reset’.
Regards
/Peter
2026-01-14 7:59 AM - edited 2026-01-14 7:59 AM
As @Peter BENSCH said, the debug (including programming) is not accessible when the CPU is asleep.
See this recent post (for a different STM32, but the principle is the same).
via: https://www.st.com/en/microcontrollers-microprocessors/stm32g030k8.html#documentation
This is what the 'Debug in low power modes' CubeIDE setting does: