selftest.cfg 419 B

1234567891011121314151617
  1. add_help_text selftest "run selftest using working ram <tmpfile> <address> <size>"
  2. proc selftest {tmpfile address size} {
  3. for {set i 0} {$i < $size } {set i [expr {$i+4}]} {
  4. mww [expr {$address+$i}] $i
  5. }
  6. for {set i 0} {$i < 10 } {set i [expr {$i+1}]} {
  7. echo "Test iteration $i"
  8. dump_image $tmpfile $address $size
  9. verify_image $tmpfile $address bin
  10. load_image $tmpfile $address bin
  11. }
  12. }