Is there a way to setup a launch profile that resets the mcu without flashing a new image?
I'm not talking about just attaching, I want a full reset but I want to keep the same code on the device.
That might depend on the debug probe you are using: for example you have more scripting with J-Link than with other probes, and the scripting is depending on the probe.
You could use a modified 'run' configuration (see https://mcuoneclipse.com/2014/10/04/emulating-eclipse-run-with-debug-configuration/).
So basically you could do a 'connect' followed by a 'reset' and 'disconnect'. You could look into GDB commands too (https://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/ ).
The LinkServer Connection has some settings too, but not sure if you could call a script there:
I hope this helps,