Skip to main content
Associate III
Oct 28, 2025 10:58 AM UTC
Solved

Attaching to a running MCU in the STM32CubeIDE.

Hello,

How can I attach to running microcontroller in the STM32CubeIDE?

The IAR has the Attach to running target function. The STM32CubeIDE have not this function.

This topic has been closed for replies.
Andrew Neil
Andrew NeilBest answer
Super User
Oct 28, 2025 11:03 AM UTC

Create a Debug Configuration with 'Reset  behaviour' set to 'None' and 'Download' disabled:

AndrewNeil_0-1761649264302.png

AndrewNeil_1-1761649402660.png

 

#AttachToRunningTarget

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.

1 reply

Andrew Neil
Andrew NeilBest answer
Super User
Oct 28, 2025 11:03 AM UTC

Create a Debug Configuration with 'Reset  behaviour' set to 'None' and 'Download' disabled:

AndrewNeil_0-1761649264302.png

AndrewNeil_1-1761649402660.png

 

#AttachToRunningTarget

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.