source [find PROGRAMMER_CPU]
+$_TARGETNAME configure -event reset-start {
+ cpu_setup
+ # this will work only with (intel) hex files, which have ROM address information
+ flash write_image IMAGE_FILE
+}
+
+$_TARGETNAME configure -event reset-end "shutdown"
+
init
reset run