Browse Source

tcl tinkering.

git-svn-id: svn://svn.berlios.de/openocd/trunk@748 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.1.0
oharboe 16 years ago
parent
commit
e9488b9ad8
2 changed files with 9 additions and 1 deletions
  1. +7
    -1
      src/target/target/at91eb40a.tcl
  2. +2
    -0
      src/tcl/commands.tcl

+ 7
- 1
src/target/target/at91eb40a.tcl View File

@@ -45,5 +45,11 @@ proc target_reset_0 {} {
openocd {mww 0xffff0010 0x100}
openocd {mww 0xffff0034 0x100}
set reset_count [expr $reset_count+1]
puts "Testing reset $reset_count !"
echo "Testing reset $reset_count !"
}
proc target_pre_reset_0 {} {
global reset_count
set reset_count [expr $reset_count+1]
echo "Testing pre_reset $reset_count !"
}

+ 2
- 0
src/tcl/commands.tcl View File

@@ -4,6 +4,8 @@ proc peek {address} {
}
# Production command
# FIX!!! need to figure out how to feed back relevant output
# from e.g. "flash banks" command...
proc board_produce {filename serialnumber} {
openocd "reset init"
openocd "flash write_image erase $filename [flash] bin"]]


Loading…
Cancel
Save