target create quark_d20xx.quark quark_d20xx -endian little -chain-position quark_d20xx.quark
-quark_d20xx.quark configure -event gdb-attach { halt }
-
quark_d20xx.quark configure -event reset-start {
# need to halt the target to write to memory
if {[quark_d20xx.quark curstate] ne "halted"} { halt }