Skip to content
Snippets Groups Projects
Commit 0bb9c5de authored by oharboe's avatar oharboe
Browse files

selftest wip

git-svn-id: svn://svn.berlios.de/openocd/trunk@1783 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent c5e51bca
No related branches found
No related tags found
No related merge requests found
add_help_text selftest "run selftest using working ram <tmpfile> <address> <size>"
proc selftest {tmpfile address size} {
for {set i 0} {$i < $size } {set i [expr $i+4]} {
mww [expr $address+$i] $i
}
for {set i 0} {$i < 10 } {set i [expr $i+1]} {
puts "Test iteration $i"
dump_image $tmpfile $address $size
verify_image $tmpfile $address bin
load_image $tmpfile $address bin
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment