Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Commit Details
Date: | 2011-10-12 19:42:36 (12 years 1 month ago) |
---|---|
Author: | Werner Almesberger |
Commit: | d6e1e8be0d1c9fa178dc457f23b1f00c171acd12 |
Message: | m1rc3/norruption/2/upset: take address and value from command-line;
report outcome |
Files: |
m1rc3/norruption/2/upset (2 diffs) |
Change Details
m1rc3/norruption/2/upset | ||
---|---|---|
1 | 1 | #!/bin/sh |
2 | ||
3 | a=${1:-0x10} | |
4 | d=${2:-0} | |
5 | ||
6 | ||
2 | 7 | jtag -q <<EOF |
3 | 8 | cable milkymist |
4 | 9 | detect |
... | ... | |
8 | 13 | initbus fjmem opcode=000010 |
9 | 14 | frequency 6000000 |
10 | 15 | detectflash 0 |
11 | poke 0x10 0x40 0x10 0 0 0xff | |
16 | peek $a | |
17 | poke $a 0x40 $a $d | |
18 | peek $a | |
19 | poke 0 0xff | |
20 | peek $a | |
21 | EOF | |
22 | ||
23 | cat 1>&2 <<EOF | |
24 | values read: | |
25 | - previous value | |
26 | - status (0x80 = okay, 0x92 = locked) | |
27 | - resulting value | |
12 | 28 | EOF |
Branches:
master