The mEDBG debugger on the Xplained Mini board has control of the target device’s VCC so that it can toggle its power. By opening the switch the user can reroute power to the target device through an external current measuring probe. By default on power-up the switch is closed (power is ON).
To open the switch, use the Atmel Studio command line utility atprogram.exe.
atprogram.exe -t medbg parameters -psoff
To close the switch again, execute:
atprogram.exe -t medbg parameters -pson