Update 'make flash' support for ARM chips.
[bertos.git] / bertos / cpu / arm / scripts / openocd / flash.cfg
index f0e625a1d8e3ce71ca1e6904245d11a834c90eb5..ad672e95887ae2642e7268b9e867e376d66300ce 100644 (file)
@@ -11,5 +11,13 @@ source [find PROGRAMMER_TYPE]
 
 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