X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcpu%2Farm%2Fscripts%2Fopenocd%2Fflash.cfg;fp=bertos%2Fcpu%2Farm%2Fscripts%2Fopenocd%2Fflash.cfg;h=ad672e95887ae2642e7268b9e867e376d66300ce;hb=4b94981fcfe9e893527ed913fe903902be1d2c4a;hp=f0e625a1d8e3ce71ca1e6904245d11a834c90eb5;hpb=6abf03e019383ce5c269318dd72e9d237377cbe5;p=bertos.git diff --git a/bertos/cpu/arm/scripts/openocd/flash.cfg b/bertos/cpu/arm/scripts/openocd/flash.cfg index f0e625a1..ad672e95 100644 --- a/bertos/cpu/arm/scripts/openocd/flash.cfg +++ b/bertos/cpu/arm/scripts/openocd/flash.cfg @@ -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