Launching with reset without flashing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Launching with reset without flashing

452 Views
alannilsson
Contributor II

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.

 

Possible?

0 Kudos
1 Reply

442 Views
ErichStyger
Senior Contributor V

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:

ErichS_0-1604144211749.png

 

I hope this helps,

Erich

0 Kudos