projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update 'make flash' support for ARM chips.
[bertos.git]
/
bertos
/
cpu
/
arm
/
scripts
/
openocd
/
flash.cfg
diff --git
a/bertos/cpu/arm/scripts/openocd/flash.cfg
b/bertos/cpu/arm/scripts/openocd/flash.cfg
index f0e625a1d8e3ce71ca1e6904245d11a834c90eb5..ad672e95887ae2642e7268b9e867e376d66300ce 100644
(file)
--- 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]
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
init
reset run